QS: Add long-press to customize prototype - part 1
Start adding prototype to long-press to go to customization view
for QS. Currently it allows re-arranging and resetting. Later
it will have more.
Change-Id: Ib2ba0f93ac2f4cced4f146d39771a8a17ac05bc2
diff --git a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java
index ece7022..c612600 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java
@@ -75,8 +75,8 @@
@Override
public void setTileVisibility(TileRecord tile, int visibility) {
tile.tileView.setVisibility(visibility);
- // TODO: Do something smarter here.
- distributeTiles();
+// // TODO: Do something smarter here.
+// distributeTiles();
}
@Override
@@ -183,13 +183,17 @@
mAllowDual = false;
}
+ public void setMaxRows(int maxRows) {
+ mMaxRows = maxRows;
+ }
+
private void clear() {
if (DEBUG) Log.d(TAG, "Clearing page");
removeAllViews();
mRecords.clear();
}
- private boolean isFull() {
+ public boolean isFull() {
return mRecords.size() >= mColumns * mMaxRows;
}
}