Ver código fonte

Hide videos if search isn’t supported

Mario Danic 8 anos atrás
pai
commit
926001bbe7

+ 3 - 0
src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java

@@ -303,6 +303,9 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
             if (getResources().getBoolean(R.bool.bottom_toolbar_enabled)) {
                 navigationView.getMenu().removeItem(R.id.nav_settings);
             }
+            if (!searchSupported) {
+                navigationView.getMenu().removeItem(R.id.nav_videos);
+            }
             navigationView.getMenu().removeItem(R.id.nav_favorites);
         }