[Android] SidebarAdapter: fix a potential NullPointerException

Edward Wang git at videolan.org
Sun Mar 16 13:15:55 CET 2014


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Mar 16 08:15:50 2014 -0400| [131dfecaf01e20ed50d89b830ad7568a5e0da562] | committer: Edward Wang

SidebarAdapter: fix a potential NullPointerException

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

 vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java |    1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java b/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
index 05881ce..dd50ee7 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/SidebarAdapter.java
@@ -172,6 +172,7 @@ public class SidebarAdapter extends BaseAdapter {
             return;
         }
         mFragments.put(id, f);
+        setCurrentFragment(id);
         // if Android added it, it's been implicitly added already...
     }
 }



More information about the Android mailing list