Skip to content
Snippets Groups Projects
Commit 593d85c3 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

search: show qr button, flip keyboard button

Change-Id: Ib1bbd646eb8598de202bd8420c3e346ad60b5a58
parent f9a35531
Branches
No related tags found
No related merge requests found
......@@ -219,8 +219,10 @@ public class SmartListFragment extends BaseSupportFragment<SmartListPresenter> i
case R.id.menu_contact_dial:
if (mSearchView.getInputType() == EditorInfo.TYPE_CLASS_PHONE) {
mSearchView.setInputType(EditorInfo.TYPE_CLASS_TEXT);
mDialpadMenuItem.setIcon(R.drawable.baseline_dialpad_24);
} else {
mSearchView.setInputType(EditorInfo.TYPE_CLASS_PHONE);
mDialpadMenuItem.setIcon(R.drawable.baseline_keyboard_24);
}
return true;
case R.id.menu_scan_qr:
......@@ -334,12 +336,7 @@ public class SmartListFragment extends BaseSupportFragment<SmartListPresenter> i
*/
private void setOverflowMenuVisible(final Menu menu, boolean visible) {
if (null != menu) {
MenuItem scanQrMenuItem = menu.findItem(R.id.menu_scan_qr);
MenuItem overflowMenuItem = menu.findItem(R.id.menu_overflow);
if (null != scanQrMenuItem) {
scanQrMenuItem.setVisible(visible);
}
if (null != overflowMenuItem) {
overflowMenuItem.setVisible(visible);
}
......
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M20,5L4,5c-1.1,0 -1.99,0.9 -1.99,2L2,17c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,7c0,-1.1 -0.9,-2 -2,-2zM11,8h2v2h-2L11,8zM11,11h2v2h-2v-2zM8,8h2v2L8,10L8,8zM8,11h2v2L8,13v-2zM7,13L5,13v-2h2v2zM7,10L5,10L5,8h2v2zM16,17L8,17v-2h8v2zM16,13h-2v-2h2v2zM16,10h-2L14,8h2v2zM19,13h-2v-2h2v2zM19,10h-2L17,8h2v2z"/>
</vector>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment