Skip to content

Commit

Permalink
Merge pull request #1844 from moneymanagerex/scheduled
Browse files Browse the repository at this point in the history
still use setupLegacyFingerprintAuth
  • Loading branch information
guanlisheng authored Sep 21, 2024
2 parents 5dbbc23 + a0ac195 commit 0d65116
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
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.

0 comments on commit 0d65116

Please sign in to comment.