Merge "Make home-as-up work in UserDictionarySettings"

This commit is contained in:
Amith Yamasani
2012-04-24 13:23:12 -07:00
committed by Android (Google) Code Review

View File

@@ -171,9 +171,12 @@ public class UserDictionarySettings extends ListFragment {
@Override @Override
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == OPTIONS_MENU_ADD) {
showAddOrEditDialog(null); showAddOrEditDialog(null);
return true; return true;
} }
return false;
}
/** /**
* Add or edit a word. If editingWord is null, it's an add; otherwise, it's an edit. * Add or edit a word. If editingWord is null, it's an add; otherwise, it's an edit.