mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-30 06:32:56 +00:00
Android: Adjust user data text to match DocumentProvider
This commit is contained in:
parent
43d346aba4
commit
ee563189fd
@ -51,6 +51,7 @@ class UserDataActivity : AppCompatActivity() {
|
||||
|
||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||||
|
||||
val android7 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.N
|
||||
val android10 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q
|
||||
val android11 = Build.VERSION.SDK_INT >= Build.VERSION_CODES.R
|
||||
val legacy = DirectoryInitialization.isUsingLegacyUserDirectory()
|
||||
@ -59,6 +60,10 @@ class UserDataActivity : AppCompatActivity() {
|
||||
if (android10) R.string.user_data_new_location_android_10 else R.string.user_data_new_location
|
||||
mBinding.textType.setText(if (legacy) R.string.user_data_old_location else userDataNewLocation)
|
||||
|
||||
val openFileManagerStringId =
|
||||
if (android7) R.string.user_data_open_user_folder else R.string.user_data_open_system_file_manager
|
||||
mBinding.buttonOpenSystemFileManager.setText(openFileManagerStringId)
|
||||
|
||||
mBinding.textPath.text = DirectoryInitialization.getUserDirectory()
|
||||
|
||||
mBinding.textAndroid11.visibility = if (android11 && !legacy) View.VISIBLE else View.GONE
|
||||
|
@ -401,8 +401,10 @@
|
||||
<string name="user_data_new_location">Your user data (settings, saves, etc.) is stored in a location which <b>will be deleted</b> when you uninstall the app:</string>
|
||||
<!-- Android 10 and up support android:hasFragileUserData -->
|
||||
<string name="user_data_new_location_android_10">Your user data (settings, saves, etc.) is stored in a location which by default <b>will be deleted</b> when you uninstall the app:</string>
|
||||
<string name="user_data_new_location_android_11">Because you\'re using Android 11 or newer, file manager apps can\'t access this folder in the same way as regular folders. You might be able to access the folder using the system file manager (if present on your device), or by connecting your device to a PC.</string>
|
||||
<string name="user_data_new_location_android_11">Because you\'re using Android 11 or newer, file manager apps can\'t access this folder in the same way as regular folders. Instead, Dolphin acts as a file provider.</string>
|
||||
<string name="user_data_open_system_file_manager">Open System File Manager</string>
|
||||
<string name="user_data_open_user_folder">Open User Data Folder</string>
|
||||
|
||||
<string name="user_data_import">Import User Data</string>
|
||||
<string name="user_data_export">Export User Data</string>
|
||||
<string name="user_data_open_system_file_manager_failed">Sorry, Dolphin couldn\'t find the system file manager on your device.</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user