drawer.addDrawerListener(drawerListener);
}
+ findViewById(R.id.nav_profile_list_head_layout).setOnClickListener(this::navProfilesHeadClicked);
+ findViewById(R.id.nav_profiles_label).setOnClickListener(this::navProfilesHeadClicked);
setupProfile();
onProfileChanged(null);
}
}
private void createShortcuts() {
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) return;
+
List<ShortcutInfo> shortcuts = new ArrayList<>();
try (LockHolder lh = Data.profiles.lockForReading()) {
for (int i = 0; i < Data.profiles.size(); i++) {