[Android] Rescan when medialib is cleared

Geoffrey Métais git at videolan.org
Thu Mar 19 17:41:33 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Mar 19 17:39:02 2015 +0100| [ffe5d9b15c20330e9c1c9bdf2e0635bd47881cda] | committer: Geoffrey Métais

Rescan when medialib is cleared

closes #12306

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=ffe5d9b15c20330e9c1c9bdf2e0635bd47881cda
---

 vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
index 992d3fa..a46865c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -187,6 +187,7 @@ public class PreferencesActivity extends PreferenceActivity implements OnSharedP
                         MediaDatabase.getInstance().emptyDatabase();
                         BitmapCache.getInstance().clear();
                         AudioUtil.clearCacheFolders();
+                        setResult(RESULT_RESCAN);
                         Toast.makeText(getBaseContext(), R.string.media_db_cleared, Toast.LENGTH_SHORT).show();
                         return true;
                     }



More information about the Android mailing list