Merge "Fix wifi QR decorator not rendering" into udc-dev am: f8f3ecfb94
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23050248 Change-Id: Ic1c9bddbfb6d3695dfed08dd0e273b1de915fc85 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -95,9 +95,6 @@ public class QrDecorateView extends View {
|
|||||||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
||||||
super.onLayout(changed, left, top, right, bottom);
|
super.onLayout(changed, left, top, right, bottom);
|
||||||
|
|
||||||
if (!isLaidOut()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (mMaskBitmap == null) {
|
if (mMaskBitmap == null) {
|
||||||
mMaskBitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);
|
mMaskBitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);
|
||||||
mMaskCanvas = new Canvas(mMaskBitmap);
|
mMaskCanvas = new Canvas(mMaskBitmap);
|
||||||
|
|||||||
Reference in New Issue
Block a user