Loading services/core/java/com/android/server/am/ActivityStackSupervisor.java +8 −6 Original line number Diff line number Diff line Loading @@ -2783,9 +2783,8 @@ public final class ActivityStackSupervisor implements DisplayListener { } // A non-top activity is reporting a visibility change. if ((visible && (top.fullscreen || top.state != ActivityState.RESUMED)) || top.app == null || top.app.thread == null) { // Can't carry out this request. if (visible && top.fullscreen) { // Let the caller know that it can't be seen. if (DEBUG_VISIBLE_BEHIND) Slog.d(TAG, "requestVisibleBehind: returning top.fullscreen=" + top.fullscreen + " top.state=" + top.state + " top.app=" + top.app + " top.app.thread=" + top.app.thread); Loading @@ -2807,10 +2806,13 @@ public final class ActivityStackSupervisor implements DisplayListener { mService.convertFromTranslucent(next.appToken); } } if (top.app != null && top.app.thread != null) { // Notify the top app of the change. try { top.app.thread.scheduleBackgroundVisibleBehindChanged(top.appToken, visible); } catch (RemoteException e) { } } return true; } Loading Loading
services/core/java/com/android/server/am/ActivityStackSupervisor.java +8 −6 Original line number Diff line number Diff line Loading @@ -2783,9 +2783,8 @@ public final class ActivityStackSupervisor implements DisplayListener { } // A non-top activity is reporting a visibility change. if ((visible && (top.fullscreen || top.state != ActivityState.RESUMED)) || top.app == null || top.app.thread == null) { // Can't carry out this request. if (visible && top.fullscreen) { // Let the caller know that it can't be seen. if (DEBUG_VISIBLE_BEHIND) Slog.d(TAG, "requestVisibleBehind: returning top.fullscreen=" + top.fullscreen + " top.state=" + top.state + " top.app=" + top.app + " top.app.thread=" + top.app.thread); Loading @@ -2807,10 +2806,13 @@ public final class ActivityStackSupervisor implements DisplayListener { mService.convertFromTranslucent(next.appToken); } } if (top.app != null && top.app.thread != null) { // Notify the top app of the change. try { top.app.thread.scheduleBackgroundVisibleBehindChanged(top.appToken, visible); } catch (RemoteException e) { } } return true; } Loading