Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Разблокировка по PIN/Отпечатку пальца #1115

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reset pin
gdlbo committed Mar 2, 2023
commit 74b50fb9c2c824d4c16b0472cc1d0eed72bd4867
14 changes: 14 additions & 0 deletions app/src/main/java/ru/vtosters/lite/ui/fragments/PinFragment.java
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
import com.vtosters.lite.general.fragments.MaterialPreferenceToolbarFragment;

import ru.vtosters.lite.ui.PreferenceFragmentUtils;
import ru.vtosters.lite.utils.AndroidUtils;

public class PinFragment extends MaterialPreferenceToolbarFragment {
@Override
@@ -26,5 +27,18 @@ public void onCreate(Bundle bundle) {
return true;
}
);

PreferenceFragmentUtils.addPreference(
getPreferenceScreen(),
"",
"Сбросить PIN-код",
"",
null,
preference -> {
AppLock.getInstance(requireContext()).invalidateEnrollments();
AndroidUtils.sendToast("Pin-код успешно сброшен");
return true;
}
);
}
}