diff options
author | Mihai Preda <preda@google.com> | 2009-05-14 21:58:50 +0200 |
---|---|---|
committer | Mihai Preda <preda@google.com> | 2009-05-14 21:58:50 +0200 |
commit | c511bee49809773d1a7b920525199282d7436b49 (patch) | |
tree | 5087e90ff261c3112309f707d57ca13a4c7d3edf /src | |
parent | fe069ea729efec01a8b6f16f9e76a2db4988404a (diff) | |
download | packages_apps_packageinstaller-c511bee49809773d1a7b920525199282d7436b49.zip packages_apps_packageinstaller-c511bee49809773d1a7b920525199282d7436b49.tar.gz packages_apps_packageinstaller-c511bee49809773d1a7b920525199282d7436b49.tar.bz2 |
reflect remove NameNotFoundException from getLaunchIntentForPackage.
Diffstat (limited to 'src')
-rwxr-xr-x | src/com/android/packageinstaller/InstallAppDone.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/packageinstaller/InstallAppDone.java b/src/com/android/packageinstaller/InstallAppDone.java index 5a3f7d6..141517a 100755 --- a/src/com/android/packageinstaller/InstallAppDone.java +++ b/src/com/android/packageinstaller/InstallAppDone.java @@ -73,11 +73,8 @@ public class InstallAppDone extends Activity implements View.OnClickListener { centerTextDrawableId = R.drawable.button_indicator_finish; centerTextLabel = R.string.install_done; // Enable or disable launch button - try { - mLaunchIntent = getPackageManager().getLaunchIntentForPackage( - mAppInfo.packageName); - } catch (PackageManager.NameNotFoundException e) { - } + mLaunchIntent = getPackageManager().getLaunchIntentForPackage( + mAppInfo.packageName); if(mLaunchIntent != null) { mLaunchButton.setOnClickListener(this); } else { |