diff options
author | Miepee <38186597+Miepee@users.noreply.github.com> | 2022-09-28 14:19:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 14:19:50 +0300 |
commit | a7d80c177a7ea412fb00867ccc4f4b2c44c9e030 (patch) | |
tree | 1195da68c5c9808c4b439a6acc981140c1ae4a42 /src/libraries | |
parent | 63b994bde58646cde2872c6f875afdcbb6fd6506 (diff) |
Make "Personal" on Android also point to a Documents folder (#76250)
#68610 moved `Personal`/`MyDocuments` on Unix systems from HOME to the documents folder.
However, it didn't do so for Android systems, which was only noticed after tests later failed. This fixes it.
Diffstat (limited to 'src/libraries')
-rw-r--r-- | src/libraries/System.Private.CoreLib/src/System/Environment.Android.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libraries/System.Private.CoreLib/src/System/Environment.Android.cs b/src/libraries/System.Private.CoreLib/src/System/Environment.Android.cs index 44c8988532f..53a46feff72 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Environment.Android.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Environment.Android.cs @@ -54,7 +54,6 @@ namespace System switch (folder) { - case SpecialFolder.Personal: case SpecialFolder.LocalApplicationData: return home; @@ -65,6 +64,9 @@ namespace System case SpecialFolder.DesktopDirectory: return Path.Combine(home, "Desktop"); + case SpecialFolder.MyDocuments: // Same value as Personal + return Path.Combine(home, "Documents"); + case SpecialFolder.MyMusic: return Path.Combine(home, "Music"); |