[Android] Do not rescan on device rotation
Geoffrey Métais
git at videolan.org
Tue Dec 6 19:01:18 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 6 17:33:31 2016 +0100| [5c894a0df706b12c7055de578ba24544769e98a2] | committer: Geoffrey Métais
Do not rescan on device rotation
> https://code.videolan.org/videolan/vlc-android/commit/5c894a0df706b12c7055de578ba24544769e98a2
---
vlc-android/src/org/videolan/vlc/gui/MainActivity.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 875db2a..b2797de 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -232,7 +232,7 @@ public class MainActivity extends AudioPlayerContainerActivity implements Device
/* Reload the latest preferences */
reloadPreferences();
- mScanNeeded = mSettings.getBoolean("auto_rescan", true);
+ mScanNeeded = savedInstanceState == null && mSettings.getBoolean("auto_rescan", true);
}
private void setupNavigationView() {
More information about the Android
mailing list