[Android] [PATCH 20/24] Allow refreshing the history

Edward Wang edward.c.wang at compdigitec.com
Wed Aug 22 23:15:20 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 0dc2072..3a5ec52 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -347,6 +347,8 @@ public class MainActivity extends SherlockFragmentActivity {
                 // TODO: factor this into each fragment
                 if(mCurrentFragment.equals("directories"))
                     mDirectoryView.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