[android] Fixed the random opening/closing the search bar during navigation

This commit is contained in:
alexzatsepin 2016-11-07 20:23:51 +03:00 committed by Ilya Grechuhin
parent cef49ec0b5
commit 3803f54a9e

View file

@ -36,6 +36,10 @@ class SearchWheel implements View.OnClickListener
@Override
public void run()
{
// if the search bar is already closed, i.e. nothing should be done here.
if (!mIsExpanded)
return;
toggleSearchLayout();
}
};
@ -237,7 +241,6 @@ class SearchWheel implements View.OnClickListener
parent.showSearch();
mIsExpanded = false;
refreshSearchVisibility();
UiThread.cancelDelayedTasks(mCloseRunnable);
}
private void startSearch(SearchOption searchOption)