summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-11-01 11:15:51 +0100
committercyBerta <cyberta@riseup.net>2019-11-01 11:15:51 +0100
commit87e4f382b6fc946c5f14002cacb19bec48323535 (patch)
treed083e1383a36c831ac2c262205a50e6156ed1cda /app/src/main/java
parent4924a3e28807c362597a581ad2b6a810809099a7 (diff)
remove buggy and annoying hint how to open the navigation drawer
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/drawer/NavigationDrawerFragment.java16
1 files changed, 0 insertions, 16 deletions
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