Skip to content

Commit

Permalink
Fix broken Downloads folder
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjore committed May 7, 2022
1 parent 9ff7a2f commit 699f5b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MainActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class MainActivity : AppCompatActivity, NavigationView.IOnNavigationItemS
bool isLocationServiceStarted = false;

#if DEBUG
public static string rootPath = Android.App.Application.Context.GetExternalFilesDir(null).AbsolutePath;
public static string rootPath = Android.OS.Environment.GetExternalStoragePublicDirectory(Android.OS.Environment.DirectoryDownloads).AbsolutePath;
#else
public static string rootPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
#endif
Expand Down

0 comments on commit 699f5b5

Please sign in to comment.