Commit graph

506 commits

Author SHA1 Message Date
ThePlasmak
14a3516b30
Fixed links in translatable strings, added a space and fixed trailing spaces (#1322)
* Fixed habitica_com to habitica.com

* Fix _com to .com

* Added a space.

* Removed more trailing spaces
2020-05-07 15:19:18 +02:00
Anita W
bb4c02590a
Add apostrophe to "To-do's" so talkback reads it out properly (#1320)
- Without the apostrophe, Talkback pronounces it as "Todoss" which
sounds weird.

- With the apostrophe, it is pronounced as "Todoos", which sounds
normal.
2020-05-04 17:28:03 +02:00
Anita W
89f40defb8
Talkback improvements for New Habit and New Daily screens (#1317)
* Include state in content description of positive/negative habit buttons

- Now instead of announcing just 'Positive' or 'Negative' when these
buttons are focused with Talkback on, it also announces their current
state (e.g. 'Positive On').

- Also, when the state is changed, it now sends an accessibility event
so the new state is announced immediately (as advised at
https://developer.android.com/guide/topics/ui/accessibility/custom-views#send-events).

* Make headings in Task Form be read out as headings by Talkback

* Include state in content description of task difficulty buttons

- Now instead of announcing just 'Trivial', 'Medium' etc when these
buttons are focused with Talkback on, it also announces their current
state (e.g. 'Medium, Selected' / 'Trivial, Not Selected').

- Also, when a difficulty button is clicked, it now sends an
accessibility event for the button corresponding to that difficulty
level, so the new state is announced immediately.

  - Note that since buttons are recreated every time one is clicked,
    we can't simply send the event from the button's OnClickListener.
    Instead we have to record which button is selected and send the
    event for that button once it has been recreated.

* Include state in content description of reset streak buttons

- Now instead of announcing just 'Daily', 'Weekly' etc when these
  buttons are focused with Talkback on, it also announces their current
  state (e.g. 'Daily, Selected' / 'Weekly, Not Selected').

- Also, when a reset streak button is clicked, it now sends an
  accessibility event with the new content description, so the new state
  is announced immediately.

  - Note that since buttons are recreated every time one is clicked,
    we can't simply send the event from the button's OnClickListener.
    Instead we have to record which button is selected and send the
    event for that button once it has been recreated.

* Add labelFor attributes for repeats_every_spinner/edittext

- This adds more context for the drop-down menu and the edit-text
content descriptions read out by Talkback when editing how often dailies
repeat. This is advised by the accessibility principle described at
https://developer.android.com/guide/topics/ui/accessibility/principles#content-pairs

- For example instead of reading out 'Drop-down menu, Weekly' it now
reads out 'Drop-down menu, Weekly, for Repeats'. And instead of reading
out '1, Edit box' it now reads out '1, Edit box for Weeks'.

* Improve content descriptions of weekday buttons on New Daily screen

- Now instead of 'Capital M', 'Capital T', etc. Talkback reads out
'Monday, Selected', 'Tuesday, Not selected', etc.

- It also reads out the new status whenever a day is selected or
deselected.

* Mini refactor: reduce duplication in configureMonthlyRepeatViews

* Improve content description of weekly repeats buttons

- Now the content descriptions of the weekly repeats buttons in the
New Daily screen include whether they are Selected / Not selected.

- Also an accessibility event is sent when they are toggled, so the
content description is read out again with the updated status.

* Improve content descriptions of ReminderItemFormView

- Previously, the '+' button was focusable, even though it didn't do
anything, and Talkback read out 'Unlabelled button', regardless of
whether it was a '+' button or a 'x' button.

- Now, we only make it focusable when it becomes a delete button, and
Talkback reads out 'Delete Reminder, Button for 6.16pm' (or whatever
the time of the reminder it relates to is - this is achieved by setting
the android:labelFor property on the reminder TextView).

* Improve content descriptions of ChecklistItemFormView

- Previously, the '+' button was focusable, even though it didn't do
anything, and Talkback read out 'Unlabelled button', regardless of
whether it was a '+' button or a 'x' button.

- Now, we only make it focusable when it becomes a delete button,
and Talkback reads out 'Delete Checklist Entry, Button for Checklist
 Text' (or whatever the checklist text is - this is achieved by setting
 the android:labelFor property on the checklist EditText).
2020-05-04 17:27:29 +02:00
Anita W
cd9361e5c8
Talkback improvements for main stats panel (#1308)
* Rename unlock_level_short string to level_unabbreviated

* Refactor: extract methods for setting user level within avatar

* Set content description of 'Lvl ..' text view to 'Level ..'

* Set content description of value bar to null
2020-05-04 17:21:18 +02:00
Phillip Thelen
b56c16654b desgin tweaks 2020-04-15 15:06:13 +02:00
Phillip Thelen
7e76c78fc7 improve bulk gem purchasing handling 2020-04-09 14:25:54 +02:00
Phillip Thelen
4d6435b007 Support screen tweaks 2020-04-03 15:36:41 +02:00
Phillip Thelen
dadc3885fa Implement more avatar customization options. Fixes #1137 2020-03-20 17:37:29 +01:00
Phillip Thelen
3d9a4eb950 Fix minor display issues 2020-03-19 16:50:55 +01:00
Phillip Thelen
55bac855db Add back ability to message from overview screen. Fixes #1075 2020-03-19 13:12:49 +01:00
Phillip Thelen
ff13231a1b change about screen 2020-03-18 15:34:36 +01:00
Phillip Thelen
edc2a83a08 Implement improved help screen 2020-03-18 15:34:23 +01:00
Leland Wu
771e73714d
Rename appropriate sections in Pets & Mounts screen (#1267)
* Add getTranslatedType in pet and mount classes

* fix translation method

* Create kotlin extension of animal class

* rewrite if else as kotlin when

* move animal extension to extensions folder

* write unit tests, add some dependencies in build.gradle
2020-03-12 15:24:36 +01:00
Phillip Thelen
826873e4b8 Fix issue with quest completion dialog 2020-02-21 16:56:44 +01:00
Phillip Thelen
975dfd7023 Better indication for when user is not participating in quest 2020-02-12 17:21:43 +01:00
Phillip Thelen
ffa8f8e1ce Improve shop locked item display 2020-02-06 18:06:44 +01:00
Phillip Thelen
25b9b85044 update account deletion text 2020-02-05 09:16:21 +01:00
Phillip Thelen
df4417d0a3 Fix sharing 2020-02-04 15:34:48 +01:00
Phillip Thelen
fea83fd387 Improve quest shop display? Maybe? 2020-02-04 12:39:36 +01:00
Phillip Thelen
5b3b25a0d3 Update skill design 2020-01-24 17:01:55 +01:00
Phillip Thelen
f8fe4d49e6 Add settings for email notifications 2020-01-24 15:05:52 +01:00
Phillip Thelen
a5f5e98aad Attempt workaround for apple sign in 2020-01-21 14:54:17 +01:00
Phillip Thelen
48a99e1412 improve empty task view 2020-01-15 18:32:17 +01:00
Phillip Thelen
c47d2c5c96 improve background handling 2020-01-10 13:17:58 +01:00
Phillip Thelen
c7d61c18e4 fix incorrect description 2020-01-06 17:38:06 +01:00
Phillip Thelen
7ddef238cb Improve info about g1g1 2020-01-06 17:38:06 +01:00
Phillip Thelen
049cc3587c Add promo to menu 2019-11-30 20:02:13 +01:00
Phillip Thelen
b22a4b14ad Tweaks 2019-11-26 17:37:01 +01:00
Phillip Thelen
636f51b4e4 Finalize subscription page tweaks 2019-11-26 10:58:14 +01:00
Phillip Thelen
81a1a23cf7 Improve button text during registration. Fixes #1249 2019-11-25 13:18:19 +01:00
Phillip Thelen
6918dd3e12 Sub page improvements 2019-11-25 13:03:27 +01:00
Phillip Thelen
ba24ce0167 Redesign subscription page 2019-11-19 18:07:45 +01:00
Phillip Thelen
d718bf4b6d Make party leader messages mor eclear 2019-11-12 15:50:42 +01:00
Phillip Thelen
5fba3fa86e Make party invite screen clearer 2019-11-07 12:55:49 +01:00
Phillip Thelen
1054a575db Display in overview if equipment is two handed 2019-11-05 19:40:34 +01:00
Phillip Thelen
6cbc811151 List authentication methods in preferences. Fixes #916 2019-11-04 17:09:55 +01:00
Phillip Thelen
b5e727146d Implement viewing multiple party invitations. Fixes #1020 2019-11-04 16:21:59 +01:00
Phillip Thelen
3da46b9c99 Fix ago strings 2019-11-01 14:35:48 +01:00
Phillip Thelen
4ab7efe177 Add push notification settings
# Conflicts:
#	Habitica/res/values/strings.xml
2019-11-01 12:20:26 +01:00
Phillip Thelen
99c958406c Improve login handling 2019-10-31 13:46:19 +01:00
Phillip Thelen
d4c3d7aff6 Add option to copy userID from profile. Fixes #1144 2019-10-30 18:38:01 +01:00
Phillip Thelen
683d3e520b Add option to gift gems from balance 2019-10-30 14:43:44 +01:00
Phillip Thelen
81a4ff50f8 Tweak remaining sub time display 2019-10-30 11:11:16 +01:00
Phillip Thelen
f1c83abef3 Test adding remaining subscription time in menu 2019-10-29 12:50:20 +01:00
Phillip Thelen
e904d37db6 Tweak purchase page designs 2019-10-16 09:59:28 +02:00
Phillip Thelen
62b9a157a5 improve gifting flows 2019-10-11 13:18:38 +02:00
Phillip Thelen
edc62302a2 Implement gifting gems 2019-10-07 19:13:29 +02:00
Phillip Thelen
3a4b0e3925 Allow users to purchase gems right from insufficient-gems screen 2019-10-07 19:13:29 +02:00
Phillip Thelen
5682e5aa69 update design for subscription promo 2019-10-07 19:13:29 +02:00
Phillip Thelen
bbd5684950 Add promo for subscribing to gem purchase page 2019-10-07 19:13:29 +02:00