summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2016-06-16 22:20:43 (GMT)
committerPhilip P. Moltmann <moltmann@google.com>2016-06-16 22:23:49 (GMT)
commit87ec609c146b9d9f596414df38db5fb93bdd3121 (patch)
tree3c4727617d98f1939fa09d75f659714642e6215b
parent9c177f8d28351000a66322e75d678b31716b5527 (diff)
downloadandroid_packages_apps_PackageInstaller-87ec609c146b9d9f596414df38db5fb93bdd3121.zip
android_packages_apps_PackageInstaller-87ec609c146b9d9f596414df38db5fb93bdd3121.tar.gz
android_packages_apps_PackageInstaller-87ec609c146b9d9f596414df38db5fb93bdd3121.tar.bz2
Only log (not crash) when activity is not found.
Fixes: 29260288 Change-Id: Iaa309f362ae6a296f7ba365e418d4a6f55b23f0c
-rwxr-xr-xsrc/com/android/packageinstaller/InstallAppProgress.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/InstallAppProgress.java b/src/com/android/packageinstaller/InstallAppProgress.java
index c6e3a46..7554704 100755
--- a/src/com/android/packageinstaller/InstallAppProgress.java
+++ b/src/com/android/packageinstaller/InstallAppProgress.java
@@ -22,6 +22,7 @@ import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.PendingIntent;
+import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
@@ -375,7 +376,11 @@ public class InstallAppProgress extends Activity implements View.OnClickListener
}
clearCachedApkIfNeededAndFinish();
} else if(v == mLaunchButton) {
- startActivity(mLaunchIntent);
+ try {
+ startActivity(mLaunchIntent);
+ } catch (ActivityNotFoundException e) {
+ Log.e(TAG, "Could not start activity", e);
+ }
clearCachedApkIfNeededAndFinish();
}
}