forked from organicmaps/organicmaps-tmp
[android] Fixed the random opening/closing the search bar during navigation
This commit is contained in:
parent
cef49ec0b5
commit
3803f54a9e
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue