Fix launcher crash when trying to open work profile promise icon. am: 0121d466ec

am: ccf108c5f3

Change-Id: I95441f44090f04f391ad436f9177f8cceb496d15
This commit is contained in:
Jon Miranda
2019-08-05 15:02:12 -07:00
committed by android-build-merger
4 changed files with 51 additions and 5 deletions

View File

@@ -174,7 +174,7 @@ public abstract class BaseDraggingActivity extends BaseActivity
getUserEventDispatcher().logAppLaunch(v, intent);
getStatsLogManager().logAppLaunch(v, intent);
return true;
} catch (ActivityNotFoundException|SecurityException e) {
} catch (NullPointerException|ActivityNotFoundException|SecurityException e) {
Toast.makeText(this, R.string.activity_not_found, Toast.LENGTH_SHORT).show();
Log.e(TAG, "Unable to launch. tag=" + item + " intent=" + intent, e);
}