mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
hide instant upload icon on Android pre-lollipop
This commit is contained in:
parent
a4a41a6705
commit
6afeee7535
1 changed files with 5 additions and 0 deletions
|
@ -166,6 +166,11 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
|
|||
setupDrawerMenu(mNavigationView);
|
||||
|
||||
setupQuotaElement();
|
||||
|
||||
// show folder sync menu item only for Android 5+
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
|
||||
mNavigationView.getMenu().removeItem(R.id.nav_folder_sync);
|
||||
}
|
||||
}
|
||||
|
||||
setupDrawerToggle();
|
||||
|
|
Loading…
Reference in a new issue