1
0
Fork 0

For #2227: Fixes issue with bookmark selection (#3021)

master
Sawyer Blatz 2019-05-30 15:01:51 -07:00 committed by Colin Lee
parent 9e0e5d95d9
commit cd19f36b96
1 changed files with 6 additions and 1 deletions

View File

@ -271,7 +271,12 @@ class BookmarkFragment : Fragment(), CoroutineScope, BackHandler, AccountObserve
refreshBookmarks()
}
}
is BookmarkAction.SwitchMode -> activity?.invalidateOptionsMenu()
is BookmarkAction.SwitchMode -> {
if ((bookmarkComponent.uiView as BookmarkUIView).mode is BookmarkState.Mode.Normal) {
getManagedEmitter<BookmarkChange>().onNext(BookmarkChange.ClearSelection)
}
activity?.invalidateOptionsMenu()
}
}
}