summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2017-06-29 00:17:19 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-06-29 00:17:19 +0000
commite33c33e38aec8667d9f3c0d02de7a8c22813df7f (patch)
treea9ecd6368fce44b3b20bc19fab3ee5b8792ecfc1
parentc55f7d21806d3a9bb423b6e82d62c3259548ee60 (diff)
parent8661c5e519ef0f5ab2122f8280364d8e90caedf7 (diff)
Merge "Disable requestVisibleBehind." into oc-dev
-rw-r--r--core/java/android/app/Activity.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java
index bc6e9cd0ab7e..0ff3215e1271 100644
--- a/core/java/android/app/Activity.java
+++ b/core/java/android/app/Activity.java
@@ -6416,17 +6416,7 @@ public class Activity extends ContextThemeWrapper
*/
@Deprecated
public boolean requestVisibleBehind(boolean visible) {
- if (!mResumed) {
- // Do not permit paused or stopped activities to do this.
- visible = false;
- }
- try {
- mVisibleBehind = ActivityManager.getService()
- .requestVisibleBehind(mToken, visible) && visible;
- } catch (RemoteException e) {
- mVisibleBehind = false;
- }
- return mVisibleBehind;
+ return false;
}
/**