Skip to content

Commit 9e434fc

Browse files
committed
Fix: Setup bugs - double checkmark, Accept button not completing setup
1 parent fbe5c0a commit 9e434fc

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

app/src/main/java/com/appcontrolx/ui/setup/DisclaimerFragment.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class DisclaimerFragment : Fragment() {
2626

2727
binding.btnAccept.setOnClickListener {
2828
if (binding.checkAgree.isChecked) {
29-
// Go to permissions page
30-
(activity as? SetupActivity)?.nextStep()
29+
// Complete setup (final step)
30+
(activity as? SetupActivity)?.completeSetup()
3131
}
3232
}
3333
}

app/src/main/res/layout/fragment_permissions.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@
156156
app:cardCornerRadius="12dp"
157157
app:strokeWidth="1dp"
158158
app:strokeColor="@color/outline"
159-
app:checkedIcon="@drawable/ic_check_circle"
160-
app:checkedIconTint="?attr/colorPrimary">
159+
app:checkedIcon="@null">
161160

162161
<LinearLayout
163162
android:layout_width="match_parent"
@@ -231,8 +230,7 @@
231230
app:cardCornerRadius="12dp"
232231
app:strokeWidth="1dp"
233232
app:strokeColor="@color/outline"
234-
app:checkedIcon="@drawable/ic_check_circle"
235-
app:checkedIconTint="?attr/colorPrimary">
233+
app:checkedIcon="@null">
236234

237235
<LinearLayout
238236
android:layout_width="match_parent"
@@ -306,8 +304,7 @@
306304
app:cardCornerRadius="12dp"
307305
app:strokeWidth="1dp"
308306
app:strokeColor="@color/outline"
309-
app:checkedIcon="@drawable/ic_check_circle"
310-
app:checkedIconTint="?attr/colorPrimary">
307+
app:checkedIcon="@null">
311308

312309
<LinearLayout
313310
android:layout_width="match_parent"

0 commit comments

Comments
 (0)