Commit Graph

442 Commits

Author SHA1 Message Date
Alinson Xavier
add08d6054 Fix reordering 2016-06-15 10:12:33 -04:00
Alinson Xavier
5d8a348aaf Hide empty message at startup 2016-06-15 09:54:39 -04:00
Alinson Xavier
ec0e8ac24c Cancel selection with back button correctly 2016-06-15 09:48:01 -04:00
Alinson Xavier
fee3137a6f Move ripple to correct place 2016-06-15 05:39:13 -04:00
Alinson Xavier
abe6b10964 Restore dynamic checkmark button count 2016-06-15 05:32:20 -04:00
Alinson Xavier
6484b96e5a Reformat and reorganize some code 2016-06-15 05:04:12 -04:00
Alinson Xavier
3d3d5b9b96 Fix top navigation on Settings and About screens 2016-06-15 05:02:13 -04:00
Alinson Xavier
ca9d56e59e Fix toolbars 2016-06-12 18:22:04 -04:00
Alinson Xavier
9a6dafaa79 Improve documentation 2016-06-12 09:23:55 -04:00
Alinson Xavier
9a44774284 Add instrumented unit tests for SQLite lists 2016-06-12 07:55:47 -04:00
Alinson Xavier
2b23b36e36 Move remaining model tests to JVM; simplify SQLite implementation 2016-06-10 18:55:32 -04:00
Alinson Xavier
78d4f86cab Separate ActiveAndroid from models 2016-06-10 13:30:33 -04:00
Alinson Xavier
18e8390aed Merge branch 'dev' into feature/refactoring-mvc 2016-06-05 04:37:46 -04:00
Alinson Xavier
cabcd5b1bf CSV export: allow spaces on filename and fix tests 2016-06-04 22:06:01 -04:00
Alinson Xavier
7e8a2a0c1c Major refactoring of ListHabitsActivity 2016-06-04 18:10:33 -04:00
Alinson Xavier
59d42fe62f Show empty ringtone name in case of RuntimeException
Fixes #116
2016-05-29 11:47:36 -04:00
Alinson Xavier
3ffa079e24 Remove code duplication 2016-05-28 13:03:37 -04:00
Alinson Xavier
bb950d61fc Move sendFile and sendEmail to Screen 2016-05-28 12:21:38 -04:00
Alinson Xavier
0ad0e5cf36 Fix time out on tests 2016-05-28 12:20:02 -04:00
Alinson Xavier
3b56d6d596 Add missing file 2016-05-28 10:16:21 -04:00
Alinson Xavier
8d57273987 Refactor EditHabitDialog 2016-05-28 10:15:55 -04:00
Alinson Xavier
b98853ab26 Introduce ButterKnife 2016-05-27 23:02:04 -04:00
Alinson Xavier
071cad73d4 Make models observable, refactor ShowHabitFragment 2016-05-27 22:26:33 -04:00
Alinson Xavier
16dc9c25d2 Fix bug that caused checkmarks not to update sometimes 2016-05-27 14:06:55 -04:00
Alinson Xavier
6b23858136 Create HabitListView and move most code from Fragment to it 2016-05-27 12:19:29 -04:00
Alinson Xavier
e0198e9926 Reorganize files 2016-05-27 10:20:16 -04:00
Alinson Xavier
6445bf62bc Refactor MainActivity and Preferences 2016-05-26 16:35:47 -04:00
Alinson Xavier
83ef8564e1 Reorganize file tree according to feature 2016-05-26 10:38:59 -04:00
Alinson Xavier
88e8aad0d8 CSV export: sanitize habit name before creating folder
Fix #113
2016-05-25 10:09:39 -04:00
Alinson Xavier
ff9d50b32a Remove debug code 2016-05-22 12:29:37 -04:00
Alinson Xavier
38024d71ce Allow checkmark widget to be resized to very small sizes 2016-05-22 12:24:28 -04:00
Alinson Xavier
9ec1afc208 Remove associated preference after deleting widget 2016-05-22 10:28:58 -04:00
Alinson Xavier
e0888a9b4d Remove fields from BaseWidgetProvider
This caused a bug when multiple widgets had different sizes. The size of the
last widget would be used in all of them.
2016-05-22 10:27:27 -04:00
Alinson Xavier
8aade2f145 Fix crash when habits with reminders have short names
Fixes #109
2016-05-22 09:33:30 -04:00
Alinson Xavier
f4c963e2c1 Update Japanese translation 2016-05-19 11:58:20 -04:00
Alinson Xavier
e9a4a047c1 Trim habit names on log files 2016-05-19 11:50:38 -04:00
Alinson Xavier
7ce1988d2e Fix NullPointerException on RingView 2016-05-19 11:46:02 -04:00
Alinson Xavier
53911fa410 Send bug report on the body of email, instead of attachment 2016-05-19 11:39:17 -04:00
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