mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
hide Auto Sync for pre Nougat version
This commit is contained in:
parent
5c0f8da356
commit
93e861cb9d
1 changed files with 2 additions and 7 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue