[Android] Better way to clean the history

Jean-Baptiste Kempf git at videolan.org
Mon Apr 14 20:10:15 CEST 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 14 20:09:54 2014 +0200| [9fb8b566e26e4f2368e1db9976cc2c90299e8238] | committer: Jean-Baptiste Kempf

Better way to clean the history

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    3 ++-
 1 file changed, 2 insertions(+), 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 963a517..d87b0b0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -28,6 +28,7 @@ import org.videolan.libvlc.LibVlcException;
 import org.videolan.libvlc.LibVlcUtil;
 import org.videolan.vlc.AudioService;
 import org.videolan.vlc.AudioServiceController;
+import org.videolan.vlc.MediaDatabase;
 import org.videolan.vlc.MediaLibrary;
 import org.videolan.vlc.R;
 import org.videolan.vlc.Util;
@@ -665,7 +666,7 @@ public class MainActivity extends SherlockFragmentActivity {
                     mMenu.showMenu();
                 break;
             case R.id.search_clear_history:
-                ((SearchFragment)fetchSecondaryFragment("search")).clearSearchHistory();
+                MediaDatabase.getInstance(this).clearSearchhistory();
                 break;
         }
         return super.onOptionsItemSelected(item);



More information about the Android mailing list