[Android] Fix the onboarding initial discovered folder when the user customises them
Nicolas Pomepuy
git at videolan.org
Thu Jun 10 11:24:07 UTC 2021
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Jun 1 09:21:04 2021 +0200| [13332488fe5d00315aaa98d5b2723c566ed1d8d7] | committer: Nicolas Pomepuy
Fix the onboarding initial discovered folder when the user customises them
> https://code.videolan.org/videolan/vlc-android/commit/13332488fe5d00315aaa98d5b2723c566ed1d8d7
---
.../src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt
index 1ad532a77..c1529e38a 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/onboarding/OnboardingActivity.kt
@@ -184,13 +184,7 @@ class OnboardingActivity : AppCompatActivity(), IOnScanningCustomizeChangedListe
indicators[3].animate()?.alpha(0.6f)?.scaleX(0.5f)?.scaleY(0.5f)!!.setListener(null)
if (MediaParsingService.preselectedStorages.isEmpty()) lifecycleScope.launch {
MediaParsingService.preselectedStorages.run {
- addAll(AndroidDevices.externalStorageDirectories)
- AndroidDevices.MediaFolders.EXTERNAL_PUBLIC_DOWNLOAD_DIRECTORY_URI.path?.let { add(it) }
- AndroidDevices.MediaFolders.EXTERNAL_PUBLIC_DCIM_DIRECTORY_URI.path?.let { add(it) }
- AndroidDevices.MediaFolders.EXTERNAL_PUBLIC_MOVIES_DIRECTORY_URI.path?.let { add(it) }
- AndroidDevices.MediaFolders.EXTERNAL_PUBLIC_MUSIC_DIRECTORY_URI.path?.let { add(it) }
- AndroidDevices.MediaFolders.EXTERNAL_PUBLIC_PODCAST_DIRECTORY_URI.path?.let { add(it) }
- AndroidDevices.MediaFolders.WHATSAPP_VIDEOS_FILE_URI.path?.let { add(it) }
+ add(AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY)
}
}
} else {
More information about the Android
mailing list