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

Commit 8040b980 authored by Roman Birg's avatar Roman Birg
Browse files

SystemUI: fix inverted setting for first row qs toggle



Change-Id: Ibff22b6283754259193259e6827d530098aef911
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 8d23ce91
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -93,11 +93,10 @@ public class QSBooleanSettingRow extends LinearLayout implements View.OnClickLis
            mSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
                @Override
                public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                    applyChange(isChecked);
                    // TODO update table with new value
                    Log.d(TAG, "onCheckedChanged() called with "
                    if (false) Log.d(TAG, "onCheckedChanged() called with "
                            + "buttonView = [" + buttonView + "], isChecked = [" + isChecked
                            + "] and table: " + mWhichTable + ", and key: " + mKey);
                    applyChange(isChecked);
                }
            });
        }
+1 −1
Original line number Diff line number Diff line
@@ -1623,7 +1623,7 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On
            ContentResolver resolver = mContext.getContentResolver();
            int currentUserId = ActivityManager.getCurrentUser();
            boolean firstRowLarge = CMSettings.Secure.getIntForUser(resolver,
                    CMSettings.Secure.QS_USE_MAIN_TILES, 1, currentUserId) != 1;
                    CMSettings.Secure.QS_USE_MAIN_TILES, 1, currentUserId) == 1;
            if (firstRowLarge != mFirstRowLarge) {
                mFirstRowLarge = firstRowLarge;
                for (TileRecord record : mRecords) {