[Android] Simplification

Ludovic Fauvet git at videolan.org
Sun Sep 30 15:11:37 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Sat Sep 29 19:39:29 2012 +0200| [b07e2a849965e186f42371ce4999cf8a1dcd33d3] | committer: Ludovic Fauvet

Simplification

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
index 4ace498..f95f230 100644
--- a/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/MainActivity.java
@@ -126,8 +126,8 @@ public class MainActivity extends SherlockFragmentActivity {
         View v_main = LayoutInflater.from(this).inflate(R.layout.main, null);
         mMenu.setContent(v_main);
         View sidebar = LayoutInflater.from(this).inflate(R.layout.sidebar, null);
-        ((ListView)sidebar).setFooterDividersEnabled(true);
         final ListView listView = (ListView)sidebar.findViewById(android.R.id.list);
+        listView.setFooterDividersEnabled(true);
         mSidebarAdapter = new SidebarAdapter(getSupportFragmentManager());
         listView.setAdapter(mSidebarAdapter);
         mMenu.setMenu(sidebar);



More information about the Android mailing list