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 {
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 {
......
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