Skip to content

Commit

Permalink
Many removals
Browse files Browse the repository at this point in the history
- Removed the fingerprint xml
- Removed the Fingerprint Fragment and java files
- Removed the enum referencing the fingerprint prompt
- Removed check of fingerprint enrollment and checks
- Removed biometrics and fingerprint permissions

Signed-off-by: kcw-grunt <[email protected]>
  • Loading branch information
kcw-grunt committed Nov 1, 2024
1 parent 231fbcd commit 4540462
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 603 deletions.
7 changes: 0 additions & 7 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.BIND_JOB_SERVICE" />
Expand Down Expand Up @@ -193,11 +191,6 @@
android:exported="true"
android:launchMode="singleTask"
android:screenOrientation="portrait" />
<activity
android:name=".presenter.activities.settings.FingerprintActivity"
android:exported="true"
android:launchMode="singleTask"
android:screenOrientation="portrait" />
<activity
android:name=".presenter.activities.settings.AdvancedActivity"
android:exported="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,6 @@ protected void onCreate(Bundle savedInstanceState) {
}
});

final boolean useFingerprint = AuthManager.isFingerPrintAvailableAndSetup(this) && BRSharedPrefs.getUseFingerprint(this);
fingerPrint.setVisibility(useFingerprint ? View.VISIBLE : View.GONE);


new Handler().postDelayed(() -> {
if (fingerPrint != null && useFingerprint)
fingerPrint.performClick();
}, 500);

setCurrentLtcPrice();
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,6 @@ public void onClick(View v) {
}
}));

int resId = Utils.isFingerprintEnrolled(SecurityCenterActivity.this)
&& BRSharedPrefs.getUseFingerprint(SecurityCenterActivity.this)
? R.drawable.ic_check_mark_blue
: R.drawable.ic_check_mark_grey;

if (Utils.isFingerprintAvailable(this)) {
itemList.add(new BRSecurityCenterItem(getString(R.string.SecurityCenter_touchIdTitle_android), getString(R.string.SecurityCenter_touchIdDescription),
resId, new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(SecurityCenterActivity.this, FingerprintActivity.class);
startActivity(intent);
overridePendingTransition(R.anim.enter_from_right, R.anim.exit_to_left);
}
}));
}

boolean isPaperKeySet = BRSharedPrefs.getPhraseWroteDown(this);
itemList.add(new BRSecurityCenterItem(getString(R.string.SecurityCenter_paperKeyTitle), getString(R.string.SecurityCenter_paperKeyDescription),
isPaperKeySet ? R.drawable.ic_check_mark_blue : R.drawable.ic_check_mark_grey, new View.OnClickListener() {
Expand Down
Loading

0 comments on commit 4540462

Please sign in to comment.