From bf906b8a6cc81423edf681efe2218e1689816855 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 19 Sep 2020 00:07:41 +0800 Subject: Hide Security option if no biometric authentication available. Require biometric authentication when going into security settings. --- .../MarkdownBottomBarRecyclerViewAdapter.java | 6 +-- .../infinityforreddit/AppComponent.java | 3 ++ .../Settings/MainPreferenceFragment.java | 19 +++++-- .../Settings/SecurityPreferenceFragment.java | 62 ++++++++++++++++++++++ .../Utils/SharedPreferencesUtils.java | 1 + 5 files changed, 85 insertions(+), 6 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/MarkdownBottomBarRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/MarkdownBottomBarRecyclerViewAdapter.java index be458bab..3d4b1788 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/MarkdownBottomBarRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/MarkdownBottomBarRecyclerViewAdapter.java @@ -6,12 +6,12 @@ import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.ImageView; -import android.widget.SeekBar; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.google.android.material.dialog.MaterialAlertDialogBuilder; +import com.google.android.material.slider.Slider; import ml.docilealligator.infinityforreddit.CustomTheme.CustomThemeWrapper; import ml.docilealligator.infinityforreddit.R; @@ -158,7 +158,7 @@ public class MarkdownBottomBarRecyclerViewAdapter extends RecyclerView.Adapter