[Android] Allow refreshing the history

Edward Wang git at videolan.org
Wed Aug 29 12:17:13 CEST 2012


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Tue Aug 28 22:21:54 2012 -0400| [96d363692c155c939268caeaedba38d6a3eb8c82] | committer: Jean-Baptiste Kempf

Allow refreshing the history

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 vlc-android/src/org/videolan/vlc/gui/MainActivity.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 0dc2106..56249ac 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -377,6 +377,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;



More information about the Android mailing list