summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2017-06-27 13:46:14 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-06-29 04:40:59 +0000
commit7adc1a27415497f892a4f04678ac3f7b2b821bb8 (patch)
tree04b4a32cc1b5907aba4ec42bf7b468b4c75ab148
parent2e581fcc3d5ed5b23487506267c444e17f5d0736 (diff)
downloadbase-7adc1a27415497f892a4f04678ac3f7b2b821bb8.tar.gz
Disable requestVisibleBehind.
As there is no caller for the SystemAPI convertToTranslucent, there is no situation where requestVisibleBehind will actually result in the activity becoming visible behind. However we have bugs in the requestVisibleBehind code-path, so rather than fix them...it seems better to just prevent ourselves from running in to them. Full deletion of the code-path is scheduled for post-O branches. Change-Id: I6e7c79e036986564d2d443a603e63c341de23057 Fixes: 62512584 Test: Repro from bug. go/wm-smoke. (cherry picked from commit 8661c5e519ef0f5ab2122f8280364d8e90caedf7)
-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;
}
/**