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

Commit a91cd0ae authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Fixing condition for logging wtf

WTF log should happen only when we're in wrong state but current condition was triggered also on lockscreen when shade is kind of always expanded.
Changing so its triggered only in unlocked state.

Bug: 297709179
Test: just changing logging
Change-Id: Ia6900145849b36586309470788d28d2f1a77dde3
parent 852c4a49
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -791,7 +791,8 @@ public class QuickSettingsController implements Dumpable {
    /** update Qs height state */
    public void setExpansionHeight(float height) {
        // TODO(b/277909752): remove below log when bug is fixed
        if (mSplitShadeEnabled && mShadeExpandedFraction == 1.0f && height == 0) {
        if (mSplitShadeEnabled && mShadeExpandedFraction == 1.0f && height == 0
                && mBarState == SHADE) {
            Log.wtf(TAG,
                    "setting QS height to 0 in split shade while shade is open(ing). "
                            + "Value of mExpandImmediate = " + mExpandImmediate);