Merge "Remove WindowManager usage in ViewConfiguration" into sc-v2-dev
This commit is contained in:
@@ -433,9 +433,8 @@ public class ViewConfiguration {
|
|||||||
mAmbiguousGestureMultiplier = Math.max(1.0f, multiplierValue.getFloat());
|
mAmbiguousGestureMultiplier = Math.max(1.0f, multiplierValue.getFloat());
|
||||||
|
|
||||||
// Size of the screen in bytes, in ARGB_8888 format
|
// Size of the screen in bytes, in ARGB_8888 format
|
||||||
final WindowManager windowManager = context.getSystemService(WindowManager.class);
|
final Rect maxBounds = config.windowConfiguration.getMaxBounds();
|
||||||
final Rect maxWindowBounds = windowManager.getMaximumWindowMetrics().getBounds();
|
mMaximumDrawingCacheSize = 4 * maxBounds.width() * maxBounds.height();
|
||||||
mMaximumDrawingCacheSize = 4 * maxWindowBounds.width() * maxWindowBounds.height();
|
|
||||||
|
|
||||||
mOverscrollDistance = (int) (sizeAndDensity * OVERSCROLL_DISTANCE + 0.5f);
|
mOverscrollDistance = (int) (sizeAndDensity * OVERSCROLL_DISTANCE + 0.5f);
|
||||||
mOverflingDistance = (int) (sizeAndDensity * OVERFLING_DISTANCE + 0.5f);
|
mOverflingDistance = (int) (sizeAndDensity * OVERFLING_DISTANCE + 0.5f);
|
||||||
|
|||||||
Reference in New Issue
Block a user