Suppress StopInfo exception based on target API.

Bug: 27429026
Change-Id: Ibf0b058b1f921c20fbc3c72045467883a8934f67
This commit is contained in:
Jeff Sharkey
2016-03-01 11:22:59 -07:00
parent a26ddbaf7b
commit 9ad8613bbb

View File

@@ -3690,8 +3690,8 @@ public final class ActivityThread {
activity.token, state, persistentState, description);
} catch (RemoteException ex) {
if (ex instanceof TransactionTooLargeException
&& "com.google.android.gms".equals(activity.packageInfo.getPackageName())) {
Log.d(TAG, "STAHP SENDING SO MUCH DATA KTHX: " + ex);
&& activity.packageInfo.getTargetSdkVersion() < Build.VERSION_CODES.N) {
Log.e(TAG, "App tried sending too much data in instance state", ex);
return;
}