File tree 5 files changed +18
-11
lines changed
fastlane/metadata/android/en-US/changelogs
5 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ android {
10
10
applicationId " me.lucky.sentry"
11
11
minSdk 23
12
12
targetSdk 32
13
- versionCode 5
14
- versionName " 1.0.4 "
13
+ versionCode 6
14
+ versionName " 1.0.5 "
15
15
16
16
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
17
17
}
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ class MainActivity : AppCompatActivity() {
31
31
super .onCreate(savedInstanceState)
32
32
binding = ActivityMainBinding .inflate(layoutInflater)
33
33
setContentView(binding.root)
34
- init ()
34
+ init1 ()
35
35
if (initBiometric()) return
36
+ init2()
36
37
setup()
37
38
}
38
39
@@ -70,22 +71,28 @@ class MainActivity : AppCompatActivity() {
70
71
71
72
override fun onAuthenticationSucceeded (result : BiometricPrompt .AuthenticationResult ) {
72
73
super .onAuthenticationSucceeded(result)
74
+ init2()
73
75
setup()
74
76
}
75
77
})
76
- prompt.authenticate(BiometricPrompt .PromptInfo .Builder ()
77
- .setTitle(getString(R .string.biometric_title))
78
- .setConfirmationRequired(false )
79
- .setAllowedAuthenticators(authenticators)
80
- .build())
78
+ try {
79
+ prompt.authenticate(BiometricPrompt .PromptInfo .Builder ()
80
+ .setTitle(getString(R .string.authentication))
81
+ .setConfirmationRequired(false )
82
+ .setAllowedAuthenticators(authenticators)
83
+ .build())
84
+ } catch (exc: Exception ) { return false }
81
85
return true
82
86
}
83
87
84
- private fun init () {
88
+ private fun init1 () {
85
89
prefs = Preferences (this )
86
90
prefsdb = Preferences (this , encrypted = false )
87
91
prefs.copyTo(prefsdb)
88
92
admin = DeviceAdminManager (this )
93
+ }
94
+
95
+ private fun init2 () {
89
96
if (Build .VERSION .SDK_INT < Build .VERSION_CODES .S ||
90
97
! admin.canUsbDataSignalingBeDisabled() ||
91
98
! admin.isDeviceOwner())
Original file line number Diff line number Diff line change 8
8
tools : context =" .MainActivity" >
9
9
10
10
<ScrollView
11
- android : id =" @+id/scrollView"
12
11
android : layout_width =" match_parent"
13
12
android : layout_height =" wrap_content"
14
13
app : layout_constraintEnd_toEndOf =" parent"
Original file line number Diff line number Diff line change 5
5
<string name =" usb_data_signaling_description" >When disabled, USB data connections (except from charging functions) are prohibited.</string >
6
6
<string name =" usb_data_signaling_change_failed_popup" >Failed to change USB data signaling policy</string >
7
7
<string name =" max_failed_password_attempts_description" >Maximum number of failed password attempts.</string >
8
- <string name =" biometric_title " >Biometric login </string >
8
+ <string name =" authentication " >Authentication </string >
9
9
</resources >
Original file line number Diff line number Diff line change
1
+ biometric
You can’t perform that action at this time.
0 commit comments