Fixing issue with touch scrolling the prediction bar.
Change-Id: Ie15ca96e5ea33a54508285aa76fb6aea81b2376d
This commit is contained in:
1 parent
358af81ca4
commit
6b27614c54
3 files changed
+88
-16
No files matched your search
@@ -443,7 +443,7 @@ public class DeviceProfile {
|
||||
int availableAppsWidthPx = (containerWidth > 0) ? containerWidth : availableWidthPx;
|
||||
int numAppsCols = (availableAppsWidthPx - appsViewLeftMarginPx) /
|
||||
(allAppsCellWidthPx + 2 * allAppsCellPaddingPx);
|
||||
int numPredictiveAppCols = isPhone() ? numColumns : numAppsCols;
|
||||
int numPredictiveAppCols = Math.max(numColumns, numAppsCols);
|
||||
if ((numAppsCols != appsViewNumCols) ||
|
||||
(numPredictiveAppCols != appsViewNumPredictiveCols)) {
|
||||
appsViewNumCols = numAppsCols;
|
||||
|
||||
Reference in new issue
Block a user