Add theme & View API to control force-dark
Bug: 102591313 Test: CTS android.uirendering.cts.testclasses.ForceDarkTests Change-Id: I6ba129681aed8e2f3f1b1ac60d458bb5f5393e9b
This commit is contained in:
@@ -1294,7 +1294,7 @@ public final class Bitmap implements Parcelable {
|
||||
final RenderNode node = RenderNode.create("BitmapTemporary", null);
|
||||
node.setLeftTopRightBottom(0, 0, width, height);
|
||||
node.setClipToBounds(false);
|
||||
node.setAllowForceDark(false);
|
||||
node.setForceDarkAllowed(false);
|
||||
final RecordingCanvas canvas = node.start(width, height);
|
||||
if (source.getWidth() != width || source.getHeight() != height) {
|
||||
canvas.scale(width / (float) source.getWidth(),
|
||||
|
||||
Reference in New Issue
Block a user