Skip to content
Snippets Groups Projects
Commit 9fb8b566 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Better way to clean the history

parent 33d54feb
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment