1761 Commits

Author SHA1 Message Date
Adrian Ulrich
303f9d2375 implement KEEP_SCREEN_ON 2017-04-24 19:16:43 +02:00
Adrian Ulrich
b792afcd7b Do not show dragger for filesystem view.
The icon already indicates the purpose of the row
2017-04-24 19:02:57 +02:00
Adrian Ulrich
c364875b71 Avoid jumps during rescan 2017-04-24 19:02:48 +02:00
Adrian Ulrich
f04a2f1186 Catch strange SecurityException.
No idea how people manage to hit this, but it seems to be a thing on Samsung phones.

Sample stacktrace:
java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=12655, uid=10269 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
	at android.os.Parcel.readException(Parcel.java:1620)
	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
	at android.content.ContentProviderProxy.query(ContentProviderNative.java:421)
	at android.content.ContentResolver.query(ContentResolver.java:502)
	at android.content.ContentResolver.query(ContentResolver.java:445)
	at ch.blinkenlights.android.vanilla.MediaUtils.getAndroidMediaIds(MediaUtils.java:591)
	at ch.blinkenlights.android.vanilla.PlaybackService.scrobbleBroadcast(PlaybackService.java:1108)
	at ch.blinkenlights.android.vanilla.PlaybackService.broadcastChange(PlaybackService.java:1064)
	at ch.blinkenlights.android.vanilla.PlaybackService.handleMessage(PlaybackService.java:1543)
	at android.os.Handler.dispatchMessage(Handler.java:98)
	at android.os.Looper.loop(Looper.java:148)
	at android.os.HandlerThread.run(HandlerThread.java:61)

Note that this happens WHILE we play a song - so claiming to not have READ_EXTERNAL_STORAGE privileges seems to be - strange.
2017-04-22 18:37:35 +02:00
Adrian Ulrich
df49dd1a49 fix possible NPE
We register ourselfs as a callback receiver BEFORE the adapter has been created.
This crash is unlikely but happens once in a while according to the play store.
2017-04-22 18:30:25 +02:00
Adrian Ulrich
07a0a1a81a update changelog 2017-04-22 18:18:21 +02:00
Adrian Ulrich
46a8d0b602 improve full rescans to include skip and playcounts, also makes things nicer to read. 2017-04-22 18:13:21 +02:00
Adrian Ulrich
4f509303de preserve playcounts during updates 2017-04-22 17:26:38 +02:00
Adrian Ulrich
50ae82446e Nag if user tries to edit directories
But start scan only if it changed
2017-04-22 17:02:05 +02:00
Adrian Ulrich
0c3e000624 disable context menu for 'up' row 2017-04-22 16:27:38 +02:00
Adrian Ulrich
00268d1b36 implement 'one level up' also for filebrowser adapter 2017-04-22 15:41:29 +02:00
Adrian Ulrich
9e993957dd use existing contstant string for file 2017-04-22 15:24:44 +02:00
Adrian Ulrich
bbb74e9534 Make the folder picker somewhat nicer 2017-04-22 14:10:15 +02:00
Adrian Ulrich
191787d1e1 fix icon regexp 2017-04-22 13:58:37 +02:00
Adrian Ulrich
62c89f638c update translation 2017-04-22 13:54:54 +02:00
Adrian Ulrich
3fd4c28386 restore saved state of extra info on slide changes 2017-04-15 12:45:30 +02:00
Adrian Ulrich
84c7cb1e84 add infos about the disc number if present 2017-04-15 12:30:09 +02:00
Adrian Ulrich
a697e2a827 index disc number for ID3v2 correctly 2017-04-15 12:11:21 +02:00
Adrian Ulrich
343b94506d use empty string as placeholder 2017-04-15 12:02:51 +02:00
Adrian Ulrich
848dba0abc simulate existence of default storage dir 2017-04-14 21:05:55 +02:00
Adrian Ulrich
b809aa0f32 cleanup FolderPickerAdapter 2017-04-14 20:55:57 +02:00
Adrian Ulrich
21ce9c1d57 Merge indexer-select branch.
This adds the ability to include and exclude media folders.
2017-04-14 16:49:28 +02:00
Adrian Ulrich
58068fb9ca Hide homefolder option in context menu if slide is expanded 2017-04-13 15:11:21 +02:00
Adrian Ulrich
c5294347ed add missing check for plugins 2017-04-12 20:13:12 +02:00
Adrian Ulrich
08330cdb84 Use DSLV for FolderPicker 2017-04-10 19:58:49 +02:00
Adrian Ulrich
1b88ebdc84 Make filebrowser code a little bit nicer. 2017-04-09 18:26:52 +02:00
Adrian Ulrich
4cb857371f Make add_to_playlist in fullplaybackview *also* a submenu 2017-04-09 17:55:52 +02:00
Adrian Ulrich
fee64685bd Use a progress bar in scanprefs 2017-04-08 12:43:42 +02:00
Adrian Ulrich
f2c9bf6b14 place medialibrary prefs in scrollview 2017-04-08 11:54:00 +02:00
Adrian Ulrich
9e929ebb08 cleanup some old sorting code
* No need to call loadSortOrder()
* All adapters are now sortable
2017-04-08 11:32:57 +02:00
Alex Bikadorov
10878de963 Implement sorting for files tab (#577)
* Added new translation strings for file sort dialog

* Implemented sorting for the file system adapter

With new abstract class SortableAdapter as new base class for FileSystemAdapter
and MediaAdapter.

Usable sorting modes are:
 - filename
 - file size
 - file modification time
 - file extension
* reversed

Closes #305

* Code improvements for sorted file system adapter
2017-04-08 11:27:54 +02:00
Adrian Ulrich
55a5ff6aa0 implement 'more from folder' 2017-04-03 20:34:48 +02:00
Adrian Ulrich
306e15e0c5 use proper strings 2017-04-03 20:16:23 +02:00
Adrian Ulrich
ffe0fe55df Add option to jump to albums, artists and genres in fullplaybackactivity 2017-04-02 17:08:25 +02:00
Adrian Ulrich
f1aa25556f hold a wake lock during indexing 2017-04-02 15:39:29 +02:00
Adrian Ulrich
b61467257a target 1.0.51 2017-03-31 10:18:51 +02:00
Adrian Ulrich
6de63921e3 Revert "enable sql debug in nightly"
This reverts commit 53d35fbf57066e9fd87d2853bda54e53257877af.
2017-03-27 20:28:23 +02:00
Adrian Ulrich
53d35fbf57 enable sql debug in nightly 2017-03-27 20:28:07 +02:00
Adrian Ulrich
a332396f42 simplify tab order code 2017-03-27 20:25:37 +02:00
Adrian Ulrich
6825310baa update translations 2017-03-27 19:36:10 +02:00
Adrian Ulrich
ab74a3b5a5 make sBackend volatile 2017-03-16 20:47:13 +01:00
Adrian Ulrich
0608627deb add missing fix for song == null
fixes an NPE when selecting the plugins menue while no song is loaded
2017-03-08 18:32:58 +01:00
Antic1tizen One
2bc17ec2dd Add "plugins" menu option in full playback view (#559)
- refactor plugin querying in a way that now any
   library activity can utilize it
- Make doc more thorough
- Hopefully fix empty plugin list bug
   (flag was added to wrong intent)
2017-03-06 21:59:15 +01:00
Adrian Ulrich
2b07abdc8b remove gradle nightly target as it was broken.
* Widgets not working
* Crashes in Filebrowser and TabOrder activity
2017-03-06 19:40:42 +01:00
Adrian Ulrich
51ded9bee3 get rid of mLastActedId
This was always somewhat buggy and is very buggy in File views
2017-03-04 20:13:54 +01:00
Adrian Ulrich
d0ff23a824 COMPOSER and ALBART id's are > SONG
These types can not have a Play All in the context menu as the 'jumpSong' in SongTimeline only works if the required information is available in the filled projection (which is not the case for these types)
2017-03-04 20:01:27 +01:00
Adrian Ulrich
010aa84185 Add 'play all' header in file view 2017-03-04 19:51:53 +01:00
Adrian Ulrich
798400d713 expose support for albumartist and composer tags 2017-03-04 18:29:20 +01:00
Adrian Ulrich
f4d0028176 include artist name in album view 2017-03-04 18:17:25 +01:00
Adrian Ulrich
710398822d trim whitespaces before putting strings 2017-03-04 18:08:54 +01:00