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;
|
return;
|
||||||
}
|
}
|
||||||
if (activeScene != null && activeScene.isUnlocked()) {
|
if (activeScene != null && activeScene.isUnlocked()) {
|
||||||
|
syncUnlockedHostsToStockStatusBar(root, activeScene);
|
||||||
if (isKnownRootGeometryChanged(root)) {
|
if (isKnownRootGeometryChanged(root)) {
|
||||||
ownedIconHostManager.setUnlockedHostsVisible(root, false);
|
ownedIconHostManager.setUnlockedHostsVisible(root, false);
|
||||||
removeDebugOverlay(root);
|
removeDebugOverlay(root);
|
||||||
@@ -2792,9 +2793,10 @@ final class StockLayoutCanvasController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SceneKey activeScene = runtimeContext.getModeStateRepository().getActiveScene();
|
SceneKey activeScene = runtimeContext.getModeStateRepository().getActiveScene();
|
||||||
float alpha = activeScene != null && activeScene.isAod()
|
if (activeScene == null || !activeScene.isAod()) {
|
||||||
? aodVisualAlphaForRoot(root)
|
return;
|
||||||
: 1f;
|
}
|
||||||
|
float alpha = aodVisualAlphaForRoot(root);
|
||||||
setHostAlpha(hosts.clockHost, alpha);
|
setHostAlpha(hosts.clockHost, alpha);
|
||||||
setHostAlpha(hosts.carrierHost, alpha);
|
setHostAlpha(hosts.carrierHost, alpha);
|
||||||
setHostAlpha(hosts.chipHost, alpha);
|
setHostAlpha(hosts.chipHost, alpha);
|
||||||
|
|||||||
Reference in new issue
Block a user