Commit c511bee4 authored by Mihai Preda's avatar Mihai Preda
Browse files

reflect remove NameNotFoundException from getLaunchIntentForPackage.

parent fe069ea7
...@@ -73,11 +73,8 @@ public class InstallAppDone extends Activity implements View.OnClickListener { ...@@ -73,11 +73,8 @@ public class InstallAppDone extends Activity implements View.OnClickListener {
centerTextDrawableId = R.drawable.button_indicator_finish; centerTextDrawableId = R.drawable.button_indicator_finish;
centerTextLabel = R.string.install_done; centerTextLabel = R.string.install_done;
// Enable or disable launch button // Enable or disable launch button
try { mLaunchIntent = getPackageManager().getLaunchIntentForPackage(
mLaunchIntent = getPackageManager().getLaunchIntentForPackage( mAppInfo.packageName);
mAppInfo.packageName);
} catch (PackageManager.NameNotFoundException e) {
}
if(mLaunchIntent != null) { if(mLaunchIntent != null) {
mLaunchButton.setOnClickListener(this); mLaunchButton.setOnClickListener(this);
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment