StrictMode class instance limit interface.
Change-Id: Ic5eea539586e5d4965d83364bf9f623d1d89f2b1
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java
index ec2f771..93ad17e 100644
--- a/core/java/android/app/Activity.java
+++ b/core/java/android/app/Activity.java
@@ -45,6 +45,7 @@
import android.os.Looper;
import android.os.Parcelable;
import android.os.RemoteException;
+import android.os.StrictMode;
import android.text.Selection;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
@@ -858,6 +859,7 @@
mFragments.restoreAllState(p, mLastNonConfigurationInstances != null
? mLastNonConfigurationInstances.fragments : null);
}
+ StrictMode.noteActivityClass(this.getClass());
mFragments.dispatchCreate();
mCalled = true;
}