Commit Graph

552 Commits

Author SHA1 Message Date
Tom Hennen
20960b9bff Merge pull request #1323 from mfietz/upgrade-libs
Gradle: external version variables, lombok AST
2015-11-01 16:15:44 -05:00
Martin Fietz
0049fbec27 External version variables, lombok AST 2015-11-01 17:51:50 +01:00
Tom Hennen
3c87b514a3 Merge pull request #1322 from mfietz/upgrade-libs
Upgrade libraries
2015-11-01 11:33:00 -05:00
Tom Hennen
f735638a4f Merge pull request #1316 from mfietz/strict_mode
Strict mode for debugging
2015-11-01 11:17:57 -05:00
Martin Fietz
b1b1df3cdc Upgrade libraries 2015-11-01 17:13:24 +01:00
Martin Fietz
93fc95eb7b Don't die 2015-11-01 16:55:42 +01:00
Tom Hennen
41f0adb101 Merge pull request #1320 from mfietz/user_preferences
Refactoring: User preferences
2015-11-01 10:41:00 -05:00
Tom Hennen
777dcfd8c5 Merge pull request #1318 from mfietz/preference_activity
PreferenceActivity: weak reference
2015-11-01 10:40:28 -05:00
Martin Fietz
7152b0e0eb Unused parameter 2015-11-01 14:38:58 +01:00
Martin Fietz
3596463bf3 Only hold weak reference 2015-11-01 14:28:50 +01:00
Martin Fietz
b75a390507 Strict mode for debugging 2015-11-01 13:57:16 +01:00
Tom Hennen
3cc5eee0ff Have a different option for bluetooth reconnect.
Vibrate when starting playback due to bluetooth reconnect.

fixes AntennaPod/AntennaPod#1305
2015-10-31 11:33:10 -04:00
Tom Hennen
42e5a8de66 Merge pull request #1295 from mounirlamouri/patch-1
Fix "Could not find com.afollestad:material-dialogs:0.7.8.0" error.
2015-10-29 17:41:48 -04:00
Tom Hennen
277cfa01d0 Merge pull request #1294 from mfietz/issue/1293-NPE-MainActivity-onContextItemSelected
Prevent NPE in MainActivity.onContextItemSelected()
2015-10-29 17:41:19 -04:00
Mounir Lamouri
a004fbb5a0 Fix "Could not find com.afollestad:material-dialogs:0.7.8.0" error.
material-dialogs:0.7.8.0 can't be downloaded but it seems that things work fine with 0.7.8.1. It seems simple enough to upgrade the dependency here.
2015-10-25 23:57:12 +00:00
Martin Fietz
9dcf3de723 Just check everything for null before you do stuff with it 2015-10-25 18:47:51 +01:00
Martin Fietz
89e67f0919 Replace loader
Replace with lambda
Replace Loader with Observable
onResume and onPause instead of onStart and onStop; minor changes
Makes more sense to load data once at start
Reorder functions to mirror lifecycle
2015-10-25 14:00:50 +01:00
Martin Fietz
ec7bc19351 Update to latest audio player version 2015-10-17 18:46:39 +02:00
Tom Hennen
79f0eca912 prevent NPE when 'chapters' is null 2015-10-17 12:04:59 -04:00
Tom Hennen
bcef62d11e Merge pull request #1260 from stevomit/rewind-after-pause
Rewind after pause feature
2015-10-17 11:50:14 -04:00
Stefan Mitrik
87d27a7c0b Rewind after pause - used less conservative rewind times 2015-10-17 12:00:46 +02:00
Tom Hennen
0e2b056d4e Merge pull request #1258 from TomHennen/fix_playback_tests
Updated playback tests to make them more reliable
2015-10-15 17:09:42 -04:00
Stefan Mitrik
f7dabd9335 Rewind after pause feature
The playback is rewinded X seconds after the pause and resume. The
rewind duration depends on time that elapsed between the pause and
resume.
2015-10-15 00:52:55 +02:00
Tom Hennen
87b42c23dc Merge pull request #1254 from TomHennen/fix1252
Cleanup when we show the mark as played/unplayed menus.
2015-10-12 17:29:25 -04:00
Tom Hennen
33a3f4ac04 added idle sync to make tests more reliable 2015-10-10 07:17:05 -04:00
Tom Hennen
113f8c55c3 updated sonic tests, still have an intermittent error 2015-10-10 05:38:18 -04:00
Tom Hennen
83e56a334c Updated PlaybackTest to deal with some spurious bugs.
Problem was that the PlaybackController wasn't having currentMedia get
updated when playback initially starts. Working around it here by getting
the real playback controller that's being used in the app.

Still need to update PlaybackSonicTest.
2015-10-09 04:46:20 -04:00
Tom Hennen
326e3b7b52 Cleanup when we show the mark as played/unplayed menus. 2015-10-08 03:14:27 -04:00
Tom Hennen
23f134bb39 Change language related to skipping episodes.
Also now keep the episode media if we're going to keep it in the queue.
2015-10-08 02:53:34 -04:00
Tom Hennen
07bcdb167b add test for different number of days of cleanup 2015-10-02 16:54:33 -04:00
Tom Hennen
6f3d748aa0 episode cleanup preferences tests 2015-10-02 16:50:08 -04:00
Tom Hennen
f3e56a2385 fix PreferencesTest to actually check the condition was met. 2015-10-02 16:26:42 -04:00
Tom Hennen
af5579a30e fixed use of preferences 2015-10-02 10:25:01 -04:00
Tom Hennen
fda662f697 simplified tests 2015-10-02 10:07:09 -04:00
Tom Hennen
c9c38a0f5a Implemented tests for the various cleanup algorithms.
We also don't delete items that are in Favorites.
2015-10-02 09:38:11 -04:00
Tom Hennen
e61c7efde4 ap algorithm cleanup tests 2015-10-02 08:31:46 -04:00
Tom Hennen
0beeeb4351 resolved bug in how we were choosing the default cleanup parameter 2015-10-02 07:56:34 -04:00
Tom Hennen
60e341cf78 resolved compile time issues. refactored some code 2015-09-30 06:33:35 -04:00
Tom Hennen
f5801c2181 Implement cleanup that only removes epiosdes older than a certain number of days
Also set the stage for the queue cleanup algorithm.
2015-09-29 20:29:53 -04:00
Tom Hennen
057900bc1b getting preferences setup for different cleanup method 2015-09-29 17:29:26 -04:00
Martin Fietz
d03c54d6fb Variable Speed Dialog: Install Prestissimo or enable Sonic 2015-09-27 15:12:12 +02:00
Martin Fietz
e74a549b1b Upgrade Gradle and AntennaPod-AudioPlayer 2015-09-27 15:12:12 +02:00
Tom Hennen
8cd6446913 create the favorites table on upgrade 2015-09-26 15:56:10 -04:00
Tom Hennen
a6ddb1319c Merge pull request #1214 from TomHennen/update_playback_notification
Update playback notification
2015-09-26 15:20:08 -04:00
Tom Hennen
c097b672d6 fix bug that caused ExternalPlayerFragment to not always be shown 2015-09-26 11:11:48 -04:00
Tom Hennen
fc4d9225bf Merge pull request #1218 from mfietz/issue/1217-onError-handling
Error handling for getMediaSize observable
2015-09-26 08:59:39 -04:00
Tom Hennen
664944d119 alway follow queue by default 2015-09-25 18:10:49 -04:00
Tom Hennen
f27d14f4b9 Merge pull request #1213 from TomHennen/favorites
Favorites
2015-09-25 17:33:08 -04:00
Martin Fietz
b6a0c1aa1a Check for null 2015-09-23 23:19:37 +02:00
Martin Fietz
68e7695f39 Error handling for getMediaSize observable 2015-09-23 19:15:33 +02:00
Tom Hennen
5b6fce427b if it was skipped we shouldn't remove it, but otherwise we should 2015-09-21 06:48:28 -04:00
Tom Hennen
f0904fbe49 added preference to not remove items from queue when skipping 2015-09-20 20:10:51 -04:00
Tom Hennen
721bfc064a now removing items from favorites by swiping 2015-09-20 16:31:44 -04:00
Tom Hennen
05c64eb063 undoing changes to 'activity' which weren't needed 2015-09-20 16:19:06 -04:00
Tom Hennen
dfbd878afe Added 'tags' to FeedItem and properly showing/not showing menu items for favorites. 2015-09-20 16:11:57 -04:00
Tom Hennen
ed679b8a17 refactored after merging in changes from #1212 2015-09-20 14:54:54 -04:00
Tom Hennen
1993f779e8 basic favorite functionality 2015-09-20 14:21:15 -04:00
Martin Fietz
ff9cc13b6a Fix about link handling 2015-09-19 21:01:54 +02:00
Martin Fietz
1b232992f9 Sonic tests 2015-09-19 20:53:58 +02:00
Martin Fietz
5f77c4de50 Replace some of the most annoying AsyncTasks with RxJava 2015-09-19 20:39:14 +02:00
Martin Fietz
b3094fa5f0 Add external library to about 2015-09-19 20:14:42 +02:00
Martin Fietz
7b23dfeb50 Move audio player classes to external library 2015-09-19 14:20:01 +02:00
Martin Fietz
17c87d9bfc Lockscreen background defaults to true, more detailed description, NPE fixed 2015-09-16 01:44:45 +02:00
Martin Fietz
8efb73a39e Set lockscreen background, set media session and playback state 2015-09-16 01:38:39 +02:00
Tom Hennen
8d4bdd5ba1 Merge pull request #1193 from mfietz/cropped_dialog_buttons
Licenses: Material Dialogs, bug fix, nicer layout
2015-09-15 17:16:11 -04:00
Tom Hennen
b8759628ef Fix playback tests that don't always work.
* user the view and not the text
* clear preferences earlier in setup
2015-09-15 17:09:09 -04:00
Martin Fietz
8270e435b5 Fix license view 2015-09-10 12:33:22 +02:00
Martin Fietz
54fb6aa314 Add license for Material Dialogs 2015-09-10 09:35:32 +02:00
Martin Fietz
75dfc89a44 Refactor database access 2015-09-10 00:58:30 +02:00
Tom Hennen
2555df3bd2 Merge pull request #1190 from mfietz/memory_management
Glide memory management
2015-09-09 18:37:27 -04:00
Tom Hennen
cde0dfc290 Merge pull request #1179 from TomHennen/export_updates
Add option to share OPML file when exporting it
2015-09-09 18:35:58 -04:00
Tom Hennen
159f1f6dcc changes the action title to Send... 2015-09-09 17:23:53 -04:00
Tom Hennen
6c6d7e4e31 Merge pull request #1189 from mfietz/cropped_dialog_buttons
Fix cropped dialog buttons
2015-09-09 17:17:32 -04:00
Martin Fietz
cbacd4863a Let Glide trim memory when system asks AP to do so 2015-09-09 23:17:23 +02:00
Martin Fietz
e323f067f3 Fix cropped buttons of update interval/time of day dialog 2015-09-09 19:55:23 +02:00
Tom Hennen
d3d59c5c06 update re-use old string, update tests 2015-09-07 21:29:24 -04:00
Tom Hennen
b7ad88d70f tabs fill all space and are remembered 2015-09-07 21:25:19 -04:00
Tom Hennen
6ae33e1c5d normalized how we were using tab layouts between different fragments. 2015-09-07 21:25:19 -04:00
Tom Hennen
d25d93964b move Gpodnet and Downloads to use TabLayout also 2015-09-07 21:25:18 -04:00
Tom Hennen
64336d5d26 fixed dark theme 2015-09-07 21:25:18 -04:00
Tom Hennen
0bbe1fcad7 fixing tests 2015-09-07 21:25:18 -04:00
Tom Hennen
661fcc6fd4 fix messed up ItemFragment toolbar 2015-09-07 21:25:18 -04:00
Tom Hennen
c63423c558 Collapsed All and New Episodes in to 'Episodes' using tabs
This is to make room for 'Favorites' in the future.

I kept the counter for 'New Episodes' and am displaying it next to 'Episodes'.
2015-09-07 21:25:18 -04:00
Tom Hennen
9fe8750ecb changed method of tab use 2015-09-07 21:25:18 -04:00
Tom Hennen
1d38db32d5 episodes fragment with tabs. layout of item info is messed up for some reason. 2015-09-07 21:25:18 -04:00
Tom Hennen
00b1badb3f use lambda 2015-09-07 20:43:53 -04:00
Tom Hennen
de879e1dd9 make share just an option of the old dialog 2015-09-07 20:42:15 -04:00
Tom Hennen
0617115a6f export opml via intent 2015-09-07 15:20:48 -04:00
Tom Hennen
05cb09e4fa Set episode back to 'New' when undo remove from new episodes.
markItemRead -> markItemPlayed and now requires the desired state instead of boolean.

fixes AntennaPod/AntennaPod#1173
2015-09-06 10:51:49 -04:00
Martin Fietz
14977413d5 Fix popup colors 2015-09-05 19:38:09 +02:00
Martin Fietz
1fe0e96ed0 Set max slider playback speed to 2.50 or current speed if it is higher than that 2015-09-05 19:38:09 +02:00
Martin Fietz
1dd87efebd Scale animation when playback speed has been changed via popup 2015-09-05 19:38:09 +02:00
Martin Fietz
7de666f511 Use CardView to add a shadow 2015-09-05 19:38:09 +02:00
Martin Fietz
4bfa2cc2f1 Show dialog where user chooses new playback speed 2015-09-05 19:38:08 +02:00
Martin Fietz
152e497cfa Fix gears color 2015-09-05 18:08:26 +02:00
Tom Hennen
e236903602 Merge pull request #1166 from TomHennen/api22
Update to API 22
2015-09-05 12:01:13 -04:00
Tom Hennen
af29d0992e Merge pull request #1161 from mfietz/issue/1159-empty-url
Check that URL is not null (or empty) when retrieving file size
2015-09-05 11:48:48 -04:00
Tom Hennen
0fea81a823 Merge pull request #1157 from mfietz/issue/1154-about-dark
Dark About view
2015-09-05 11:35:32 -04:00
Tom Hennen
d5e31f5350 Merge pull request #1072 from mfietz/feature/shake_sleeptimer
Sleep Timer: Shake to reset, lower volume, vibrate, remember preferences
2015-09-05 11:18:20 -04:00
Martin Fietz
5b90ba9133 Sleep Timer dialog remembers settings 2015-09-05 00:50:44 +02:00