Use the number of shown hotseat icons instead of database items to store into the DB
It seems this issue was originated from ag/14129534 and we should no
longer use numDatabaseHotseatIcons form IDP and use numShownHotseatIcons
from the DP.
Fix: 305119735
Flag: NA
Test: manuall testing, we don't have this test for landscape
Change-Id: Ie530748f9b77d89ac3298c187ae767643d505cb3
diff --git a/src/com/android/launcher3/LauncherModel.java b/src/com/android/launcher3/LauncherModel.java
index 551735e..c81db63 100644
--- a/src/com/android/launcher3/LauncherModel.java
+++ b/src/com/android/launcher3/LauncherModel.java
@@ -180,10 +180,10 @@
}
@NonNull
- public ModelWriter getWriter(final boolean hasVerticalHotseat, final boolean verifyChanges,
- CellPosMapper cellPosMapper, @Nullable final Callbacks owner) {
- return new ModelWriter(mApp.getContext(), this, mBgDataModel,
- hasVerticalHotseat, verifyChanges, cellPosMapper, owner);
+ public ModelWriter getWriter(final boolean verifyChanges, CellPosMapper cellPosMapper,
+ @Nullable final Callbacks owner) {
+ return new ModelWriter(mApp.getContext(), this, mBgDataModel, verifyChanges, cellPosMapper,
+ owner);
}
@Override