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

Commit 95cce6e3 authored by Roman Birg's avatar Roman Birg
Browse files

SystemUI: fix first row large tiles per page count



Change-Id: I24fc9328341558b1716e5b49953b4070fbe69e8b
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 8040b980
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -587,6 +587,9 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On
    }

    public int getTilesPerPage() {
        if (!mFirstRowLarge) {
            return QSTileHost.TILES_PER_PAGE + 1;
        }
        return QSTileHost.TILES_PER_PAGE;
    }

@@ -1626,12 +1629,7 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On
                    CMSettings.Secure.QS_USE_MAIN_TILES, 1, currentUserId) == 1;
            if (firstRowLarge != mFirstRowLarge) {
                mFirstRowLarge = firstRowLarge;
                for (TileRecord record : mRecords) {
                    DragTileRecord dr = (DragTileRecord) record;
                    final boolean dual = getPage(dr.destinationPage).dualRecord(dr);
                    record.tileView.setDual(dual, record.tile.hasDualTargetsDetails());
                }
                requestLayout();
                setTiles(mHost.getTiles());
            }
        }
    }