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

Commit 62f4d08d authored by Julia Tuttle's avatar Julia Tuttle Committed by Cherrypicker Worker
Browse files

NSSL: Log actual orientation on updateSidePadding

Bug: 326447757
Test: NA
Flag: NA
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:9c14c9d94bbe8a7701cade7c2a5e2bb3b69f4102)
Merged-In: I97375eacf9e566f68a440ed019a559693dd51450
Change-Id: I97375eacf9e566f68a440ed019a559693dd51450
parent afe50c04
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1127,12 +1127,11 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
    }

    void updateSidePadding(int viewWidth) {
        final boolean portrait =
                getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT;
        final int orientation = getResources().getConfiguration().orientation;

        mLastUpdateSidePaddingDumpString = "viewWidth=" + viewWidth
                + " skinnyNotifsInLandscape=" + mSkinnyNotifsInLandscape
                + " portrait=" + portrait;
                + " orientation=" + orientation;

        if (DEBUG_UPDATE_SIDE_PADDING) {
            Log.v(TAG, "updateSidePadding: " + mLastUpdateSidePaddingDumpString);
@@ -1144,7 +1143,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
        }

        // Portrait is easy, just use the dimen for paddings
        if (portrait) {
        if (orientation == Configuration.ORIENTATION_PORTRAIT) {
            mSidePaddings = mMinimumPaddings;
            return;
        }