[Android] [PATCH] Allow refreshing the history

Edward Wang edward.c.wang at compdigitec.com
Thu Aug 23 17:06:31 CEST 2012


---
 .../src/org/videolan/vlc/gui/MainActivity.java     |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 3e337a1..39a2f9a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -348,6 +348,8 @@ public class MainActivity extends SherlockFragmentActivity {
                     DirectoryViewFragment directoryView = (DirectoryViewFragment) mSidebarAdapter.getFragment(mCurrentFragment);
                     directoryView.refresh();
                 }
+                else if(mCurrentFragment.equals("history"))
+                    ((HistoryFragment)mSidebarAdapter.getFragment(mCurrentFragment)).refresh();
                 else
                     MediaLibrary.getInstance(this).loadMediaItems(this);
                 break;
-- 
1.7.5.4



More information about the Android mailing list