浏览代码

Hide videos if search isn’t supported

Mario Danic 8 年之前
父节点
当前提交
926001bbe7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java

+ 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);
         }