Keep statusbar visibility stable during camera transitions
Restrict AOD host-opacity synchronization to AOD so unlocked layout refreshes preserve the stock statusbar's visibility. Synchronize unlocked hosts before drawing to avoid a stale visible frame when fullscreen state changes. Verified repeated camera launches, rapid exits, and return to Home on OneUI through the test agent; remove temporary diagnostics.
This commit is contained in:
1 parent
a708578e06
commit
cbde172e38
1 file changed
+5
-3
+5
-3
@@ -1460,6 +1460,7 @@ final class StockLayoutCanvasController {
|
||||
return;
|
||||
}
|
||||
if (activeScene != null && activeScene.isUnlocked()) {
|
||||
syncUnlockedHostsToStockStatusBar(root, activeScene);
|
||||
if (isKnownRootGeometryChanged(root)) {
|
||||
ownedIconHostManager.setUnlockedHostsVisible(root, false);
|
||||
removeDebugOverlay(root);
|
||||
@@ -2792,9 +2793,10 @@ final class StockLayoutCanvasController {
|
||||
return;
|
||||
}
|
||||
SceneKey activeScene = runtimeContext.getModeStateRepository().getActiveScene();
|
||||
float alpha = activeScene != null && activeScene.isAod()
|
||||
? aodVisualAlphaForRoot(root)
|
||||
: 1f;
|
||||
if (activeScene == null || !activeScene.isAod()) {
|
||||
return;
|
||||
}
|
||||
float alpha = aodVisualAlphaForRoot(root);
|
||||
setHostAlpha(hosts.clockHost, alpha);
|
||||
setHostAlpha(hosts.carrierHost, alpha);
|
||||
setHostAlpha(hosts.chipHost, alpha);
|
||||
|
||||
Reference in new issue
Block a user