Merge "Catch ActivityNotFoundException in Recents" into klp-dev

This commit is contained in:
Michael Jurka
2013-09-16 17:56:28 +00:00
committed by Android (Google) Code Review

View File

@@ -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) {