commit | 432fafe200a84ac519b1f23484cab55007baa62a | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Tue Apr 24 13:06:39 2012 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Tue Apr 24 13:06:39 2012 -0700 |
tree | d7a82bc45e9bf6b0a6483c454cb9d70fb92d36b5 | |
parent | e2b33708763e4e04e73fd7e22e15a4eb83516c1a [diff] |
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
diff --git a/src/com/android/settings/UserDictionarySettings.java b/src/com/android/settings/UserDictionarySettings.java index f4206eb..0b93a6a 100644 --- a/src/com/android/settings/UserDictionarySettings.java +++ b/src/com/android/settings/UserDictionarySettings.java
@@ -171,8 +171,11 @@ @Override public boolean onOptionsItemSelected(MenuItem item) { - showAddOrEditDialog(null); - return true; + if (item.getItemId() == OPTIONS_MENU_ADD) { + showAddOrEditDialog(null); + return true; + } + return false; } /**