Skip to content
Snippets Groups Projects
Commit 6bc422e5 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Handle Search key to trigger filter/search

parent d3614460
No related branches found
No related tags found
No related merge requests found
......@@ -712,6 +712,8 @@ public class MainActivity extends AudioPlayerContainerActivity implements Device
(Build.VERSION.SDK_INT <= 16) &&
(Build.MANUFACTURER.compareTo("LGE") == 0)) {
return true;
} else if (keyCode == KeyEvent.KEYCODE_SEARCH) {
MenuItemCompat.expandActionView(mMenu.findItem(R.id.ml_menu_filter));
}
return super.onKeyDown(keyCode, event);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment