From c511bee49809773d1a7b920525199282d7436b49 Mon Sep 17 00:00:00 2001 From: Mihai Preda Date: Thu, 14 May 2009 21:58:50 +0200 Subject: reflect remove NameNotFoundException from getLaunchIntentForPackage. --- src/com/android/packageinstaller/InstallAppDone.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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 { -- cgit v1.1