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

This issue is caused by side effect of CL Ib95d090729b1561a70a853b17a4e17cdcbb71fbd. Description height
should be used when its visibility is GONE.

BUG: 230665942
Test: Check budget bakers wallet app's fingerprint icon
Change-Id: Id8d3e4a203ca012ab42ca8f984e8a09df1a77c85
This commit is contained in:
Vincent Wang
2022-05-03 13:07:17 +08:00
parent 92d87441e8
commit 29f4d11428

View File

@@ -154,7 +154,9 @@ public class UdfpsDialogMeasureAdapter {
//re-calculate the height of 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);
}