Commit b07e2a84 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Simplification

parent f2699460
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment