Revert "Moving DeviceProfile properties into DeviceProperties da..."
Revert submission 33672643-DataDeviceProfile1 Reason for revert: Droidmonitor created revert due to b/419867875. Will be verifying through ABTD before submission. Fix: 419867875 Reverted changes: /q/submissionid:33672643-DataDeviceProfile1 Change-Id: Icb66aefbbcee24e05806b2139923e1f2ea1c65e3
This commit is contained in:
1 parent
e1111e28c2
commit
7705e92d93
127 files changed
+596
-726
No files matched your search
@@ -38,7 +38,7 @@ public class TaskbarThresholdUtils {
|
||||
|
||||
private static int getThreshold(Resources r, DeviceProfile dp, int thresholdDimen,
|
||||
int multiplierDimen) {
|
||||
float landscapeScreenHeight = dp.getDeviceProperties().isLandscape() ? dp.getDeviceProperties().getHeightPx() : dp.getDeviceProperties().getWidthPx();
|
||||
float landscapeScreenHeight = dp.isLandscape ? dp.heightPx : dp.widthPx;
|
||||
float screenPart = (landscapeScreenHeight * SCREEN_UNITS);
|
||||
float defaultDp = dpiFromPx(screenPart, DisplayMetrics.DENSITY_DEVICE_STABLE);
|
||||
float thisDp = dpToPx(defaultDp);
|
||||
|
||||
Reference in new issue
Block a user