Merge "Catch ActivityNotFoundException in Recents" into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1199a37a03
@@ -23,6 +23,7 @@ import android.app.ActivityManager;
|
||||
import android.app.ActivityManagerNative;
|
||||
import android.app.ActivityOptions;
|
||||
import android.app.TaskStackBuilder;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
@@ -698,6 +699,8 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
|
||||
new UserHandle(UserHandle.USER_CURRENT));
|
||||
} catch (SecurityException e) {
|
||||
Log.e(TAG, "Recents does not have the permission to launch " + intent, e);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
Log.e(TAG, "Error launching activity " + intent, e);
|
||||
}
|
||||
}
|
||||
if (usingDrawingCache) {
|
||||
|
||||
Reference in New Issue
Block a user