Fixed accessibility focus on Daily checkbox and todo checkbox. Also fixed transaction ran on button click. (#1570)

This commit is contained in:
Parminder Singh 2021-07-06 17:48:36 +05:30 committed by GitHub
parent e39c0bf643
commit f07477de8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View file

@ -26,7 +26,9 @@
android:id="@+id/checkBoxHolder"
android:layout_width="@dimen/button_width"
android:layout_height="match_parent"
tools:background="@color/red_10">
tools:background="@color/red_10"
android:focusable="true"
android:contentDescription="@string/daily_item_checkbox">
<View
android:id="@+id/checkBoxBackground"
android:layout_width="24dp"

View file

@ -27,7 +27,9 @@
android:id="@+id/checkBoxHolder"
android:layout_width="@dimen/button_width"
android:layout_height="match_parent"
tools:background="@color/red_10">
tools:background="@color/red_10"
android:focusable="true"
android:contentDescription="@string/todo_item_checkbox">
<View
android:id="@+id/checkBoxBackground"
android:layout_width="24dp"

View file

@ -1166,4 +1166,6 @@
<string name="locked_equipment_shop_dialog">You must purchase the previous items in this sequence to unlock</string>
<string name="caused_damage">You caused damage to the boss</string>
<string name="avatar_style">Style</string>
<string name="daily_item_checkbox">Daily Checkbox</string>
<string name="todo_item_checkbox">Todo Checkbox</string>
</resources>

View file

@ -167,7 +167,7 @@ class TaskRepositoryImpl(localRepository: TaskLocalRepository, apiClient: ApiCli
}
}
val stats = bgUser.stats
val stats = it.copyFromRealm(bgUser.stats)
stats?.hp = res.hp
stats?.exp = res.exp
stats?.mp = res.mp