James Wells
db0669098c
Another Attempt at Auto
2021-07-04 16:42:18 -04:00
James Wells
04de4544ee
merge develop
2021-07-04 15:41:56 -04:00
tzugen
dbdb59bbff
Add a Room database for Artists, Indexes and MusicFolders.
...
* There is one database for each Server
* Index items are saved with a "musicFolderId" prop, which makes it possible to filter the database by musicFolder without necessarily having to query the server for it.
* Databases for new Servers are created on the fly
* If the user removes a server, the respective database is deleted.
2021-06-29 18:01:26 +02:00
tzugen
e3e8d36f5c
Save the correct field to the server preferences
2021-06-25 17:47:11 +02:00
James Wells
4ff167e497
merge develop
2021-06-22 20:08:49 -04:00
tzugen
8c2896ea16
Remove static field leaks on SeekBar,
...
cleanup code and update baseline
2021-06-19 23:52:24 +02:00
tzugen
d8b032e2e3
Cleanup code
2021-06-19 23:52:24 +02:00
tzugen
28336c8bf7
Convert PlayerFragment to Kotlin
2021-06-19 23:52:24 +02:00
tzugen
38f1f5f5c6
Nicer catch all
2021-06-19 23:25:02 +02:00
James Wells
793c4a6ca7
working version
2021-06-19 00:05:19 -04:00
James Wells
3853fce818
Merge branch 'develop' into AndroidAuto
2021-06-18 22:52:56 -04:00
Maxence G
d440b8c76d
Fix no server call when starring song from notification
2021-06-16 20:33:21 +02:00
tzugen
57d740af12
Properly generate the Video stream url, without actually making a request!
2021-06-14 20:53:55 +02:00
tzugen
db31fefe83
Remove flash support
2021-06-12 15:31:21 +02:00
James Wells
8855d19113
Merge branch 'develop' into AndroidAuto
2021-06-10 19:19:29 -04:00
tzugen
620239f859
Improve the extension function by making it call-chainable
2021-06-09 17:36:11 +02:00
tzugen
d9a7fa2413
Cleaner separation of API result handling.
...
* CallResponseChecker functionality are now Kotlin Extensions
* Removed unfitting shortcuts from SubsonicAPIClient
* Increase timeout to get a video url
* Fix a bug, that the Rest API version was checked twice on each call
2021-06-09 14:15:39 +02:00
tzugen
4eeff191aa
Add two ToDos
2021-06-08 17:20:45 +02:00
tzugen
be356d9c0a
Cleanup unused functions from RESTMusicService,
...
put the caching functionality into the ImageLoader
2021-06-08 17:12:55 +02:00
Nite
7182694c5d
Fixed currentDownloading to be nullable
...
(It can be null when nothing is downloading)
2021-06-07 20:06:40 +02:00
tzugen
566e429e4c
Use file cache in Picasso
2021-06-07 14:22:33 +02:00
tzugen
0989ee20a6
Remove LegacyImageLoader, use Picasso as default
2021-06-07 13:26:07 +02:00
tzugen
90ecbe4b78
Make getCoverArt require a non-null entry
2021-06-07 13:26:07 +02:00
James Wells
e95b2ce09c
refactored a bit, and some cleanup
2021-06-06 18:28:46 -04:00
James Wells
be4ffc2c7e
Merge branch 'develop' into AndroidAuto
2021-06-06 16:36:33 -04:00
James Wells
e666498f13
Initial Test of Android Auto
2021-05-28 20:40:00 -04:00
tzugen
8aa1cf1e2c
Fix Kotlin 1.5 deprecated calls
2021-05-28 20:32:31 +02:00
tzugen
71068fe635
Upgrade Koin to 3.0.2
2021-05-28 19:39:27 +02:00
tzugen
e21ae1299b
Fix more detekt and lint issues and remove them from the baseline.
2021-05-27 15:30:20 +02:00
tzugen
6dc0eb7ecc
Move files to Koltin dir
2021-05-27 11:33:10 +02:00
tzugen
e059d737bc
Adopt changes from stricter nullabilities
2021-05-26 23:21:56 +02:00
tzugen
0500bd5e88
Handle also UnknownHostException in GenericListModel
2021-05-21 23:34:57 +02:00
tzugen
3d99269c41
Remove context from ShufflePlayBuffer
2021-05-21 23:34:57 +02:00
tzugen
b8fbbd8c49
Remove Context from Downloader & DownloadFile
2021-05-21 23:34:52 +02:00
tzugen
9b2e54b94e
Remove context from JukeboxMediaPlayer and Scrobbler
2021-05-21 22:52:16 +02:00
tzugen
df047dd463
Refactor MediaPlayerController to Kotlin
...
and also make MediaPlayerService context-free
2021-05-21 22:35:22 +02:00
tzugen
a801e276ee
Rename .java to .kt
2021-05-21 22:35:21 +02:00
tzugen
b25a118148
Remove unused context from CacheCleaner
2021-05-21 18:50:57 +02:00
tzugen
b559f6420e
Move certain ignores from the baseline to the specified files. This makes refactoring much less fragile.
2021-05-20 18:16:55 +02:00
tzugen
a60be2157b
Removing remaining context from MusicService signatures.
2021-05-11 14:26:29 +02:00
tzugen
c66118172c
Revert accidental changes in the method signature.
2021-05-11 12:04:29 +02:00
tzugen
5b6fa20050
This was literally the result of removing one(!) dependency on context inside FileUtil
...
17 Classes with x function which don't need to pass around context anymore..
2021-05-11 12:04:29 +02:00
tzugen
f2b1ba0e94
Remove unused context references in MusicServiceFactory
2021-05-11 12:04:29 +02:00
tzugen
76ba4c8ac9
Remove more context dependencies
2021-05-11 12:04:29 +02:00
tzugen
2c5f8d9dd0
Now we can stop passing around the context for a lot of API calls
2021-05-11 12:04:29 +02:00
tzugen
9ec92c6cf3
Make all preference operations context-free
...
(use the application context for them)
2021-05-11 12:04:26 +02:00
Nite
ec21e14e33
Merge branch 'develop' into lockscreen-controls
2021-05-07 16:15:20 +02:00
tzugen
bc2c591ff2
Set isActive correctly when pausing.
2021-05-06 13:23:38 +02:00
tzugen
a910818b70
Add skip functions to lockscreen
2021-05-06 13:23:35 +02:00
tzugen
85e2e473e5
Fix a typo, make two functions private
2021-05-06 12:53:25 +02:00
tzugen
8ebd53a8eb
Remove no longer needed safe call.
2021-05-06 12:40:49 +02:00
Nite
83b186b9b5
Merge branch 'develop' into remove-mediastore
2021-05-05 09:41:09 +02:00
tzugen
a3b97fef47
Delegate all handling of the Intent receiver registering to our Service Class.
2021-05-04 16:32:17 +02:00
tzugen
66a306152d
Remove MediaStoreService, reinstate Util.scanMedia
...
This partially reverts commit 8fbc2a9fa3
.
2021-05-01 13:31:48 +02:00
tzugen
98ba9ecd3e
Migrate from deprecated registerMediaButtonReceiver to MediaSession equivalent
2021-05-01 10:49:23 +02:00
tzugen
4af0d1db25
executeOnStartedMediaPlayerService takes a lambda now
2021-05-01 10:49:23 +02:00
tzugen
4f70c61592
Fix Magic Number problem in DownloadFile (caused by #431 ).
2021-04-27 10:21:57 +02:00
tzugen
3e8cf63603
Merge branch 'develop' into modern-notification-2
2021-04-27 08:18:49 +02:00
James Wells
d084270c4b
Add a retry count to stop infinite downloads
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-25 23:08:12 -04:00
tzugen
0a170918c8
Adjust Timber debug level
2021-04-25 16:49:14 +02:00
tzugen
cd27734c04
Emulate keycode for the Session callbacks
2021-04-23 15:04:01 +02:00
tzugen
8004bc31fe
Add PlaybackState actions
...
.. and map PlayerStates more precisely.
2021-04-23 11:26:15 +02:00
tzugen
0ad6d0b691
Move MediaPlayerService to Kotlin dir
2021-04-23 11:26:15 +02:00
tzugen
205f477b43
Refactor all event listeners to lambdas
2021-04-23 11:26:10 +02:00
tzugen
2adb9ffc7e
Remove two warnings
2021-04-23 11:21:28 +02:00
tzugen
f27212f263
Set AudioAttributes in LocalMediaPlayer
2021-04-23 11:21:24 +02:00
tzugen
5f8e3ce851
Modernize AudioFocusHandler
2021-04-23 11:20:09 +02:00
tzugen
37632dd031
Convert AudioFocusHandler to Kotlin
2021-04-23 11:13:44 +02:00
tzugen
0550116b35
Rename .java to .kt
2021-04-23 11:13:44 +02:00
tzugen
116307df56
Fix a regression were we accidentally reset our current MediaPlayer
...
Fixes #418
2021-04-23 11:13:43 +02:00
tzugen
19580cda8b
We can now remove the deprecated Remote Control API
2021-04-23 11:13:43 +02:00
tzugen
8d4d1ba660
Move function out of companion object
2021-04-17 12:32:29 +02:00
tzugen
0efb3547c3
Update license of two files.
2021-04-17 12:32:29 +02:00
tzugen
d9d82b77d4
Rename a function semantically
2021-04-17 12:32:25 +02:00
tzugen
a97cb30d1c
Move DownloadFile.kt to Kotlin directory
2021-04-17 12:11:21 +02:00
tzugen
cf68038e20
Migrate DownloadFile to Kotlin
2021-04-17 12:11:17 +02:00
tzugen
a13306c680
Remove unused parameters from getDownloadInputStream()
2021-04-17 12:02:45 +02:00
tzugen
b438559da6
Update license of MediaStoreService.kt
2021-04-16 11:47:16 +02:00
Nite
fbcbc65be8
Merge branch 'develop' into mediastore
2021-04-15 09:48:07 +02:00
tzugen
0349746228
Move Kotlin file
2021-04-11 01:20:16 +02:00
James Wells
f00a487b51
loads music folder list
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-09 22:41:38 -04:00
James Wells
580fc1aa89
review comments
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-06 22:55:21 -04:00
James Wells
2672ea7edf
Merge branch 'develop' into SelectMusicFolderView
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-06 18:36:12 -04:00
James Wells
191f9512bb
Introduce the SelectMusicFolderView
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-01 23:00:01 -04:00
tzugen
f738bca1ad
Merge remote-tracking branch 'origin/develop' into NPE
2021-03-30 14:39:09 +02:00
tzugen
05067aaf3c
Rename onCreate/onDestroy functions; create a new MediaPlayer instance on release()
2021-03-30 14:38:59 +02:00
Nite
fa5df96ee3
Fixed VideoPlayer using wrong context
2021-03-27 20:14:56 +01:00
tzugen
970d93bd91
Pass down the autoPlay value to BufferTask()
2021-03-25 20:33:51 +01:00
tzugen
bf106b0384
Handle a case when reset() is called after release().
2021-03-25 18:37:41 +01:00
tzugen
51dafd542a
Static analysis fixes
2021-03-25 18:37:41 +01:00
tzugen
8e7cf487fd
Checkstyle fixes
2021-03-25 18:37:41 +01:00
tzugen
8d65b1d25f
Private BufferTask() accepts only non-null now
2021-03-25 18:37:41 +01:00
tzugen
2171c971a3
Make remoteControl code more functional
...
Fixes #390
2021-03-25 18:37:41 +01:00
tzugen
60a0fe17dd
Fix a bad cast
2021-03-25 18:37:41 +01:00
tzugen
493a587b37
Introduce postRunnable helper function
2021-03-25 18:37:41 +01:00
tzugen
93eced9516
Move bufferAndPlay to another position in the file; annotate some possible bugs.
2021-03-25 18:37:41 +01:00
tzugen
09fb6aa487
Make doPlay method a private method, and play the only public entry point.
2021-03-25 18:37:41 +01:00
tzugen
d017ca9fb2
Initialize some vals onCreate, thus making them explicitely non-null
...
Also modify setNextPlaying to accept only non-null files.
2021-03-25 18:37:41 +01:00
tzugen
a467abf10b
Fix errors and warnings
2021-03-25 18:37:40 +01:00
tzugen
2260cc311f
Automatic conversion of LocalMediaPlayer to Kotlin
2021-03-25 18:37:40 +01:00