Skip to content

Commit 98c4e70

Browse files
committed
fix bottom nav bar highlighting
Signed-off-by: alperozturk <[email protected]>
1 parent faa4188 commit 98c4e70

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

app/src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ protected void setupDrawer() {
241241
checkAssistantBottomNavigationMenu();
242242
handleBottomNavigationViewClicks();
243243
}
244+
245+
setNavigationViewItemChecked();
244246
}
245247

246248
private void themeBottomNavigationMenu() {
@@ -695,11 +697,6 @@ private void launchActivityForSearch(SearchEvent searchEvent, int menuItemId) {
695697
DrawerActivity.menuItemId = menuItemId;
696698
Intent intent = new Intent(getApplicationContext(), FileDisplayActivity.class);
697699
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
698-
699-
if (this instanceof ComposeActivity) {
700-
//intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
701-
}
702-
703700
intent.setAction(Intent.ACTION_SEARCH);
704701
intent.putExtra(OCFileListFragment.SEARCH_EVENT, searchEvent);
705702
startActivity(intent);

0 commit comments

Comments
 (0)