Merge "Only make home opaque when requesting visible behind false."
This commit is contained in:
committed by
Android (Google) Code Review
commit
267c503354
@@ -2601,9 +2601,11 @@ public final class ActivityStackSupervisor implements DisplayListener {
|
||||
|
||||
stack.setVisibleBehindActivity(visible ? r : null);
|
||||
if (!visible) {
|
||||
// Make the activity immediately above r opaque.
|
||||
// If there is a translucent home activity, we need to force it stop being translucent,
|
||||
// because we can't depend on the application to necessarily perform that operation.
|
||||
// Check out b/14469711 for details.
|
||||
final ActivityRecord next = stack.findNextTranslucentActivity(r);
|
||||
if (next != null) {
|
||||
if (next != null && next.isHomeActivity()) {
|
||||
mService.convertFromTranslucent(next.appToken);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user