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

Commit 9c14c9d9 authored by Julia Tuttle's avatar Julia Tuttle
Browse files

NSSL: Log actual orientation on updateSidePadding

Bug: 326447757
Test: NA
Flag: NA
Change-Id: I97375eacf9e566f68a440ed019a559693dd51450
parent 8e74c58d
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1109,12 +1109,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);
@@ -1126,7 +1125,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;
        }