am 1199a37a: Merge "Catch ActivityNotFoundException in Recents" into klp-dev

* commit '1199a37a038d28753396a08ff60de2491bb6a20d':
  Catch ActivityNotFoundException in Recents
This commit is contained in:
Michael Jurka
2013-09-16 10:58:35 -07:00
committed by Android Git Automerger

View File

@@ -23,6 +23,7 @@ import android.app.ActivityManager;
import android.app.ActivityManagerNative; import android.app.ActivityManagerNative;
import android.app.ActivityOptions; import android.app.ActivityOptions;
import android.app.TaskStackBuilder; import android.app.TaskStackBuilder;
import android.content.ActivityNotFoundException;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.content.res.Configuration; import android.content.res.Configuration;
@@ -698,6 +699,8 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
new UserHandle(UserHandle.USER_CURRENT)); new UserHandle(UserHandle.USER_CURRENT));
} catch (SecurityException e) { } catch (SecurityException e) {
Log.e(TAG, "Recents does not have the permission to launch " + intent, 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) { if (usingDrawingCache) {