Added lottie animations for udfps side/tip
Bug: 209807883 Test: Verified animations show for multiple devices. Change-Id: Ic63a0eca226309b92aa64cb4f80791ef179b8154
This commit is contained in:
@@ -289,4 +289,14 @@ public class BiometricUtils {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns {@code true} if the screen is going into a landscape mode and the angle is equal to
|
||||
* 90.
|
||||
* @param context Context that we use to get the display this context is associated with
|
||||
* @return True if the angle of the rotation is equal to 90.
|
||||
*/
|
||||
public static boolean isLandscape(@NonNull Context context) {
|
||||
return context.getDisplay().getRotation() == Surface.ROTATION_90;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user