Commit Graph

177 Commits

Author SHA1 Message Date
Quentin Hibon
64966d3c86 Bumps org.jlleitschuh.gradle.ktlint from 10.0.0 to 10.1.0 2021-06-09 12:06:35 +02:00
88f8581acc Make CheckmarkWidget resizable; remove fixed aspect ratio 2021-05-23 11:49:49 -05:00
b33dd2a994 Ensure RingView.diameter is never zero
In rare cases, it seems either that `onDraw` is called before `onMeasure` or
that `onMeasure` is called with a view that has zero height/width. This causes
`reallocateCache` to produce an IllegalArgumentException. This patch ensures
that diameter is never zero.

Fixes #904
2021-05-23 11:21:49 -05:00
38d2606d6d Fix IllegalStateException in androidx.customview.view
Fixes #906
2021-05-22 12:53:03 -05:00
c973f93424 Fix small issues with font size 2021-05-15 20:22:42 -05:00
fcadbe7c38 Handle numerical habits with target value of zero
Fixes #903
2021-05-15 20:11:20 -05:00
dd1999681f Small adjustments to numeric checkmark widget 2021-05-09 16:24:59 -05:00
2728c311d8 Large tests: Make compatible with API 27 2021-04-25 19:45:02 -05:00
98ce802f87 Remove useless statement 2021-04-22 23:11:41 -05:00
853b4275be Parse translators from Crowdin report; group by language
Fixes #669
2021-04-22 23:06:35 -05:00
df4355c072 Switch to androidx.preference.PreferenceManger 2021-04-18 22:17:25 -05:00
33c3feb11a Make FrequencyPickerDialog translatable 2021-04-18 10:34:35 -05:00
8d87988871 Add arrows to sort menu 2021-04-18 09:02:40 -05:00
b0c5552cfa Remove unused imports 2021-04-17 22:01:17 -05:00
616ab4861d CheckmarkWidget: Always show circle
Fixes #790
2021-04-17 21:56:50 -05:00
fcff067b2e DatePicker: Implement dark theme
Fixes #858
2021-04-17 21:52:00 -05:00
da018fc64d Temporarily remove device sync 2021-04-17 19:53:24 -05:00
071b6bd090 HeaderView: Fix padding 2021-03-18 22:23:58 -05:00
8b2285787c Fix numerical spinner in BarCardView 2021-03-18 22:09:54 -05:00
c83cd5fd10 Render YES_AUTO as outlined checkmark 2021-03-18 22:04:23 -05:00
381c67d020 Allow unitless numerical habits 2021-03-18 22:04:23 -05:00
e745b959ca Fix multiple selection 2021-03-18 22:04:23 -05:00
Quentin Hibon
9c81f22a4d Start snooze activity after later is selected from lock screen (#840)
Fixes #787.
2021-03-15 08:34:42 -05:00
51947576aa HistoryEditorDialog: Use system theme 2021-03-14 09:17:26 -05:00
7b68938e14 ButtonView: Adjust size of question marks 2021-03-13 18:45:18 -06:00
ee462715de Use different colors for YES_AUTO and NO; increase contrast slightly 2021-03-13 18:44:04 -06:00
3ece80f3da Remove unused class and resource 2021-03-13 16:35:27 -06:00
Quentin Hibon
fc26d7967f Make validation errors readable (#837)
Fixes #757.
2021-03-10 20:37:43 -06:00
Quentin Hibon
50ebff3edf Adapt message when all habits are completed
Closes #700.
2021-02-13 08:14:40 -06:00
Quentin Hibon
b1da72dc3a Bump org.jlleitschuh.gradle.ktlint from 9.4.1 to 10.0.0 (#786) 2021-02-12 07:07:39 -06:00
Quentin Hibon
8790c0e87b Delete snooze_interval preference 2021-02-09 10:14:25 +01:00
Quentin Hibon
bc461e1239 Restore notification sound customization setting
For devices older than Android Oreo, notification sound customization has been
disabled since aadfac68cd. We enable it again.

Fixes #766.
2021-02-09 09:22:53 +01:00
Quentin Hibon
2dcce080d3 Set dataOffset when attaching a new CardView
Fixes #713.
2021-01-30 18:36:07 -06:00
Quentin Hibon
6c3b4135c2 Implement test reproducing #713 2021-01-30 18:36:07 -06:00
48c1adb3bb HabitCardListAdapter: Return copy of list of selected items
Previously, HabitCardListAdapter returned a pointer to the list, instead of a
copy. By the time other parts of the application were reading the list, its
contents had already changed. This prevented the user from deleting or
archiving habits.
2021-01-30 10:28:42 -06:00
a6c9ea22e6 Merge branch 'midnight_delay_option_2' into dev 2021-01-27 20:06:44 -06:00
Quentin Hibon
2d943b5942 Fix signature of onSharedPreferenceChanged
The 'key' argument is null when called from android.app.SharedPreferencesImpl.
2021-01-27 12:09:23 +01:00
Quentin Hibon
dd4e0ee6f9 Increase targetSdk to 30 2021-01-27 11:00:50 +01:00
Quentin Hibon
bb8d4abb9e Implement the midnight delay option
Closes #694.
2021-01-27 09:52:28 +01:00
Quentin Hibon
df30c7c764 Disable transparency for stacked widgets
Closes #687.
2021-01-26 20:06:12 -06:00
Quentin Hibon
f1c88797a3 Clean up code after conversions 2021-01-25 12:18:05 +01:00
Quentin Hibon
22dcd9f7ae Convert AndroidTaskRunner 2021-01-25 12:18:05 +01:00
Quentin Hibon
7d361b2203 Convert Task and TaskRunner 2021-01-25 12:18:05 +01:00
Quentin Hibon
2bfbff9b14 Convert ExportDBTask and ImportDataTask 2021-01-25 12:18:05 +01:00
Quentin Hibon
6992b5186e Clean up code after conversions 2021-01-25 12:18:05 +01:00
Quentin Hibon
98f9693cff Convert views 2021-01-25 12:18:05 +01:00
Quentin Hibon
457c58a660 Convert RepositoryTest 2021-01-25 12:18:05 +01:00
Quentin Hibon
39cec6f11d Convert Preferences 2021-01-25 12:18:05 +01:00
Quentin Hibon
8f5f72d9fd Convert ReminderScheduler 2021-01-25 10:56:59 +01:00
Quentin Hibon
b21eb3f118 Finish uhabits-core ui conversion 2021-01-25 10:56:59 +01:00