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:
Amith Yamasani
2012-04-24 13:06:39 -07:00
parent e2b3370876
commit 432fafe200

View File

@@ -171,8 +171,11 @@ public class UserDictionarySettings extends ListFragment {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
showAddOrEditDialog(null);
return true;
if (item.getItemId() == OPTIONS_MENU_ADD) {
showAddOrEditDialog(null);
return true;
}
return false;
}
/**