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,9 +171,12 @@ public class UserDictionarySettings extends ListFragment {
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
if (item.getItemId() == OPTIONS_MENU_ADD) {
|
||||
showAddOrEditDialog(null);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add or edit a word. If editingWord is null, it's an add; otherwise, it's an edit.
|
||||
|
Reference in New Issue
Block a user