diff options
| author | David Brazdil <dbrazdil@google.com> | 2018-10-29 16:49:13 +0000 |
|---|---|---|
| committer | David Brazdil <dbrazdil@google.com> | 2018-11-01 10:05:28 +0000 |
| commit | c2a8de549b229710d1c9711802b249234c0bd794 (patch) | |
| tree | ca33a791a0432cbbd996f66ff8d4858e9fd5d464 /core/java | |
| parent | dffb7d988ce90fb926cf0a9257757ad3dd1b4658 (diff) | |
Remove non-SDK API toast
It served its purpose but it's time to remove it.
Test: m
Change-Id: Idc36cacae89e74f5ce01bcf51dce24cdedfda40f
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/Activity.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 32e1caefda0a..31b5e0a8e2bf 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -131,8 +131,6 @@ import com.android.internal.app.ToolbarActionBar; import com.android.internal.app.WindowDecorActionBar; import com.android.internal.policy.PhoneWindow; -import dalvik.system.VMRuntime; - import java.io.FileDescriptor; import java.io.PrintWriter; import java.lang.annotation.Retention; @@ -7235,31 +7233,6 @@ public class Activity extends ContextThemeWrapper } } - // This property is set for all non-user builds except final release - boolean isApiWarningEnabled = SystemProperties.getInt("ro.art.hiddenapi.warning", 0) == 1; - - if (isAppDebuggable || isApiWarningEnabled) { - if (!mMainThread.mHiddenApiWarningShown && VMRuntime.getRuntime().hasUsedHiddenApi()) { - // Only show the warning once per process. - mMainThread.mHiddenApiWarningShown = true; - - String appName = getApplicationInfo().loadLabel(getPackageManager()) - .toString(); - String warning = "Detected problems with API compatibility\n" - + "(visit g.co/dev/appcompat for more info)"; - if (isAppDebuggable) { - new AlertDialog.Builder(this) - .setTitle(appName) - .setMessage(warning) - .setPositiveButton(android.R.string.ok, null) - .setCancelable(false) - .show(); - } else { - Toast.makeText(this, appName + "\n" + warning, Toast.LENGTH_LONG).show(); - } - } - } - mActivityTransitionState.enterReady(this); } |
