mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-19 20:29:02 +00:00
Fixed accessibility focus on Daily checkbox and todo checkbox. Also fixed transaction ran on button click. (#1570)
This commit is contained in:
parent
e39c0bf643
commit
f07477de8e
4 changed files with 9 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue