Merge "Fix UDFPS enrolling crash" into udc-dev am: 8e3c46b1c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/21617267 Change-Id: I4c8fd5ae3709aa93fa269e93eac09ce0be0bb570 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -226,6 +226,10 @@ public class UdfpsEnrollView extends FrameLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DisplayInfo displayInfo = new DisplayInfo();
|
DisplayInfo displayInfo = new DisplayInfo();
|
||||||
|
if (getDisplay() == null) {
|
||||||
|
android.util.Log.e(TAG, "Can not get display");
|
||||||
|
return;
|
||||||
|
}
|
||||||
getDisplay().getDisplayInfo(displayInfo);
|
getDisplay().getDisplayInfo(displayInfo);
|
||||||
Rect udfpsBounds = mSensorProperties.getLocation().getRect();
|
Rect udfpsBounds = mSensorProperties.getLocation().getRect();
|
||||||
float scaleFactor = mUdfpsUtils.getScaleFactor(displayInfo);
|
float scaleFactor = mUdfpsUtils.getScaleFactor(displayInfo);
|
||||||
|
Reference in New Issue
Block a user