This commit rebases the develop branch into the FirstDayOfTheWeeK
branch syncing it with the current state of the develop branch.
Issue: #546, Pull Request: #620
This commit replaces the case labels of the switch with labels that
are more descriptive. The purpose of this change is to make the class
more readable by adding actual variable names to the cases instead of
hardcoded strings.
Issue: #546, Pull Request: #620
This commits adds a default for the first day of the week setting.
This is better than arbitrarily choosing a first day of the week.
In addition, it reorders the days in the dailies screen with the
first day in the list being the day the user chose in the setting.
Issue: #546, Pull Request: #620
This commit refactors the order of days in the dailies in accordance
to the First Day of the Week setting. In addition, it sets the default
value for the setting using the user's locale as opposed to an
arbitrary value.
This commit adds the first day of the week calendar logic to the
RemindersManager & the TaskFormActivity classes. The date pickers
present themselves on two occassions: reminders & due dates. Both
were covered.
This commit corrects an issue where the language was not persisting
if the app was killed or closed.
Ref: http://stackoverflow.com/questions/22402491/
android-change-and-set-default-locale-within-the-app
Issue: #574, Pull Request: #613
This commit adds a content API reload call to the list of calls that
happen when the language is changed. This call is necessary so certain
parts of the app, like the stable, have the correct language when
the language is switched.
The profile's mounts tamed count wrongly ignores mounts with null value.
Also, null/nonexistent pet/mount collections have counts showing as "#".
Both counts should instead be shown as 0 for such null collections.
This fix matches the web app, which does the following:
1. Mounts tamed count = sum mount entries with any value (true, null)
2. Nonexistent pet/mount collections have counts showing as 0
Fix#617, #618
This commit fixes the logic of language discovery at registration.
As opposed to using the LanguageHelper class, the new logic looks
at the resources themselves to determine whether the app can support
the language of the phone.
This commit simplifies the LanguageHelper class switch block. The
original switch had 18 or so initial cases, most of which could be
reduced to two general cases. The two general cases have been
impletemented as the default.
This commit adds logic to the SetupActivity for a new user. The
purpose of this logic is for the device language to be sent
to the web app automatically during registration.