Commit Graph

454 Commits

Author SHA1 Message Date
Alinson Xavier
23466523df Remove minTextSize
This was causing problems, since some launchers completely
ignore minimum widget sizes. When widgets were too small,
the text started to overflow.
2016-05-15 08:21:46 -04:00
Alinson Xavier
ee9da29422 Update introduction 2016-05-13 06:42:22 -04:00
Alinson Xavier
ae7b0408b2 Update list of complete translations 2016-05-13 06:29:19 -04:00
Alinson Xavier
acb8e820fd Use AlertDialog from Support Library 2016-05-11 07:38:43 -04:00
Alinson Xavier
eae0d66f51 Dismiss notification automatically when user adds a checkmark 2016-05-11 07:30:45 -04:00
Alinson Xavier
e933cbbc43 Fix up navigation when opening the app from widget
Fixes #94
2016-05-11 06:44:11 -04:00
Alinson Xavier
5e873a3659 Make frequency text more natural 2016-05-08 08:46:45 -04:00
Alinson Xavier
19b484c368 Fix crash on settings screen 2016-05-08 08:23:50 -04:00
Alinson Xavier
834ae92d87 Reschedule alarms on boot
Fixes #93
2016-05-08 08:04:24 -04:00
Alinson Xavier
0eb12812d4 Allow user to reverse the order of days 2016-05-04 06:30:06 -04:00
Alinson Xavier
a1a636c718 Make ScoreView use custom interval also on widgets 2016-05-01 10:06:02 -04:00
Alinson Xavier
b2811b9797 Allow user to select reminder sound
Closes #63
2016-05-01 09:43:28 -04:00
Alinson Xavier
4db7a6e89c Show larger ripple when toggling check marks
Closes #78
2016-05-01 08:21:36 -04:00
Alinson Xavier
677a643e5b Allow theme to be fixed during tests 2016-04-30 19:13:36 -04:00
Alinson Xavier
dbca3238f6 Small changes to ScoreView 2016-04-30 17:14:44 -04:00
Alinson Xavier
ae5dd700f3 Fix widget colors and size 2016-04-30 16:42:27 -04:00
Alinson Xavier
f172c69eed Update tests 2016-04-30 12:30:20 -04:00
Alinson Xavier
d77c78249c Tweak layout to work with older phones with smaller screen 2016-04-29 11:48:06 -04:00
Alinson Xavier
d9d48ff984 Minor UI changes 2016-04-29 07:55:45 -04:00
Alinson Xavier
f0534fefbc Show more information on score overview 2016-04-29 07:35:38 -04:00
Alinson Xavier
30ef75bb45 Alternative design for header bar 2016-04-29 06:40:02 -04:00
Alinson Xavier
4aea527e07 Fix some crashes on widgets 2016-04-27 06:01:10 -04:00
Alinson Xavier
75dec88411 Update widget previews 2016-04-26 20:08:59 -04:00
Alinson Xavier
2dc4fcbc46 Fix transparency on widgets 2016-04-25 22:22:37 -04:00
Alinson Xavier
7977d5247c Tweak transparency and colors 2016-04-25 21:03:23 -04:00
Alinson Xavier
8b18e32a16 Create color palette for widgets 2016-04-24 06:42:14 -04:00
Alinson Xavier
dbcad9a5f4 Use dark theme for widget colors 2016-04-24 06:42:14 -04:00
Alinson Xavier
3bba75ff50 Add ripple effect to check mark widget 2016-04-24 06:42:14 -04:00
Alinson Xavier
c6e76f4cfd Show multiple lines on check mark widget 2016-04-24 06:42:14 -04:00
Alinson Xavier
980db1d171 Add ring to check mark widget 2016-04-24 06:42:14 -04:00
Alinson Xavier
aee5d975db Replace star by ring 2016-04-24 06:42:14 -04:00
Alinson Xavier
fcee8552f0 Switch to compat ActionMode; fix tests 2016-04-24 05:55:42 -04:00
Alinson Xavier
0c1e8d5131 Switch to AppCompatDialogFragment and compat Fragment 2016-04-19 22:10:25 -04:00
Alinson Xavier
b354a0765b Use grey toolbar on pre-Lollipop 2016-04-19 21:02:05 -04:00
Alinson Xavier
bbd959dfda Fix borders on HistoryEditorDialog 2016-04-19 09:01:36 -04:00
Alinson Xavier
d05d404c55 Show toolbar shadow on pre-Lollipop 2016-04-19 08:27:45 -04:00
Alinson Xavier
8938b0c9a6 Improve settings screen 2016-04-19 07:50:05 -04:00
Alinson Xavier
bd6fcd066c Fix dialog borders 2016-04-19 05:36:34 -04:00
Alinson Xavier
6a5f2abb76 Switch to AppCompatActivity 2016-04-18 07:59:41 -04:00
Alinson Xavier
767ec1b6de Minor layout improvements for HabitScoreView 2016-04-16 09:16:39 -04:00
Alinson Xavier
9e5f3d8f58 Fix blinking when updating widgets 2016-04-16 09:03:45 -04:00
Alinson Xavier
4bfb839370 Draw separate widgets for landscape and portrait modes
Fixes #76
2016-04-16 08:51:20 -04:00
Alinson Xavier
8f64b696d8 Remove debug messages 2016-04-16 08:10:12 -04:00
Alinson Xavier
c4bf31e778 Adjust text size and position on HistoryView and StreakView 2016-04-16 08:06:01 -04:00
Alinson Xavier
c757ce6548 Enforce min text size on HabitScoreView 2016-04-16 07:36:39 -04:00
Alinson Xavier
b601a643dd Merge branch 'feature/dark-theme' into dev 2016-04-15 18:29:39 -04:00
Alinson Xavier
90e513e778 Remove warning when palette cannot be found 2016-04-15 18:26:01 -04:00
Alinson Xavier
728c9557f0 Migrate DB to new color format 2016-04-15 18:25:30 -04:00
Alinson Xavier
97711087f9 Fix invisible text on widgets 2016-04-15 17:49:10 -04:00
Alinson Xavier
b42565b770 Backport dark theme to pre-lollipop devices 2016-04-13 11:54:24 -04:00
Alinson Xavier
3de702ced2 Fix colors in About screen 2016-04-13 10:44:11 -04:00
Alinson Xavier
42f7f4042d Add option for AMOLED night mode 2016-04-13 10:38:20 -04:00
Alinson Xavier
2115a590f2 Add fade transition when switching themes 2016-04-13 09:53:37 -04:00
Alinson Xavier
6d5a8f5753 Merge branch 'sciamano-day-of-week' into dev 2016-04-12 23:29:10 -04:00
Alinson Xavier
06fc04092b Code cleanup 2016-04-12 23:21:00 -04:00
Denis
24c02605d1 Select first day of week according to the current locale 2016-04-12 23:11:32 -04:00
Alinson Xavier
11fcb67624 Improve custom views' colors 2016-04-11 18:11:18 -04:00
Alinson Xavier
52c07660b1 Implement menu item to switch between themes 2016-04-10 10:41:52 -04:00
Alinson Xavier
35f778c376 Do not use habit color as primary color on dark themes 2016-04-10 08:32:01 -04:00
Alinson Xavier
5c683a77c2 Fix ripple on ListHabitsFragment 2016-04-10 08:13:05 -04:00
Alinson Xavier
dd1f6c9efc Change habit.color palette according to current theme 2016-04-09 20:01:35 -04:00
Alinson Xavier
04e8432522 Widgets: show error message instead of crashing 2016-04-09 05:27:39 -04:00
Alinson Xavier
38fc7650b9 Update translations 2016-04-09 05:08:02 -04:00
Alinson Xavier
cf06ec0a4b Fix chart colors 2016-04-09 04:58:26 -04:00
Alinson Xavier
f0701f7b35 First version of dark theme 2016-04-08 17:15:14 -04:00
Alinson Xavier
ac885e1503 Refactor ListHabitsFragment layouts and styles 2016-04-08 15:50:51 -04:00
Alinson Xavier
c08702341a Update Spanish translations 2016-04-07 17:23:01 -04:00
Alinson Xavier
abb8c09bc9 Update widgets after executing command 2016-04-07 17:15:33 -04:00
Alinson Xavier
87255ceb25 RingView: invalidate after updating percentage and color
Fixes #79
2016-04-07 17:02:02 -04:00
Alinson Xavier
aedbfded0f Show POEditor link if language is not fully translated 2016-04-06 06:33:52 -04:00
Alinson Xavier
7bba6a887f Increase width of chart labels as needed 2016-04-05 08:11:37 -04:00
Alinson Xavier
b29c7e695a Save failed views to SD card root if writable 2016-04-05 05:47:09 -04:00
Alinson Xavier
af3b18f518 Fix incorrect date format for some languages 2016-04-04 19:05:24 -04:00
Alinson Xavier
50a8aece6f Move expensive call to background thread 2016-04-04 08:18:59 -04:00
Alinson Xavier
132ce36a57 More detailed logs in case getFilesDir fails 2016-04-04 07:58:07 -04:00
Alinson Xavier
e2e9e2e27a Remove debug code 2016-04-04 06:54:12 -04:00
Alinson Xavier
83db9fe2f2 Hide progress bar on startup 2016-04-04 06:46:16 -04:00
Alinson Xavier
9891139b5a Fix tests on ICS 2016-04-04 06:43:42 -04:00
Alinson Xavier
cbc8cbfea3 Fix scores with null habit 2016-04-04 06:02:56 -04:00
Alinson Xavier
96c46b655d Minor refactoring 2016-04-04 05:43:07 -04:00
Alinson Xavier
0de52d4fa3 BaseTask: move register/unregister to onPre/PostExecute 2016-04-04 05:42:27 -04:00
Alinson Xavier
c51b1fd399 Remove progress bar; switch to BaseTask 2016-04-03 07:51:54 -04:00
Alinson Xavier
eb8dd1d450 Simplify and optimize loading time of ShowHabitFragment 2016-04-03 07:46:08 -04:00
Alinson Xavier
357646152f Use postInvalidate instead of invalidate 2016-04-03 07:27:37 -04:00
Alinson Xavier
ae5be202b2 Add convenience methods for tracing 2016-04-03 07:27:16 -04:00
Alinson Xavier
cc3e2153d0 Allow BaseTask to publish integer progress 2016-04-03 07:26:40 -04:00
Alinson Xavier
7433a2413d Refactor BaseTask interface 2016-04-03 06:45:10 -04:00
Alinson Xavier
1cd8eb6849 NumberView: do not request layout on setNumber 2016-04-03 05:11:45 -04:00
Alinson Xavier
2d2bb8b4ed Render widgets in background 2016-04-02 13:32:04 -04:00
Alinson Xavier
e476096ae1 Fix view tests 2016-04-02 11:47:28 -04:00
Alinson Xavier
e2c814a982 Fix ShowHabitFragment and HistoryEditorDialog 2016-04-02 10:48:33 -04:00
Alinson Xavier
4fcaa68baf Throw exception when slow methods are executed on the main thread 2016-04-02 10:27:45 -04:00
Alinson Xavier
02e45dbe27 Rename DialogHelper to UIHelper 2016-04-02 10:14:21 -04:00
Alinson Xavier
bf6562f854 Update views on background thread 2016-04-01 17:50:14 -04:00
Alinson Xavier
3c927e009a Improve performance of Score computation 2016-04-01 17:49:17 -04:00
Alinson Xavier
a9bcae0f2f Clean up CheckmarkView 2016-04-01 17:24:12 -04:00
Alinson Xavier
bc54f3f916 Improve performance of toggleCheckmark 2016-04-01 16:21:22 -04:00
Alinson Xavier
5e0422848b Add tests for EditHabitCommand 2016-03-31 07:54:00 -04:00
Alinson Xavier
b2f2d4ad28 Add tests for UnarchiveHabitsCommand 2016-03-31 07:24:43 -04:00
Alinson Xavier
4dc8201dcb Add tests for CreateHabitCommand 2016-03-31 07:20:20 -04:00
Alinson Xavier
f24e300b40 Implement tests for Archive and ChangeColor commands 2016-03-31 07:11:24 -04:00
Alinson Xavier
72f5ca5531 Add tests for NumberView 2016-03-31 06:03:16 -04:00
Alinson Xavier
f9da90a93a Add tests for HabitStreakView 2016-03-30 21:02:05 -04:00
Alinson Xavier
96c6a97ad0 Add tests for HabitScoreView 2016-03-30 19:46:37 -04:00
Alinson Xavier
20469789ea Add tests for HabitFrequencyView 2016-03-30 18:41:00 -04:00
Alinson Xavier
d45a4445cc Minor changes to HabitHistoryView rendering; enable haptic feedback 2016-03-30 12:25:24 -04:00
Alinson Xavier
bc331d0a4d Write tests for HabitHistoryView 2016-03-30 08:28:21 -04:00
Alinson Xavier
2ba7246e5f Refactor Tasks for better testability 2016-03-30 08:28:06 -04:00
Alinson Xavier
c091116105 Compute padding/margins more precisely on CheckmarkView 2016-03-28 20:06:32 -04:00
Alinson Xavier
285f79ed95 Add tests for CheckmarkView 2016-03-26 20:11:17 -04:00
Alinson Xavier
2c62e1578a Create base test class for custom views 2016-03-26 19:25:50 -04:00
Alinson Xavier
b4c2d2237a Draw month name on the following column.
This reverts commit f9377e17. See #55 for reason.
2016-03-26 08:57:18 -04:00
Alinson Xavier
d14fbbd130 Make streak colors consistent 2016-03-26 08:49:02 -04:00
Alinson Xavier
e2c99d745e Improve visualization of streaks
Closes #20
2016-03-26 08:27:23 -04:00
Alinson Xavier
1ef4f8d456 Use system haptic feedback instead of custom vibration; enable on short press
Closes #66
2016-03-25 14:39:57 -04:00
Alinson Xavier
6c810ee7a3 Allow user to send bug report from settings screen 2016-03-25 14:39:57 -04:00
Alinson Xavier
62df660079 Implement UI tests for import/export and help 2016-03-25 08:10:10 -04:00
Alinson Xavier
790beb185a Do not save backup when importing Loop DB 2016-03-25 08:09:33 -04:00
Alinson Xavier
59c0af17d7 Use application context to initialize ActiveAndroid 2016-03-25 07:09:41 -04:00
Alinson Xavier
28dad560a6 Write tests for CSV exporter 2016-03-25 07:09:06 -04:00
Alinson Xavier
9e410f8395 Refactor and write tests for IO tasks 2016-03-25 06:18:07 -04:00
Alinson Xavier
3c595bc79d Add null check on DatabaseHelper 2016-03-24 21:51:02 -04:00
Alinson Xavier
1120f56dd4 Write tests for CSV export 2016-03-24 21:36:41 -04:00
Alinson Xavier
90a3964f0f Close database 2016-03-24 18:39:49 -04:00
Alinson Xavier
6c05366f0f Remove illegal characters from filename 2016-03-24 18:39:32 -04:00
Alinson Xavier
dcc771abe7 Chose external dir better 2016-03-24 18:39:14 -04:00
Alinson Xavier
743431ef67 Refactor DatabaseHelper; write tests for data import 2016-03-24 06:59:41 -04:00
Alinson Xavier
d5fc1a6886 Allow user to import full database
Closes #67
2016-03-23 19:21:06 -04:00
Alinson Xavier
ad391fa791 Remove extra permissions; better organize files dir 2016-03-23 18:50:02 -04:00
Alinson Xavier
e8bbae8ef9 Allow user to export a full copy of the database 2016-03-23 18:01:25 -04:00
Alinson Xavier
c9793df7c7 Reorganize files 2016-03-23 17:20:26 -04:00
Alinson Xavier
e6b7b8b590 Export all habits as CSV from the settings menu
Closes #28
2016-03-22 22:54:02 -04:00
Alinson Xavier
2d675ed9b0 Use DB transaction to perform import 2016-03-22 22:54:02 -04:00
Alinson Xavier
1db2f69f05 Import data from HabitBull
Closes #44
2016-03-22 22:54:02 -04:00
Alinson Xavier
49a80faca3 Trap all exceptions 2016-03-22 22:54:02 -04:00
Alinson Xavier
581197be03 Import data from Tickmate and Rewire
Closes #36, closes #41
2016-03-22 22:53:16 -04:00
Alinson Xavier
dfe5c4954e Refactor CSVExporter 2016-03-21 06:25:48 -04:00
Alinson Xavier
a0582b65d5 Merge tag 'v1.3.3' into dev
Version 1.3.3
2016-03-20 17:55:16 -04:00
Alinson Xavier
f9377e1768 Draw month name on the correct column
Fixes #55
2016-03-20 17:10:57 -04:00
Alinson Xavier
ae0dad9120 Use DateHelper instead of instantiating GregorianCalendar directly
Fixes #58
2016-03-20 17:06:22 -04:00
Alinson Xavier
e7148abc2e Open statistics page when user taps on widget
Closes #19
2016-03-20 08:36:16 -04:00
Alinson Xavier
2d87076a48 Change the way score are grouped 2016-03-20 08:19:57 -04:00
Alinson Xavier
7da4ddf91b Allow user to change score view interval
Closes #10
2016-03-20 08:06:12 -04:00
Alinson Xavier
e4e8d77acc Add link to FAQ
Closes #24
2016-03-19 13:30:04 -04:00
Alinson Xavier
7945a5faf9 Set default habit frequency to daily 2016-03-19 11:58:25 -04:00
Alinson Xavier
3f7d25461d Wake up device in Doze mode 2016-03-19 10:19:28 -04:00
Alinson Xavier
c3ff1fbe03 Add quick selection for commonly used habit frequencies
Closes #25
2016-03-19 09:46:42 -04:00
Alinson Xavier
536c095f23 Merge tag 'v1.3.2' into dev
Version 1.3.2
2016-03-18 11:36:48 -04:00
Alinson Xavier
21aa658acc Fix crash when input is empty 2016-03-18 11:25:34 -04:00
Alinson Xavier
e17667d85d Fix small layout issue on RingView 2016-03-18 11:25:19 -04:00
Alinson Xavier
326cb8f73f Minor changes to javadoc and method visibility 2016-03-18 10:42:47 -04:00
Alinson Xavier
b5bc347624 Use default instead of null for reminderDays 2016-03-18 07:43:11 -04:00
Alinson Xavier
55c058ff42 Minor spelling mistakes 2016-03-18 07:24:26 -04:00
Alinson Xavier
0921f9346e Refactor and write docs for Score and ScoreList 2016-03-18 07:16:31 -04:00
Alinson Xavier
eb017bf99b Write missing tests and docs for RepetitionList 2016-03-17 06:49:11 -04:00
Alinson Xavier
79b6ef8200 Improve null check for Checkmark and CheckmarkList 2016-03-17 06:39:29 -04:00
Alinson Xavier
f5e4a88415 Implement missing tests for Habit; remove some dead code 2016-03-17 06:20:52 -04:00
Alinson Xavier
075b7812eb Refactor and write documentation for Habit 2016-03-16 07:49:40 -04:00
Alinson Xavier
3d42505fb9 Merge tag 'v1.3.1' into dev 2016-03-15 20:38:51 -04:00
Alinson Xavier
851cae3662 Show error message on widget when habit not found
Fixes #35
2016-03-15 20:25:47 -04:00
Alinson Xavier
7778c5fb21 Check for null on notifications 2016-03-15 20:17:15 -04:00
Alinson Xavier
ef847dac17 Use StaticLayout to draw RingView label
Fixes #29
2016-03-15 19:56:14 -04:00
Alinson Xavier
8102c18c67 Use long for millisecondsInOneDay
Fixes #34
2016-03-15 19:55:50 -04:00
Alinson Xavier
ffdc923268 Make labels more clear and customizable 2016-03-15 06:10:39 -04:00
Alinson Xavier
9232378d04 Refactor RingView; make text size consistent 2016-03-15 05:30:27 -04:00
Alinson Xavier
babf7d64f0 Display repetition count for last week, month, etc
Closes #21
2016-03-14 19:07:32 -04:00
Alinson Xavier
18abb2038f Check if habit is null on BaseWidgetProvider 2016-03-14 14:54:43 -04:00
Alinson Xavier
f7f4b5eeb0 Simplify code for drawing header 2016-03-14 14:35:57 -04:00
Alinson Xavier
45a7433773 Use StaticLayout to draw RingView label
Fixes #29
2016-03-14 13:34:21 -04:00
Alinson Xavier
1a18bb939d Refactor and write unit tests for RepetitionList 2016-03-14 07:39:43 -04:00
Alinson Xavier
144524e53b Refactor and write tests for checkmarks 2016-03-14 07:39:43 -04:00
Alinson Xavier
3d1c53396c Allow date to be fixed at a certain timestamp 2016-03-14 07:39:43 -04:00
Alinson Xavier
a2c2a5531a Use temporary database for tests 2016-03-14 07:39:43 -04:00
Alinson Xavier
d326be1224 Reintroduce longClick hack 2016-03-12 05:17:55 -05:00
Alinson Xavier
1d74359c06 Update widgets in background 2016-03-11 15:07:56 -05:00
Alinson Xavier
51e8c2f111 Implement basic user interface tests 2016-03-11 12:39:59 -05:00
Alinson Xavier
84d5c2aac6 Remove longClick hack 2016-03-11 12:26:56 -05:00
Alinson Xavier
2b3b423fa3 Show color button even for a single habit 2016-03-11 12:26:34 -05:00
Alinson Xavier
3b28c37c5e Rebuild order after commit 2016-03-11 12:26:13 -05:00
Alinson Xavier
34c0758308 Remove debug code 2016-03-10 05:49:34 -05:00
Alinson Xavier
85963ae061 Add frequency widget 2016-03-10 05:43:56 -05:00
Alinson Xavier
59a2f31a73 Fix timezone issues; rename class to HabitFrequencyView 2016-03-10 05:25:22 -05:00
Alinson Xavier
cea5241135 Implement weekday frequency view 2016-03-09 08:23:55 -05:00
Alinson Xavier
7784fc5c75 Add broadcast receiver to ShowHabitActivity 2016-03-08 22:13:47 -05:00
Alinson Xavier
6dd017f33e Refresh also main activity when history editor closes 2016-03-08 21:57:42 -05:00
Alinson Xavier
c8cd9f85f6 Remove hardcoded string 2016-03-08 21:50:42 -05:00
Alinson Xavier
d038bdb741 Update widgets after history editor closes 2016-03-08 21:50:10 -05:00
Alinson Xavier
f55e8d2c85 Merge branch 'feature/history-editor' into dev
Closes #14
2016-03-08 21:33:27 -05:00
Alinson Xavier
f8dc1d9eae Force rebuild of scores 2016-03-08 21:30:09 -05:00
Alinson Xavier
85393b0d40 Handle configuration changes 2016-03-08 21:22:59 -05:00
Alinson Xavier
75599ad20c Fix timezone issues 2016-03-08 20:58:29 -05:00
Alinson Xavier
c6b948cbf5 Save changes on configuration change
Fixes #16
2016-03-08 18:16:34 -05:00
Alinson Xavier
5b151805ff Make HistoryView not editable by default 2016-03-08 07:56:40 -05:00
Alinson Xavier
aa86826bdb Refresh data after closing history editor 2016-03-08 07:53:24 -05:00
Alinson Xavier
821373a340 Make history editor functional 2016-03-08 07:35:55 -05:00
Alinson Xavier
8f37e293b1 Implement dummy history editor; add edit history button 2016-03-08 06:58:34 -05:00
Alinson Xavier
2cfc809490 Update copyright notices in all files 2016-03-07 15:54:56 -05:00
Alinson Xavier
ba31dee16a Merge branch 'feature/refactoring' into dev 2016-03-07 08:39:11 -05:00
Alinson Xavier
146c743fb8 Simplify list adapter 2016-03-07 08:03:30 -05:00
Alinson Xavier
0c00e9ec2d Simplify constructor 2016-03-07 07:51:48 -05:00