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: Ib20f879e8cc879c827cdd5d117dacff4850bf833
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:26: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);
} }