Commit 87ec609c authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Only log (not crash) when activity is not found.

Fixes: 29260288
Change-Id: Iaa309f362ae6a296f7ba365e418d4a6f55b23f0c
parent 9c177f8d
......@@ -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();
}
}
......
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