2059 Commits

Author SHA1 Message Date
Adrian Ulrich
a77b0a5952 format duration in fastscroller 2018-05-06 20:56:41 +02:00
verdulo
7c727c1db9 add possibility to translate strings "OK" and "Cancel" (#773)
* Update translatable.xml

* Update permission_request.xml

* Update audiopicker.xml

* Update medialibrary_preferences.xml
2018-05-05 12:50:31 +02:00
Adrian Ulrich
5ff7f8eddb Handle destroied PlaybackService instances.
ShowQueueFragment used to keep a reference to PlaybackService - which may get stale at some point (if the service is re-created), causing the fragment to lose any functionality.

This commit gets rid of the long lived reference.
(Note that the Adapter still has a semi-long-lived reference. Thats not nice but okay as it only needs to access the SongTimeline)
2018-05-05 12:06:33 +02:00
Adrian Ulrich
d2b751e841 make refreshSongQueueList private. 2018-05-05 10:26:03 +02:00
Adrian Ulrich
008ed50fcd update translations 2018-05-03 20:14:59 +02:00
Adrian Ulrich
fcd42ae620
Fix release year in about.html
d'oh.
2018-04-29 13:45:12 +02:00
Adrian Ulrich
4dd50014b3 Restyle sort dialog, make it somewhat nicer 2018-04-24 22:11:30 +02:00
Adrian Ulrich
a1bcb87c31 Add option to sort tracks by duration 2018-04-24 21:32:38 +02:00
Adrian Ulrich
5686a9b3f1 also display artist and album in playlist view 2018-04-22 15:54:58 +02:00
Adrian Ulrich
428ae19d7c display duration in bottom right corner 2018-04-18 21:51:42 +02:00
Adrian Ulrich
383120edcc remove superfluent file.getName() call 2018-04-18 21:41:51 +02:00
Adrian Ulrich
1fb95734b5 Get rid of getTextView() and provide setText methods for DraggableRow. 2018-04-18 21:38:36 +02:00
Adrian Ulrich
89237188b0 use NAME_SORT to sort playlists 2018-04-16 16:22:02 +02:00
Adrian Ulrich
cb96508d97 update DB to 20180416
This adds name_sort to our playlist code
2018-04-16 16:17:29 +02:00
Adrian Ulrich
5367d74692 also show duration in track list 2018-04-16 15:07:04 +02:00
Adrian Ulrich
f517fcc467 move getFormattedDuration into MediaUtils so we can use it without a song object. 2018-04-16 14:50:36 +02:00
Toby Hsieh
b847279578 Show song durations in queue (by adding a TextView) (#761)
* Show song durations in queue (by adding a TextView)

This partially addresses https://github.com/vanilla-music/vanilla/issues/647

* Make duration TextView gone by default

* Show song durations in playlist
2018-04-16 13:42:44 +02:00
Adrian Ulrich
d2990af08f target 1.0.60 2018-03-15 21:04:55 +01:00
Adrian Ulrich
d61a24f6fe add breton translation 2018-03-15 20:59:25 +01:00
Adrian Ulrich
8584299c76 always announce PLAY|PAUSE to headset.
Doing this only when it makes 'sense' seems to cause issues with some BT devices.
2018-03-15 20:49:25 +01:00
Adrian Ulrich
e1fd33e7b8 Relax native verify
- up MTP observer delay by 2 seconds
- Take up to 100 sec. old files into account if we missed one for whatever reason.
2018-03-11 11:11:17 +01:00
Adrian Ulrich
f9e751ea4e bump sdk version to 27 2018-03-10 12:04:15 +01:00
Adrian Ulrich
d4062b18dd introduce song._flags
Adds a new _flags column to the song table which can be used to store bool flags for the song.

Currently, only 1<<0 is used to indicate that a song is outdated (but still valid)
2018-03-05 10:33:33 +01:00
Adrian Ulrich
50b33cfc2b fix makefile for gradle4 2018-03-05 10:15:13 +01:00
Dmitri Davydok
18f6934cda Editor config and annotations (#738)
* Add annotations support

* Add appropriate .editorconfig
2018-02-27 20:58:17 +01:00
Adrian Ulrich
0daa514406 relax black and whitelisting.
/sdcard is Fat32 by default, so do an case-insensitive black- and whitelist matching.

This helps if - for whatever reason - the mediadb and readdir() disagree on the case.
2018-02-26 19:51:40 +01:00
Gregor Santner
3e16199a3f Add media/audio to library default blacklist (#736)
The media/audio folder can be used as an alternative combined folder to add custom sounds to various android choosers.

This folder may hold for example the following subdirectories:
* alarms (/sdcard/Alarms alternative)
* notifications (/sdcard/Notifications alternative)
* ringtones (/sdcard/Ringtones alternative)
* ui (dont know if /sdcard/Ui is also such a directory)

All of these are scanned by Android in the same way like the other special directories.
As they hold e.g. click or short alarm sounds or like that they are not needed in music player ;).
2018-02-26 19:44:42 +01:00
Dmitri Davydok
fd601ae169 Upgrade Gradle (#719) 2018-02-26 19:35:46 +01:00
Adrian Ulrich
5da833512b sync with bastp 73fd8ec9bb30838d10751457dbabac71064af32f 2018-02-19 20:37:45 +01:00
Adrian Ulrich
b3c11e6549 Sync with BASTP b1b12d42bb 2018-02-18 21:01:25 +01:00
Adrian Ulrich
99473b20b6 limiters should act more like breadcrumbs.
Experiment with a slightly different layout
2018-02-18 11:23:23 +01:00
Adrian Ulrich
1a61c7f8b6 relex genre parsing
Allow genre tags with whitespaces (or enclosed in brackets) to be picked up by the genre translator.
2018-02-18 10:59:57 +01:00
Jacob Beck
93086a5305 Add support for ID3v2.2 headers (#731) 2018-02-18 10:40:16 +01:00
Adrian Ulrich
34f714d24a add uninstall target 2018-02-11 14:39:50 +01:00
Adrian Ulrich
8152059e27 update translations 2018-02-11 14:34:10 +01:00
Adrian Ulrich
7a822a24a1 update helper scripts 2018-02-11 14:34:00 +01:00
Adrian Ulrich
b371b16bf6 deprecate ant 2018-02-11 14:29:48 +01:00
Comarch Technologies
d00dc82b55 Fix missing metadata at start. (#723) 2018-02-04 12:06:44 +01:00
Adrian Ulrich
4f79ad384d always show cover for FourLongWidget 2018-02-04 10:59:55 +01:00
Stephen J Sweeney
934e1b1f4f Show album name on Four Long Widget. (#724)
* When in Album Shuffle mode, enqueue all tracks from the same album at once.

* Replaced getRandomSong() with getRandomSongs(). Queue shrink can always be 20, without issue.

* Updated comment text.

* Grab the first song, not the last.

* Use a do-while loop for adding all the album songs.

* Show the album name on the FourLongWidget.
2018-02-04 10:54:14 +01:00
Adrian Ulrich
74c3475c18 bump version 2018-01-28 20:12:06 +01:00
Adrian Ulrich
c898969de1 load sort order if limiter changes 2018-01-28 20:11:18 +01:00
Adrian Ulrich
4af00dfe7b add restorePosition function 2018-01-28 19:45:33 +01:00
Adrian Ulrich
74f7e36a3d really trigger a rescan.
mtime is the db-insertion timestamp, so it must be lower than
the files mtime to trigger a rescan.
2018-01-28 19:30:06 +01:00
Adrian Ulrich
a749bbdcd9 Target 1.0.59 2018-01-28 13:05:22 +01:00
Adrian Ulrich
c6f96dd636 update russian translation 2018-01-28 13:05:05 +01:00
Adrian Ulrich
5555c69211 trigger soft db update 2018-01-28 13:01:29 +01:00
Adrian Ulrich
0be6bbf853 update translations 2018-01-26 21:11:32 +01:00
Dmitri Davydok
44627437dc Implement fixes for my favorite pet peeves in Vanilla (#714)
* Ignore Visual Studio's cache.

* If only one of (ARTIST, ALBUMARTIST) is present, populate the other.
This is only natural and most applications that implement media library population do this.

* On completion of the queue, rewind to the beginning of the queue, so that a subsequent Play command will play the whole queue again.

* Correct <plurals> values according to the best practices and add a CLDR rules link for translators to look for their language's specific informaiton.
2018-01-26 21:10:28 +01:00
Adrian Ulrich
4ac73f9625 Remove gratipay, as they shut down their services. 2018-01-09 22:15:18 +01:00