From c2af7f9175d6ae1cb1ec599a6b9361f4434fa531 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 14 May 2015 13:15:29 -0700 Subject: Limiting number of predictions on phones. --- src/com/android/launcher3/DeviceProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java index 890b9c9d8..fe6051dbb 100644 --- a/src/com/android/launcher3/DeviceProfile.java +++ b/src/com/android/launcher3/DeviceProfile.java @@ -443,7 +443,7 @@ public class DeviceProfile { int availableAppsWidthPx = (containerWidth > 0) ? containerWidth : availableWidthPx; int numAppsCols = (availableAppsWidthPx - appsViewLeftMarginPx) / (allAppsCellWidthPx + 2 * allAppsCellPaddingPx); - int numPredictiveAppCols = Math.max(numColumns, numAppsCols); + int numPredictiveAppCols = isPhone() ? 4 : numAppsCols; if ((numAppsCols != appsViewNumCols) || (numPredictiveAppCols != appsViewNumPredictiveCols)) { appsViewNumCols = numAppsCols; -- cgit v1.2.3