Commit Graph

536 Commits

Author SHA1 Message Date
Alinson Xavier
aee5d975db Replace star by ring 2016-04-24 06:42:14 -04:00
Alinson Xavier
e2bb4371d3 Fix UI test for settings screen 2016-04-24 06:37:15 -04:00
Alinson Xavier
fcee8552f0 Switch to compat ActionMode; fix tests 2016-04-24 05:55:42 -04:00
Alinson Xavier
a4864e4612 Extract some strings; move definitions to correct file
Fixes #81
2016-04-21 06:05:38 -04:00
Alinson Xavier
8ddf4574e3 Fix failed view tests 2016-04-20 09:27:44 -04:00
Alinson Xavier
81a188f125 Customize action mode colors 2016-04-20 07:50:12 -04:00
Alinson Xavier
44402bf3a4 Fix progress bar position 2016-04-20 07:31:02 -04:00
Alinson Xavier
7f159149ef Minor layout changes on the spinners 2016-04-19 22:50:41 -04:00
Alinson Xavier
0c1e8d5131 Switch to AppCompatDialogFragment and compat Fragment 2016-04-19 22:10:25 -04:00
Alinson Xavier
a4e3f7e037 Fix spinners on EditHabitDialog 2016-04-19 21:53:14 -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
33b5215b00 Use SwitchPreference instead of checkmarks 2016-04-18 06:21:04 -04:00
Alinson Xavier
5d808dd2e8 Update padding on widgets 2016-04-16 09:20:33 -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
775d028629 Add missing icon 2016-04-16 08:51:56 -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
5bd0c842f5 Minor typo 2016-04-15 18:10:34 -04:00
Alinson Xavier
97711087f9 Fix invisible text on widgets 2016-04-15 17:49:10 -04:00
Alinson Xavier
2fe2d8834a Fix spinner theme on pre-lollipop 2016-04-15 17:41:16 -04:00
Alinson Xavier
93a893d660 Replace icons with Material icons
Fixes #9
2016-04-15 16:34:22 -04:00
Alinson Xavier
feff9a18e6 Fix action icons 2016-04-15 16:13:52 -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
f5f3ec9f88 Update tests for custom views 2016-04-12 23:42:02 -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
abc92e390a Update list of translators 2016-04-10 12:59:42 -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
436ae7e574 Update selected_box colors for dark theme 2016-04-10 08:17:36 -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
13d34945b4 Merge branch 'poeditor' into hotfix/1.4.1 2016-04-09 05:10:41 -04:00
Alinson Xavier
756578508e Bump version to 1.4.1 2016-04-09 05:10:20 -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
de8018af7d Delete unused resources 2016-04-08 15:53:47 -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
779c0040bd Add some options back to settings screen 2016-04-05 13:32:46 -04:00
Alinson Xavier
7bba6a887f Increase width of chart labels as needed 2016-04-05 08:11:37 -04:00
Alinson Xavier
52a1d19793 Allow labels to expand 2016-04-05 06:50:42 -04:00
Alinson Xavier
35e346e7ea Remove empty strings from translations 2016-04-05 06:42:32 -04:00
Alinson Xavier
3102158bdb Merge branch 'poeditor' into release/1.4.0 2016-04-05 06:34:00 -04:00
Alinson Xavier
7afa65a53c Add Czech translation 2016-04-05 06:33:48 -04:00
Alinson Xavier
2e5533d480 Update translations (POEditor) 2016-04-05 06:28:35 -04:00
Alinson Xavier
b29c7e695a Save failed views to SD card root if writable 2016-04-05 05:47:09 -04:00
Alinson Xavier
eeff14a2ca Bump version to 1.4.0 2016-04-04 19:31:35 -04:00
Alinson Xavier
af3b18f518 Fix incorrect date format for some languages 2016-04-04 19:05:24 -04:00
Alinson Xavier
3811f4b339 Rename tests for compatibility with AWS Device Farm 2016-04-04 11:15:17 -04:00
Alinson Xavier
50a8aece6f Move expensive call to background thread 2016-04-04 08:18:59 -04:00
Alinson Xavier
2f66cfc417 Minor string change 2016-04-04 08:07:10 -04:00
Alinson Xavier
132ce36a57 More detailed logs in case getFilesDir fails 2016-04-04 07:58:07 -04:00
Alinson Xavier
147f010d1b Update website URL 2016-04-04 07:57:28 -04:00
Alinson Xavier
afc91ed89a Merge branch 'feature/performance' into dev 2016-04-04 07:04:22 -04:00
Alinson Xavier
684c37d167 Update list of translators 2016-04-04 07:02:41 -04:00
Alinson Xavier
8b296ce2ae Make setup method public 2016-04-04 06:56:02 -04:00
Alinson Xavier
e2e9e2e27a Remove debug code 2016-04-04 06:54:12 -04:00
Alinson Xavier
8b2f31c44a Update widget preview 2016-04-04 06:53:55 -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
7f009e2365 Create indexes in database 2016-04-03 05:10:13 -04:00
Alinson Xavier
4cec7d7367 Implement methods to generate huge test database 2016-04-03 05:08:57 -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
5763d76167 Make setup method public 2016-04-01 16:08:51 -04:00
Alinson Xavier
86b66b1388 Add tests for DeleteHabitsCommand 2016-03-31 08:02:44 -04:00
Alinson Xavier
5e0422848b Add tests for EditHabitCommand 2016-03-31 07:54:00 -04:00
Alinson Xavier
a67a3297b1 Add tests for ToggleRepetitionCommand 2016-03-31 07:34:20 -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
21157eaa19 Increase similarity threshold 2016-03-31 07:09:47 -04:00
Alinson Xavier
0ea2c8e5c8 HistoryView: test tap at invalid locations 2016-03-31 06:31:13 -04:00
Alinson Xavier
826491bc90 Test custom views with transparent background 2016-03-31 06:21:01 -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
abafffcff1 Increase similarity threshold 2016-03-30 12:25:45 -04:00
Alinson Xavier
d45a4445cc Minor changes to HabitHistoryView rendering; enable haptic feedback 2016-03-30 12:25:24 -04:00
Alinson Xavier
94f56a8869 Make all unit tests inherit from BaseTest 2016-03-30 08:49:42 -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
e0b637e84d Merge branch 'feature/unit-test-views' into dev 2016-03-28 21:14:42 -04:00
Alinson Xavier
e14d73cf32 Add translator 2016-03-28 21:00:07 -04:00
Alinson Xavier
16b9584868 Minor changes to strings.xml 2016-03-28 20:20:18 -04:00
Alinson Xavier
c091116105 Compute padding/margins more precisely on CheckmarkView 2016-03-28 20:06:32 -04:00
Alinson Xavier
6838a0f2d3 Restore missing asset 2016-03-27 06:40:56 -04:00
Alinson Xavier
53e737c169 Allow API version-specific view tests; use relative image distance 2016-03-27 06:39:40 -04:00
Alinson Xavier
285f79ed95 Add tests for CheckmarkView 2016-03-26 20:11:17 -04:00
Alinson Xavier
4f65c8bef1 Add script to pull failed generated images from device 2016-03-26 19:47:53 -04:00
Alinson Xavier
51b7cfc8fa Remove useless asset 2016-03-26 19:47:04 -04:00
Alinson Xavier
55ed2585ea Additional tests for RingView 2016-03-26 19:46:33 -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
dfe41176bc Reintroduce vibrate permission 2016-03-25 17:01:41 -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
5115379fdd Merge branch 'feature/import-data' into dev 2016-03-25 09:21:47 -04:00
Alinson Xavier
d176ea91fb Use custom matcher for settings activity 2016-03-25 09:04:07 -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