forked from organicmaps/organicmaps
[android] Process hardware search button.
This commit is contained in:
parent
e0c3f69d4e
commit
9306f074f1
1 changed files with 9 additions and 1 deletions
|
@ -284,6 +284,13 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onSearchRequested()
|
||||
{
|
||||
onSearchClicked(null);
|
||||
return false;
|
||||
}
|
||||
|
||||
private void runDownloadActivity()
|
||||
{
|
||||
startActivity(new Intent(this, DownloadUI.class));
|
||||
|
@ -408,7 +415,8 @@ public class MWMActivity extends NvEventQueueActivity implements LocationService
|
|||
{
|
||||
onAboutDialogClicked();
|
||||
return true;
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue