diff --git a/app/src/main/java/me/impy/aegis/ui/SlotManagerActivity.java b/app/src/main/java/me/impy/aegis/ui/SlotManagerActivity.java index 66b80667..5a40dc46 100644 --- a/app/src/main/java/me/impy/aegis/ui/SlotManagerActivity.java +++ b/app/src/main/java/me/impy/aegis/ui/SlotManagerActivity.java @@ -72,11 +72,11 @@ public class SlotManagerActivity extends AegisActivity implements SlotAdapter.Li // only show the fingerprint option if we can get an instance of the fingerprint manager // and if none of the slots in the collection has a matching alias in the keystore int visibility = View.VISIBLE; - if (FingerprintHelper.isSupported()) { + if (FingerprintHelper.getManager(this) != null) { try { KeyStoreHandle keyStore = new KeyStoreHandle(); for (FingerprintSlot slot : _slots.findAll(FingerprintSlot.class)) { - if (keyStore.containsKey(slot.getUUID().toString()) && FingerprintHelper.getManager(this) != null) { + if (keyStore.containsKey(slot.getUUID().toString())) { visibility = View.GONE; break; } diff --git a/app/src/main/res/layout/fragment_authentication_slide.xml b/app/src/main/res/layout/fragment_authentication_slide.xml index edc2fc88..4f975a6f 100644 --- a/app/src/main/res/layout/fragment_authentication_slide.xml +++ b/app/src/main/res/layout/fragment_authentication_slide.xml @@ -25,7 +25,6 @@ android:layout_marginTop="12dp" android:orientation="horizontal"> -