From 87e4f382b6fc946c5f14002cacb19bec48323535 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Fri, 1 Nov 2019 11:15:51 +0100 Subject: remove buggy and annoying hint how to open the navigation drawer --- .../bitmaskclient/drawer/NavigationDrawerFragment.java | 16 ---------------- app/src/main/res/drawable/ic_menu_color_point.png | Bin 2454 -> 0 bytes app/src/main/res/drawable/ic_menu_default.png | Bin 2454 -> 0 bytes 3 files changed, 16 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_menu_color_point.png delete mode 100644 app/src/main/res/drawable/ic_menu_default.png (limited to 'app/src') diff --git a/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java b/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java index 6335f6ed..3144d62c 100644 --- a/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java @@ -97,7 +97,6 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen private static final String PREF_USER_LEARNED_DRAWER = "navigation_drawer_learned"; private static final String TAG = NavigationDrawerFragment.class.getName(); public static final int TWO_SECONDS = 2000; - public static final int THREE_SECONDS = 3500; /** * Helper component that ties the action bar to the navigation drawer. @@ -156,7 +155,6 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen wasPaused = false; if (shouldCloseOnResume) { closeDrawerWithDelay(); - showDottedIconWithDelay(); } } @@ -226,7 +224,6 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen // the navigation drawer automatically in the future. userLearnedDrawer = true; preferences.edit().putBoolean(PREF_USER_LEARNED_DRAWER, true).apply(); - toolbar.setNavigationIcon(R.drawable.ic_menu_default); } activity.invalidateOptionsMenu(); } @@ -400,19 +397,6 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen drawerLayout.openDrawer(fragmentContainerView, false); closeDrawerWithDelay(); - showDottedIconWithDelay(); - - } - - private void showDottedIconWithDelay() { - final Handler navigationDrawerHandler = new Handler(); - navigationDrawerHandler.postDelayed(() -> { - if (!wasPaused) { - toolbar.setNavigationIcon(R.drawable.ic_menu_color_point); - toolbar.playSoundEffect(android.view.SoundEffectConstants.CLICK); - } - - }, THREE_SECONDS); } @NonNull diff --git a/app/src/main/res/drawable/ic_menu_color_point.png b/app/src/main/res/drawable/ic_menu_color_point.png deleted file mode 100644 index ef4b0e51..00000000 Binary files a/app/src/main/res/drawable/ic_menu_color_point.png and /dev/null differ diff --git a/app/src/main/res/drawable/ic_menu_default.png b/app/src/main/res/drawable/ic_menu_default.png deleted file mode 100644 index e0d29163..00000000 Binary files a/app/src/main/res/drawable/ic_menu_default.png and /dev/null differ -- cgit v1.2.3