Skip to content

Commit

Permalink
Closes #668, reverts #664
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamantcheese committed Feb 18, 2020
1 parent 4b4ac93 commit e1eaa8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,10 @@ public void setArrowMenu(ArrowMenuDrawable arrowMenu) {
}

public void set(NavigationItem item, Theme theme, ToolbarPresenter.AnimationStyle animation) {
if (transitionView != null || (currentView != null && currentView.item == item)) {
if (transitionView != null) {
// Happens when you are in Phone layout, moving the thread fragment and at the same time
// thread update occurs. We probably should just skip it. But maybe there is a better
// solution.
// Also prevent setting of an item that already exists in the current view
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ private void cancelTransitionIfNeeded() {
}
}

/**
* Returns true if search was closed, false otherwise
*/
public boolean closeSearchIfNeeded() {
// Cancel search, but don't unmark it as a search item so that onback will automatically pull up the search window
if (item != null && item.search) {
Expand Down

0 comments on commit e1eaa8f

Please sign in to comment.