mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fix QSB tap crash
Launcher should use LCM of supported getSupportedItemsPerRowArray instead of product. Bug: 182236647 Test: Manual Change-Id: Ia0ad1158a841068c29ed09bf7f598f14c410092f
This commit is contained in:
@@ -290,8 +290,10 @@ public class AllAppsGridAdapter extends
|
||||
public void setAppsPerRow(int appsPerRow) {
|
||||
mAppsPerRow = appsPerRow;
|
||||
int totalSpans = mAppsPerRow;
|
||||
for (int itemPerRow : mSearchAdapterProvider.getSupportedItemsPerRow()) {
|
||||
totalSpans *= itemPerRow;
|
||||
for (int itemPerRow : mSearchAdapterProvider.getSupportedItemsPerRowArray()) {
|
||||
if (totalSpans % itemPerRow != 0) {
|
||||
totalSpans *= itemPerRow;
|
||||
}
|
||||
}
|
||||
mGridLayoutMgr.setSpanCount(totalSpans);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user