Make home-as-up work in UserDictionarySettings
Since the home-as-up icon is delivered through onOptionsItemSelected, need to check the ID. Bug: 6388649 Change-Id: I00041b1a15e102826d05a40fdd288a9d8712dc48
This commit is contained in:
@@ -171,8 +171,11 @@ public class UserDictionarySettings extends ListFragment {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onOptionsItemSelected(MenuItem item) {
|
public boolean onOptionsItemSelected(MenuItem item) {
|
||||||
showAddOrEditDialog(null);
|
if (item.getItemId() == OPTIONS_MENU_ADD) {
|
||||||
return true;
|
showAddOrEditDialog(null);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user