Merge "Move Canvas compatibility settings into Compatibility class"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fdc7ce1e72
@@ -5346,10 +5346,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
// of whether a layout was requested on that View.
|
||||
sIgnoreMeasureCache = targetSdkVersion < Build.VERSION_CODES.KITKAT;
|
||||
|
||||
Canvas.sCompatibilityRestore = targetSdkVersion < Build.VERSION_CODES.M;
|
||||
Canvas.sCompatibilitySetBitmap = targetSdkVersion < Build.VERSION_CODES.O;
|
||||
Canvas.setCompatibilityVersion(targetSdkVersion);
|
||||
|
||||
// In M and newer, our widgets can pass a "hint" value in the size
|
||||
// for UNSPECIFIED MeasureSpecs. This lets child views of scrolling containers
|
||||
// know what the expected parent size is going to be, so e.g. list items can size
|
||||
|
||||
Reference in New Issue
Block a user