Removing some device profile dependencies in view contructors

Bug: 71709920
Change-Id: I13e33dceaeff71e3fb7bbb93f24be69c17d6da96
This commit is contained in:
Sunny Goyal
2018-01-16 14:17:20 -08:00
parent 000e0a1480
commit 12069e6cbf
5 changed files with 19 additions and 27 deletions

View File

@@ -102,8 +102,6 @@ public class DeviceProfile {
// All apps
public int allAppsCellHeightPx;
public int allAppsNumCols;
public int allAppsNumPredictiveCols;
public int allAppsIconSizePx;
public int allAppsIconDrawablePaddingPx;
public float allAppsIconTextSizePx;
@@ -385,10 +383,6 @@ public class DeviceProfile {
return mInsets;
}
public void updateAppsViewNumCols() {
allAppsNumCols = allAppsNumPredictiveCols = inv.numColumns;
}
public Point getCellSize() {
Point result = new Point();
// Since we are only concerned with the overall padding, layout direction does