From f7ace03e14ed218f021173d38f9b739fc378ef4c Mon Sep 17 00:00:00 2001 From: Nicolo' Mazzucato Date: Fri, 16 Sep 2022 16:53:10 +0000 Subject: [PATCH] Log configuration once changed from QSPanelControllerBase This will aid the debug of b/216244185 Bug: 216244185 Test: grabbed a bugreport and made sure it's visible Change-Id: Iebe082f118cb7dcfc6a94b215deebba75d1ed2be --- .../com/android/systemui/qs/QSPanelControllerBase.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSPanelControllerBase.java b/packages/SystemUI/src/com/android/systemui/qs/QSPanelControllerBase.java index 57bea67b7678f..6e4c858e89dff 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSPanelControllerBase.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSPanelControllerBase.java @@ -24,6 +24,7 @@ import android.annotation.Nullable; import android.content.ComponentName; import android.content.res.Configuration; import android.metrics.LogMaker; +import android.util.Log; import android.view.View; import com.android.internal.annotations.VisibleForTesting; @@ -61,6 +62,7 @@ import kotlin.jvm.functions.Function1; */ public abstract class QSPanelControllerBase extends ViewController implements Dumpable{ + private static final String TAG = "QSPanelControllerBase"; protected final QSTileHost mHost; private final QSCustomizerController mQsCustomizerController; private final boolean mUsingMediaPlayer; @@ -90,6 +92,13 @@ public abstract class QSPanelControllerBase extends ViewContr public void onConfigurationChange(Configuration newConfig) { mShouldUseSplitNotificationShade = LargeScreenUtils.shouldUseSplitNotificationShade(getResources()); + // Logging to aid the investigation of b/216244185. + Log.d(TAG, + "onConfigurationChange: " + + "mShouldUseSplitNotificationShade=" + + mShouldUseSplitNotificationShade + ", " + + "newConfig.windowConfiguration=" + + newConfig.windowConfiguration); mQSLogger.logOnConfigurationChanged(mLastOrientation, newConfig.orientation, mView.getDumpableTag()); onConfigurationChanged();