From 8661c5e519ef0f5ab2122f8280364d8e90caedf7 Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Tue, 27 Jun 2017 13:46:14 -0700 Subject: 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. --- core/java/android/app/Activity.java | 12 +----------- 1 file changed, 1 insertion(+), 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; } /** -- cgit v1.2.3-59-g8ed1b