Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shunchaki
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shohboz Qoraboev
shunchaki
Commits
66e9f332
Commit
66e9f332
authored
Dec 16, 2021
by
shohboz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX]
MUS-207
Feature, fixed biometric bugs enable false
parent
b0fbe4c3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
10 deletions
+55
-10
BiometricFragment.kt
...com/mobiuz/app/dev/ui/auth/biometric/BiometricFragment.kt
+5
-1
biometric_disable.xml
app/src/main/res/drawable/biometric_disable.xml
+5
-0
biometric_enable.xml
app/src/main/res/drawable/biometric_enable.xml
+16
-0
btn_biometric_bgn.xml
app/src/main/res/drawable/btn_biometric_bgn.xml
+12
-0
fragment_biometric.xml
app/src/main/res/layout/fragment_biometric.xml
+4
-8
nav_graph_settings.xml
app/src/main/res/navigation/nav_graph_settings.xml
+13
-1
No files found.
app/src/main/java/com/mobiuz/app/dev/ui/auth/biometric/BiometricFragment.kt
View file @
66e9f332
...
@@ -12,6 +12,7 @@ import com.mobiuz.app.dev.model.SharedPref
...
@@ -12,6 +12,7 @@ import com.mobiuz.app.dev.model.SharedPref
import
com.mobiuz.app.dev.ui.base.BaseFragment
import
com.mobiuz.app.dev.ui.base.BaseFragment
import
com.mobiuz.app.dev.ui.global.ButtonClick
import
com.mobiuz.app.dev.ui.global.ButtonClick
import
com.mobiuz.app.dev.ui.global.CONSTANTS
import
com.mobiuz.app.dev.ui.global.CONSTANTS
import
com.mobiuz.app.dev.utils.extensions.getColorCompat
import
com.mobiuz.app.dev.utils.extensions.showMessage
import
com.mobiuz.app.dev.utils.extensions.showMessage
import
dagger.hilt.android.AndroidEntryPoint
import
dagger.hilt.android.AndroidEntryPoint
import
javax.inject.Inject
import
javax.inject.Inject
...
@@ -59,8 +60,11 @@ class BiometricFragment : BaseFragment(R.layout.fragment_biometric) {
...
@@ -59,8 +60,11 @@ class BiometricFragment : BaseFragment(R.layout.fragment_biometric) {
})
})
btnSwitch
.
setOnCheckedChangeListener
{
_
,
isChecked
->
btnSwitch
.
setOnCheckedChangeListener
{
_
,
isChecked
->
val
message
=
if
(
isChecked
)
"Biometric enabled"
else
"Biometric disabled"
val
message
=
if
(
isChecked
)
getString
(
R
.
string
.
biometric_enabled
)
else
getString
(
R
.
string
.
biometric_disabled
)
showToastMessage
(
message
)
showToastMessage
(
message
)
btnNext
.
setTextColor
(
if
(
isChecked
)
getColorCompat
(
R
.
color
.
primary100
)
else
getColorCompat
(
R
.
color
.
primary70
))
btnNext
.
isEnabled
=
isChecked
pref
.
isUseFingerPrint
=
isChecked
pref
.
isUseFingerPrint
=
isChecked
}
}
}
}
...
...
app/src/main/res/drawable/biometric_disable.xml
0 → 100644
View file @
66e9f332
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<corners
android:radius=
"6dp"
/>
<solid
android:color=
"@color/grey20"
/>
</shape>
\ No newline at end of file
app/src/main/res/drawable/biometric_enable.xml
0 → 100644
View file @
66e9f332
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:state_pressed=
"true"
>
<shape>
<corners
android:radius=
"6dp"
/>
<solid
android:color=
"@color/grey20"
/>
</shape>
</item>
<item
android:state_pressed=
"false"
>
<shape>
<corners
android:radius=
"6dp"
/>
<solid
android:color=
"@color/white100"
/>
</shape>
</item>
</selector>
\ No newline at end of file
app/src/main/res/drawable/btn_biometric_bgn.xml
0 → 100644
View file @
66e9f332
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"@drawable/biometric_enable"
android:state_enabled=
"true"
/>
<item
android:drawable=
"@drawable/biometric_disable"
android:state_enabled=
"false"
/>
</selector>
\ No newline at end of file
app/src/main/res/layout/fragment_biometric.xml
View file @
66e9f332
...
@@ -113,20 +113,16 @@
...
@@ -113,20 +113,16 @@
android:layout_weight=
"0.7"
android:layout_weight=
"0.7"
android:gravity=
"end|bottom"
>
android:gravity=
"end|bottom"
>
<
com.google.android.material.button.Material
Button
<Button
android:id=
"@+id/btn_next"
android:id=
"@+id/btn_next"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"end"
android:layout_gravity=
"end"
style=
"@style/BiometricButtonPrimary"
android:layout_marginEnd=
"@dimen/_12sdp"
android:layout_marginEnd=
"@dimen/_12sdp"
android:paddingHorizontal=
"@dimen/_
2
2sdp"
android:paddingHorizontal=
"@dimen/_
3
2sdp"
android:paddingVertical=
"@dimen/_10sdp"
android:paddingVertical=
"@dimen/_10sdp"
android:textStyle=
"bold"
android:text=
"@string/continuoue"
/>
android:textSize=
"16sp"
android:text=
"@string/continuoue"
android:textAllCaps=
"false"
android:textColor=
"@color/primary100"
app:backgroundTint=
"@color/white"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/navigation/nav_graph_settings.xml
View file @
66e9f332
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
tools:layout=
"@layout/fragment_profile"
/>
tools:layout=
"@layout/fragment_profile"
/>
<fragment
<fragment
android:id=
"@+id/currentPasswordFragment"
android:id=
"@+id/currentPasswordFragment"
android:name=
"com.mobiuz.app.dev.ui.settings.safety.password.C
urrent
PasswordFragment"
android:name=
"com.mobiuz.app.dev.ui.settings.safety.password.C
hange
PasswordFragment"
android:label=
"CurrentPasswordFragment"
/>
android:label=
"CurrentPasswordFragment"
/>
<fragment
<fragment
android:id=
"@+id/newPasswordFragment"
android:id=
"@+id/newPasswordFragment"
...
@@ -37,4 +37,16 @@
...
@@ -37,4 +37,16 @@
android:id=
"@+id/confirmPasswordFragment"
android:id=
"@+id/confirmPasswordFragment"
android:name=
"com.mobiuz.app.dev.ui.settings.safety.password.ConfirmPasswordFragment"
android:name=
"com.mobiuz.app.dev.ui.settings.safety.password.ConfirmPasswordFragment"
android:label=
"ConfirmPasswordFragment"
/>
android:label=
"ConfirmPasswordFragment"
/>
<fragment
android:id=
"@+id/oldPinFragment"
android:name=
"com.mobiuz.app.dev.ui.settings.safety.pin.OldPinFragment"
android:label=
"OldPinFragment"
/>
<fragment
android:id=
"@+id/newPinFragment"
android:name=
"com.mobiuz.app.dev.ui.settings.safety.pin.NewPinFragment"
android:label=
"NewPinFragment"
/>
<fragment
android:id=
"@+id/confirmNewPinFragment"
android:name=
"com.mobiuz.app.dev.ui.settings.safety.pin.ConfirmNewPinFragment"
android:label=
"ConfirmNewPinFragment"
/>
</navigation>
</navigation>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment