Allow collapsing part of main navigation menu

This commit is contained in:
M66B
2019-04-28 11:32:00 +02:00
parent 27af5265f0
commit b0cfb2f1e7
5 changed files with 79 additions and 24 deletions

View File

@@ -85,8 +85,9 @@ import javax.crypto.spec.PBEKeySpec;
public class ActivitySetup extends ActivityBilling implements FragmentManager.OnBackStackChangedListener {
private View view;
private DrawerLayout drawerLayout;
private ListView drawerList;
private ActionBarDrawerToggle drawerToggle;
private ListView drawerList;
private DrawerAdapter drawerArray;
private boolean hasAccount;
private String password;
@@ -132,7 +133,7 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
drawerList = findViewById(R.id.drawer_list);
final DrawerAdapter drawerArray = new DrawerAdapter(this);
drawerArray = new DrawerAdapter(this, false);
drawerList.setAdapter(drawerArray);
drawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() {