diff options
author | Makoto Onuki <omakoto@google.com> | 2015-06-17 10:13:15 -0700 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2015-06-17 10:22:28 -0700 |
commit | 302b77f4254a57f81f572a52efc6899fbd113d12 (patch) | |
tree | 872202ef7e4535b3327eebec16836fcb60b54980 | |
parent | 4b60af78fa8b0c474c9aee0f03171867843d2838 (diff) | |
download | packages_apps_Settings-302b77f4254a57f81f572a52efc6899fbd113d12.zip packages_apps_Settings-302b77f4254a57f81f572a52efc6899fbd113d12.tar.gz packages_apps_Settings-302b77f4254a57f81f572a52efc6899fbd113d12.tar.bz2 |
Don't crash on NameNotFoundException
Just finish().
Bug 20672468
Change-Id: Ic600e060990b7e3bc3e98bda63d0f4c9e530fb94
-rw-r--r-- | src/com/android/settings/deviceinfo/StorageWizardMoveConfirm.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/deviceinfo/StorageWizardMoveConfirm.java b/src/com/android/settings/deviceinfo/StorageWizardMoveConfirm.java index e835b15..607369f 100644 --- a/src/com/android/settings/deviceinfo/StorageWizardMoveConfirm.java +++ b/src/com/android/settings/deviceinfo/StorageWizardMoveConfirm.java @@ -46,7 +46,8 @@ public class StorageWizardMoveConfirm extends StorageWizardBase { mPackageName = getIntent().getStringExtra(EXTRA_PACKAGE_NAME); mApp = getPackageManager().getApplicationInfo(mPackageName, 0); } catch (NameNotFoundException e) { - throw new RuntimeException(e); + finish(); + return; } // Sanity check that target volume is candidate |