Adrian Ulrich
919ddc5f75
Do not use resource-magic to select themes.
...
Gradle uses a completely different resources-order, so calculating the theme id will fail.
We are therefore emiting all theme styles into integer-array's.
2017-02-26 13:44:33 +01:00
Adrian Ulrich
7580280ba5
use getNotification() as build() requires api level 16
2017-02-20 18:57:23 +01:00
Adrian Ulrich
f44ca3c3b0
Jump to pos 0 if the limiter of a FILE adapter changes
2017-02-18 10:58:03 +01:00
Adrian Ulrich
111b2d90f0
Revert "be explicit about the current scrolling position"
...
This reverts commit 5e8f9bbef6348926d5790c473c9cea1eae398896.
2017-02-18 10:44:41 +01:00
Adrian Ulrich
9a36558064
index albumartist
2017-02-17 22:29:09 +01:00
Adrian Ulrich
7b638550b9
sync with bastp e62865f5f7d9746cfcc93b0eefa3261a8bd68333
2017-02-17 22:25:27 +01:00
Adrian Ulrich
5e8f9bbef6
be explicit about the current scrolling position
...
Jump to top if we have no LRU cache entry
2017-02-17 22:17:46 +01:00
Adrian Ulrich
7240b0089f
filter out 'ghost' events
2017-02-17 22:14:13 +01:00
Adrian Ulrich
b39cc52ea4
sync with bastp and enable MP4 tagreader
2017-02-12 17:49:54 +01:00
Adrian Ulrich
390ba53583
also blacklist Alarms directory
2017-02-11 17:21:46 +01:00
Adrian Ulrich
655c42b468
sync with bastp and maybe-pass id3v1 headers to own parser
2017-02-11 17:14:33 +01:00
Adrian Ulrich
7d9025a967
get rid of mtime=0
...
Setting mtime=0 was done by older releases and is always wrong, it should be at least '1'
Also fixes triggerFullMediaScan() to ditch the correct values ;-)
2017-02-11 15:12:14 +01:00
Adrian Ulrich
4c59fc2486
Use 'title' instead of 'name'
2017-02-08 18:41:08 +01:00
Adrian Ulrich
35833f1c65
Do *not* set mtime to 0 if we are triggering a lazy rescan
...
mtime==0 means: item does not exist and it will never be get correctly re-indexed in this state
2017-02-08 18:32:49 +01:00
Adrian Ulrich
6938c820b3
fix fd leak and increase logging
2017-02-04 11:53:52 +01:00
Adrian Ulrich
56154f21bd
Check forceBastp and use own ID3v2 reader if true
...
Also sync with bastp head to get additional vorbis <-> id3v2 mappings
2017-02-04 11:24:48 +01:00
Adrian Ulrich
51a4c0ffeb
fix misuse of ugly getSetPreference() function
...
We just want to get, so we pass -1
2017-02-04 10:13:11 +01:00
Adrian Ulrich
7183a85869
implement group-album-by-folder
2017-02-04 10:05:24 +01:00
Adrian Ulrich
90b48bdc8c
implement scanner preferences
2017-02-04 09:47:18 +01:00
Adrian Ulrich
c0854e2740
fix setSortMode range check
...
Modes are inverted indexes, so we can not use Math.abs()
2017-02-03 21:36:10 +01:00
Adrian Ulrich
e5e9ba3022
Sync with BASTP HEAD
2017-02-03 18:48:48 +01:00
Adrian Ulrich
cc930c3dbb
never return covers for unindexed songs
...
Invalid song objects have an id == -1, unindexed songs start at -2, so we should also skip them as their album information is bonkers
2017-02-02 19:04:41 +01:00
Adrian Ulrich
3c15eca5e6
do not put empty-names in brackets
2017-02-02 18:56:13 +01:00
Adrian Ulrich
cb6b824e05
use getAndroidMediaIds for cover and mirrorlink
2017-01-26 20:26:17 +01:00
Adrian Ulrich
7d90334867
fix scrobbler
2017-01-26 20:18:07 +01:00
Adrian Ulrich
541f846aaa
improve ReadaheadThread
...
We are now calculating the read speed instead of using a hardcoded value.
2017-01-24 22:16:24 +01:00
Adrian Ulrich
446912c225
improve isMediaFile() guess
2017-01-24 21:23:08 +01:00
Adrian Ulrich
a98eb36a1c
Relax sFilterLeftInt to also match on integers which are followed by other chars.
...
..so we also match eg: '2/13' (-> 2)
2017-01-24 21:03:25 +01:00
Adrian Ulrich
a6442948fc
relax audio data check
2017-01-22 21:38:09 +01:00
Adrian Ulrich
d2c54eeb2a
Do not index ringtone data
2017-01-22 21:14:11 +01:00
Adrian Ulrich
2c5abc352c
Use MediaStore.Audio.Media.EXTERNAL_CONTENT_URI for cover lookups
...
MediaStore.Audio.Media.getContentUriForPath() seems to return strange results on some phones and lookups to non-external databases are pretty unlikely anyway.
2017-01-22 20:41:01 +01:00
Adrian Ulrich
555070a7e7
Pass filedescriptor to mediametadataretriever instead of a path.
...
This avoids issues where it would parse paths as uri's - we already do this for the MediaPlayer, so doing the same here seems to be sane.
2017-01-22 20:40:11 +01:00
Adrian Ulrich
b8831f71f2
use media database to store preferences instead of the shared pref provider
2017-01-21 14:05:01 +01:00
Adrian Ulrich
1982b0f969
convert legacy ID3v1 numeric-only genres into strings
2017-01-21 12:27:16 +01:00
Adrian Ulrich
74f921e3a1
use Long to calculate duration
...
The duration is stored as 'ms', so the total sum might overflow
2017-01-18 21:11:14 +01:00
Adrian Ulrich
055ed2c053
increase icon search to 150 tries
2017-01-18 20:19:32 +01:00
Adrian Ulrich
d2b5f931d2
improve quickscan
2017-01-15 17:16:16 +01:00
Adrian Ulrich
bb2e707844
add option to abort a scan
2017-01-15 16:00:06 +01:00
Antic1tizen One
c270b13296
Add CI smoke build, fix Gradle Lint warnings, fixes #451 ( #504 )
...
- Added CI smoke build config that spawns a build for pull-requests
- Removed extra translations that have no base strings anymore
- Added skip MissingTranslation option to lint as there are missing strings that are not filled in Transifex
2017-01-12 19:01:19 +01:00
Antic1tizen One
58b40d862c
Plugin subsystem. Shown as a last option in song context menu. Part of #407 ( #442 )
2017-01-08 19:52:07 +01:00
Adrian Ulrich
76996605c8
Show every album where the artist has at least one song for album lookups
...
the old code just used the inherited primary artist which is pretty confusing
2017-01-08 18:45:32 +01:00
Adrian Ulrich
039a6821b6
improve handling of changed and updated files
2017-01-08 17:54:26 +01:00
Adrian Ulrich
364a08b3bc
set disc_num to 1 if unset
2017-01-03 21:22:11 +01:00
Adrian Ulrich
e4cbf3e4fe
fix sql layout to store disc_num on song
...
The album id is hashed from the string, so joining it from the shared album entry doesn't make much sense
2017-01-02 13:01:30 +01:00
Adrian Ulrich
e92e24ec00
fix regexp for year-fallback extraction
...
Java regexp's are always automatically enclosed by ^$
2017-01-01 18:13:49 +01:00
Adrian Ulrich
2e958ec285
update notification at most twice per second
2016-12-31 14:07:02 +01:00
Adrian Ulrich
e747f1ee37
use notification instead of toast to display scan progress
2016-12-31 13:54:17 +01:00
Adrian Ulrich
fc167c08c7
remove debugging leftovers
2016-12-31 12:45:34 +01:00
Adrian Ulrich
01ee099cef
disable database debugging
2016-12-31 12:38:39 +01:00
Adrian Ulrich
d26d10570b
import old playlists
2016-12-31 12:38:05 +01:00