Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c556702 authored by Eric Lin's avatar Eric Lin
Browse files

Refactor BubblesTransitionObserver#onTransitionReady.

Moved loop-invariant checks out of the main loop in `onTransitionReady`.
Conditions related to the overall bubble state are now evaluated once
upfront, allowing for an early return if no further processing is
needed.

Additionally, values constant across loop iterations, such as the
expanded bubble's task ID and the bubble view's display ID, are now
pre-computed. This avoids redundant calculations and improves
performance and readability.

BUG: 387193964
Test: atest WMShellUnitTests:BubblesTransitionObserverTest
Flag: EXEMPT refactor
Change-Id: Ib13534ec28b9b2a5bde19a7cfbda75ced48b0f6a
parent e3c98685
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment