From 1e797bfe8a6c16a3fb00080914416a278393de1a Mon Sep 17 00:00:00 2001 From: NerdNumber9 Date: Tue, 7 Mar 2017 22:50:40 -0500 Subject: [PATCH] Add PIN feature to README. Remove hint from PIN setup dialog. --- README.md | 1 + app/src/main/java/exh/ui/lock/LockPreference.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 72f520e79..14d9b2617 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ TachiyomiEH is a fork of the [original Tachiyomi app](https://github.com/inorich * Full offline tag/namespace searching support * Batch import galleries * Automatically open E-Hentai/ExHentai links +* Lock the app with a PIN code ### Built-in manga sources ##### SFW diff --git a/app/src/main/java/exh/ui/lock/LockPreference.kt b/app/src/main/java/exh/ui/lock/LockPreference.kt index de658c181..afb60797b 100644 --- a/app/src/main/java/exh/ui/lock/LockPreference.kt +++ b/app/src/main/java/exh/ui/lock/LockPreference.kt @@ -42,7 +42,7 @@ class LockPreference @JvmOverloads constructor(context: Context, attrs: Attribut .content("Enter a pin to lock the application. Enter nothing to disable the pin lock.") .inputRangeRes(0, 10, R.color.material_red_500) .inputType(InputType.TYPE_CLASS_NUMBER) - .input("Password", "", { _, c -> + .input("", "", { _, c -> val progressDialog = MaterialDialog.Builder(context) .title("Saving password") .progress(true, 0)