Skip to content

Commit

Permalink
Remove "on device"
Browse files Browse the repository at this point in the history
Signed-off-by: tobiasKaminsky <[email protected]>
  • Loading branch information
tobiasKaminsky committed Nov 30, 2022
1 parent cf148a0 commit c2bd10c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,6 @@ private void onNavigationItemClicked(final MenuItem menuItem) {
menuItem.getItemId());
} else if (itemId == R.id.nav_gallery) {
startPhotoSearch(menuItem);
} else if (itemId == R.id.nav_on_device) {
EventBus.getDefault().post(new ChangeMenuEvent());
showFiles(true);
} else if (itemId == R.id.nav_uploads) {
startActivity(UploadListActivity.class, Intent.FLAG_ACTIVITY_CLEAR_TOP);
} else if (itemId == R.id.nav_trashbin) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1197,13 +1197,8 @@ protected void onResume() {
}

private void setDrawerAllFiles() {
if (MainApp.isOnlyOnDevice()) {
setDrawerMenuItemChecked(R.id.nav_on_device);
setupToolbar();
} else {
setDrawerMenuItemChecked(R.id.nav_all_files);
setupHomeSearchToolbarWithSortAndListButtons();
}
}

public void initSyncBroadcastReceiver() {
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/res/menu/partial_drawer_entries.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@
android:orderInCategory="0"
android:icon="@drawable/nav_shared"
android:title="@string/drawer_item_shared" />
<item
android:id="@+id/nav_on_device"
android:icon="@drawable/nav_on_device"
android:orderInCategory="0"
android:title="@string/drawer_item_on_device"/>
<item
android:id="@+id/nav_recently_modified"
android:icon="@drawable/nav_recently"
Expand Down

0 comments on commit c2bd10c

Please sign in to comment.