diff options
author | Steve Kondik <steve@cyngn.com> | 2015-12-07 18:49:15 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-12-07 18:49:15 -0800 |
commit | 64e314b61e865919fc8c94165e42dfc5fb7b92f4 (patch) | |
tree | abdadcbf11c325bdf7f79a1ba051043a82909211 /src/com/android/settings/inputmethod | |
parent | 89ae71c089067d2cd6a3e7304f4126abb57ab9be (diff) | |
parent | 46742e0cf933abfcf65be9009cd9262863280c34 (diff) | |
download | packages_apps_Settings-64e314b61e865919fc8c94165e42dfc5fb7b92f4.zip packages_apps_Settings-64e314b61e865919fc8c94165e42dfc5fb7b92f4.tar.gz packages_apps_Settings-64e314b61e865919fc8c94165e42dfc5fb7b92f4.tar.bz2 |
Merge tag 'android-6.0.1_r3' of https://android.googlesource.com/platform/packages/apps/Settings into HEAD
Android 6.0.1 release 3
Change-Id: If54bacef03fc826fd02ca48db5ef3a25c8fc7127
Diffstat (limited to 'src/com/android/settings/inputmethod')
-rw-r--r-- | src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java b/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java index 2901673..587f41c 100644 --- a/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java +++ b/src/com/android/settings/inputmethod/UserDictionaryAddWordActivity.java @@ -56,7 +56,10 @@ public class UserDictionaryAddWordActivity extends Activity { // The following will get the EXTRA_WORD and EXTRA_LOCALE fields that are in the intent. // We do need to add the action by hand, because UserDictionaryAddWordContents expects // it to be in the bundle, in the EXTRA_MODE key. - final Bundle args = intent.getExtras(); + Bundle args = intent.getExtras(); + if (args == null) { + args = new Bundle(); + } args.putInt(UserDictionaryAddWordContents.EXTRA_MODE, mode); if (null != savedInstanceState) { @@ -74,6 +77,7 @@ public class UserDictionaryAddWordActivity extends Activity { private void reportBackToCaller(final int resultCode, final Bundle result) { final Intent senderIntent = getIntent(); + if (senderIntent.getExtras() == null) return; final Object listener = senderIntent.getExtras().get("listener"); if (!(listener instanceof Messenger)) return; // This will work if listener is null too. final Messenger messenger = (Messenger)listener; |