957 Commits

Author SHA1 Message Date
Aleś Bułojčyk
6b14cff33a Missed constant usage 2015-09-27 00:42:23 +03:00
Adrian Ulrich
83c037d1de Save scrolling position in LRU cache 2015-09-23 09:33:47 +02:00
Adrian Ulrich
1d9cc03105 Allow the MediaAdapter to be used without an activity 2015-09-23 09:29:48 +02:00
Adrian Ulrich
435bab2000 bugfix: clear stale icon if queue is fluhed 2015-09-20 18:13:41 +02:00
Adrian Ulrich
fd3b4c152a Fix a crash bug due to mCurrentSong == null
This happens if:
* Notification is set to always
* The user empties the queue

This causes activeSongReplaced() to be called, so setCurrentSong(0); will be executed while mCurrentSong is already null.
Updating the notification in this state crashes with a null pointer.

However: The 'dangling' notification will have wrong information in this state - but it is still better than displaying an empty one as it just looks butt ugly.
We whould probably, at some point, design an 'empty notification view'
2015-09-16 19:48:54 +02:00
Adrian Ulrich
954734de05 unplugging the headset is a permanent audio loss 2015-09-16 19:15:05 +02:00
Adrian Ulrich
3cfb1633fb improve handling of AudioManager.AUDIOFOCUS_LOSS_TRANSIENT 2015-09-14 20:24:07 +02:00
Adrian Ulrich
5fe5308d6c Shrink queue during getSong() call and call change().
This ensures that the ShowQueueAdapter gets notified about the change
2015-09-12 11:56:20 +02:00
Adrian Ulrich
8c482214ec Fix superfluent call to setCurrentSong();
This is now handled by the broadcast issued from setCurrentQueuePosition()
2015-09-12 11:40:59 +02:00
Adrian Ulrich
c0d1cdcb6c setCurrentQueuePosition should broadcast song changes 2015-09-12 11:24:53 +02:00
Adrian Ulrich
7db6ced8ea add enqueue_as_next to playlist item actions 2015-09-07 19:02:00 +02:00
Xiao Bao Clark
eca9d4a00a Merge branch 'master' into feature/duck-on-notification 2015-08-29 09:01:30 +10:00
Xiao Bao Clark
f73bd0fdde Applied ducking state to prepared media play. Renamed *OnVolume to *OnDucking for consistency. Added is-playing check before initiating ducking. Replaced switch on String to if else for source compatability. 2015-08-29 08:55:13 +10:00
Xiao Bao Clark
ea9302aa0a Added ducking volume as a preference 2015-08-23 09:38:09 +10:00
Adrian Ulrich
0dc422a37b Merge pull request #195 from xbao/bug/swipe-up-toggle-controls-broken
Added performAction in PlaybackActivity.
2015-08-22 10:16:48 +02:00
Xiao Bao Clark
2c7a9d53cd Added support for ducking (#45) 2015-08-22 12:28:11 +10:00
Xiao Bao Clark
e7075936fd Added performAction in PlaybackActivity. Made performAction in FullPlaybackActivity override it.
This fixes the bug #44 where swipe up/down was not toggling controls when that preference was set
2015-08-22 10:17:18 +10:00
Xiao Bao Clark
d413384f90 Added TargetApi to setNextMediaPlayer per #185. This fixes a lint error 2015-08-22 09:34:06 +10:00
Xiao Bao Clark
522a58b068 Suppressed lint for call to setSelectionFromTop as it is in error. Added explanatory comments to that effect 2015-08-22 09:33:08 +10:00
Xiao Bao Clark
c9036ce45c Fixed two JavaDoc params references 2015-08-22 08:31:26 +10:00
Xiao Bao Clark
45879c571a Merge branch 'master' into feature/static_analysis_fixes 2015-08-22 07:55:43 +10:00
Xiao Bao Clark
b9ad4c8a80 Reverted changes to DSLV to keep consistency with upstream DSLV source 2015-08-22 07:48:43 +10:00
Adrian Ulrich
d910266b24 use 300 as max value for shake threshold 2015-08-19 20:18:27 +02:00
Adrian Ulrich
de4b15f4ab work around for lockscreen bugs 2015-08-19 19:46:25 +02:00
Adrian Ulrich
06f98f1c55 generate fallback cover for any style excluding OVERLAPPING_BOX 2015-08-19 19:04:03 +02:00
Adrian Ulrich
84ca87d6c1 fade-in created bitmaps 2015-08-16 11:04:50 +02:00
Adrian Ulrich
27143fda86 add showqueue option to library view 2015-08-16 11:00:25 +02:00
Adrian Ulrich
15e13b1c42 LibraryActivity: Fetch cover in background thread 2015-08-15 20:19:08 +02:00
Adrian Ulrich
cf5fbb2dba only return data for items we have data 2015-08-14 19:40:05 +02:00
Adrian Ulrich
c44395757e fix dbh leak in playcounts helper 2015-08-14 19:02:22 +02:00
Adrian Ulrich
5bf72d1c57 prefix all message constants with MSG_ 2015-08-14 17:52:38 +02:00
Adrian Ulrich
07ccab3616 update playcounts in background thread 2015-08-14 17:46:26 +02:00
Adrian Ulrich
fb2608277a never return coverart for unindexed songs (eg: missing album key!) 2015-08-14 10:05:18 +02:00
Adrian Ulrich
a6df47be4d move covermodes into cover cache 2015-08-12 17:48:04 +02:00
Adrian Ulrich
0bf219e3ba move all cover caches into CoverCache class 2015-08-12 17:31:13 +02:00
Adrian Ulrich
f407c89a34 always update mCover visibility 2015-08-11 14:32:34 +02:00
Adrian Ulrich
bd77ac3b5d simplify use of draggable row 2015-08-11 13:41:37 +02:00
Adrian Ulrich
ea88a0ac17 enable flingRemove in playlist editor 2015-08-10 21:02:11 +02:00
Adrian Ulrich
0f1c7a6da9 change DSLV usage 2015-08-10 20:54:19 +02:00
Adrian Ulrich
1be79d7ca9 Switch to old manual playlist code as this is still buggy on 5.1!
Android sometimes creates messed up play_orders in audio_playlists_map:

 sqlite> select audio_id,play_order from audio_playlists_map where playlist_id=829 limit 4;
 audio_id|play_order
 474|13
 479|14
 480|14 <---
 475|7

Such a database (created by android) confuses moveItem() - our own implementation is aware
of this bug and re-generates the play_order
2015-08-10 20:41:48 +02:00
Adrian Ulrich
de955a96a7 implement cover view in playlist dialog 2015-08-10 18:25:56 +02:00
Adrian Ulrich
2038504792 run save-as-playlist in background 2015-08-10 18:12:08 +02:00
Adrian Ulrich
ef99fd5cf6 avoid stuck toast messages by running them in UI thread 2015-08-10 17:50:53 +02:00
Adrian Ulrich
2603aa8f08 get rid of old layout hack 2015-08-10 16:47:56 +02:00
Adrian Ulrich
1784b43785 draw fast if user is not scrolling 2015-08-10 16:14:45 +02:00
Adrian Ulrich
ea04fa9fb8 cover art support in queueview 2015-08-09 20:01:28 +02:00
Adrian Ulrich
ab4b3aebcc update handler if looper changed (on rotation) 2015-08-09 13:42:20 +02:00
Adrian Ulrich
22ab085a2c FilebrowserStartAdapter shall also use the generic view holder 2015-08-09 13:16:30 +02:00
Adrian Ulrich
d200d45f2d change visibility of divider to avoid layout issues 2015-08-09 13:13:38 +02:00
Adrian Ulrich
9bc275d199 Cache covers by artist id 2015-08-09 12:55:49 +02:00