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

Commit 72dd460f authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Add logging for mQsExpandImmediate changes

I suspect reason for QS sometimes disappearing in split shade might have something to do with this value not being set correctly.
Also it's not changing that often - twice per expand/collapse - so should be good to log.

Bug: 219589379
Test: just adding logs
Change-Id: Ic6ef9416c7198109905cfdf16ce4e998cd398f80
parent e8b79073
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -835,6 +835,7 @@ public class QuickSettingsController {
    @VisibleForTesting
    void setExpandImmediate(boolean expandImmediate) {
        if (expandImmediate != mExpandImmediate) {
            mShadeLog.logQsExpandImmediateChanged(expandImmediate);
            mExpandImmediate = expandImmediate;
            mShadeExpansionStateManager.notifyExpandImmediateChange(expandImmediate);
        }
+11 −0
Original line number Diff line number Diff line
@@ -150,6 +150,17 @@ class ShadeLogger @Inject constructor(@ShadeLog private val buffer: LogBuffer) {
        )
    }

    fun logQsExpandImmediateChanged(newValue: Boolean) {
        buffer.log(
            TAG,
            LogLevel.VERBOSE,
            {
                bool1 = newValue
            },
            { "qsExpandImmediate=$bool1" }
        )
    }

    fun logQsExpansionChanged(
            message: String,
            qsExpanded: Boolean,