hide Auto Sync for pre Nougat version

This commit is contained in:
tobiasKaminsky 2016-11-16 17:54:57 +01:00
parent 5c0f8da356
commit 93e861cb9d

View file

@ -167,8 +167,8 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
setupQuotaElement();
// show folder sync menu item only for Android 5+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
// show folder sync menu item only for Android 7+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
mNavigationView.getMenu().removeItem(R.id.nav_folder_sync);
}
}
@ -248,11 +248,6 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
navigationView.setItemIconTintList(null);
}
// hide Auto Sync for pre Nougat version
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
navigationView.getMenu().removeItem(R.id.nav_folder_sync);
}
// setup actions for drawer menu items
navigationView.setNavigationItemSelectedListener(
new NavigationView.OnNavigationItemSelectedListener() {