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

still use setupLegacyFingerprintAuth #1844

Merged
merged 3 commits into from
Sep 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ android {

defaultConfig {
applicationId "com.money.manager.ex"
versionCode 1040
versionCode 1041
//versionName getVersionAsDate() + "." + versionCode
versionName "2024.09.18"
versionName "2024.09.21"
// $applicationId
setProperty("archivesBaseName", "ammx-$versionName")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,10 @@ protected void onCreate(Bundle savedInstanceState) {
.color(ui.getPrimaryTextColor()));

// Handle fingerprint authentication
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
// setupBiometricPrompt();
} else {
setupLegacyFingerprintAuth();
}
findViewById(R.id.fpImageView).setVisibility(View.GONE);
findViewById(R.id.fingerprintInfo).setVisibility(View.GONE);
setupLegacyFingerprintAuth();
// TODO setupBiometricPrompt();
}

@Override
Expand Down Expand Up @@ -211,10 +210,10 @@ private void setupLegacyFingerprintAuth() {
KeyguardManager keyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE);
FingerprintManager fingerprintManager = (FingerprintManager) getSystemService(FINGERPRINT_SERVICE);

if (!fingerprintManager.isHardwareDetected()) {
findViewById(R.id.fpImageView).setVisibility(View.GONE);
findViewById(R.id.fingerprintInfo).setVisibility(View.GONE);
} else {
if (fingerprintManager.isHardwareDetected()) {
findViewById(R.id.fpImageView).setVisibility(View.VISIBLE);
findViewById(R.id.fingerprintInfo).setVisibility(View.VISIBLE);

if (ActivityCompat.checkSelfPermission(this, Manifest.permission.USE_FINGERPRINT) != PackageManager.PERMISSION_GRANTED) {
Toast.makeText(this, R.string.fingerprint_check_permission, Toast.LENGTH_LONG).show();
}
Expand Down
3 changes: 3 additions & 0 deletions metadata/android/en-US/changelogs/1041.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Enhanced synchronization behavior and fixed an edge case when no network connection is available.
- Increased minimum Android version requirement to 8.0 (API level 26).
- Re-enabled fingerprint authentication, previously disabled in v2024.09.18.1040.
Binary file modified metadata/android/en-US/images/phoneScreenshots/sync_setting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading