fix: Conflict incoming changes from 15-dev
This commit is contained in:
1 parent
14e352c827
commit
2e76c99dad
1726 files changed
+146970
-95027
No files matched your search
@@ -143,9 +143,10 @@ public class PredictionRowView<T extends Context & ActivityContext>
|
||||
@Override
|
||||
public int getExpectedHeight() {
|
||||
DeviceProfile deviceProfile = mActivityContext.getDeviceProfile();
|
||||
int iconHeight = deviceProfile.allAppsIconSizePx;
|
||||
int iconPadding = deviceProfile.allAppsIconDrawablePaddingPx;
|
||||
int textHeight = Utilities.calculateTextHeight(deviceProfile.allAppsIconTextSizePx);
|
||||
int iconHeight = deviceProfile.getAllAppsProfile().getIconSizePx();
|
||||
int iconPadding = deviceProfile.getAllAppsProfile().getIconDrawablePaddingPx();
|
||||
int textHeight = Utilities.calculateTextHeight(
|
||||
deviceProfile.getAllAppsProfile().getIconTextSizePx());
|
||||
int totalHeight = iconHeight + iconPadding + textHeight + mVerticalPadding * 2;
|
||||
// Prediction row height will be 4dp bigger than the regular apps in A-Z list when two line
|
||||
// is not enabled. Otherwise, the extra height will increase by just the textHeight.
|
||||
@@ -235,7 +236,11 @@ public class PredictionRowView<T extends Context & ActivityContext>
|
||||
lp.height = ViewGroup.LayoutParams.MATCH_PARENT;
|
||||
} else {
|
||||
// Ensure the all apps icon height matches the workspace icons in portrait mode.
|
||||
lp.height = mActivityContext.getDeviceProfile().allAppsCellHeightPx;
|
||||
lp.height =
|
||||
mActivityContext
|
||||
.getDeviceProfile()
|
||||
.getAllAppsProfile()
|
||||
.getCellHeightPx();
|
||||
}
|
||||
lp.width = 0;
|
||||
lp.weight = 1;
|
||||
|
||||
Reference in new issue
Block a user