| | |
| | | classMap.put(null,(LinearLayout) findViewById(R.id.dl_privacy)); |
| | | setSelectItem(classMap.get(getClass())); |
| | | for (Map.Entry<Class, LinearLayout> set : classMap.entrySet()) { |
| | | set.getValue().setOnClickListener(v -> { |
| | | if (set.getKey() != null){ |
| | | AppManager.getAppManager().startActivity(set.getKey()); |
| | | } |
| | | }); |
| | | LinearLayout linearLayout = set.getValue(); |
| | | if (linearLayout != null) { |
| | | linearLayout.setOnClickListener(v -> { |
| | | if (set.getKey() != null){ |
| | | AppManager.getAppManager().startActivity(set.getKey()); |
| | | } |
| | | }); |
| | | } else { |
| | | |
| | | } |
| | | } |
| | | mDrawerLayout.setScrimColor(getResources().getColor(R.color.color_shadow)); |
| | | } |