DO NOT MERGE: Fix Budget bakers wallet app's fingerprint icon doesn't line up with sensor am: 29f4d11428

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18130745

Change-Id: I2d560b8bfca812d3a67d5dbf6153e7e339214efc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Vincent Wang
2022-05-06 03:27:15 +00:00
committed by Automerger Merge Worker

View File

@@ -154,7 +154,9 @@ public class UdfpsDialogMeasureAdapter {
//re-calculate the height of description //re-calculate the height of description
View description = mView.findViewById(R.id.description); View description = mView.findViewById(R.id.description);
totalHeight += measureDescription(description, displayHeight, width, totalHeight); if (description != null && description.getVisibility() != View.GONE) {
totalHeight += measureDescription(description, displayHeight, width, totalHeight);
}
return new AuthDialog.LayoutParams(width, totalHeight); return new AuthDialog.LayoutParams(width, totalHeight);
} }