Maxence G
3c4a5064b0
change exception type
2021-05-25 19:30:02 +02:00
Maxence G
070e0ac792
Fix lintFormat + remove synchronized
2021-05-25 18:51:00 +02:00
Maxence G
1b7f48c53a
Implement server feature checking
2021-05-24 23:25:12 +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
1b5db9da1f
Make ExternalStorageMonitor context-free
2021-05-21 22:37:43 +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
f596dc77c1
Make MediaPlayerLifecycleSupport context-free
2021-05-21 19:43:32 +02:00
tzugen
b25a118148
Remove unused context from CacheCleaner
2021-05-21 18:50:57 +02:00
tzugen
402fe961ba
Merge MediaPlayerController interface & implementation
2021-05-21 18:50:33 +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
5f08e7e7cd
Create a new SelectMusicFolderViewHolder instance when the Adapter is recreated,
...
instead of reusing an old one. This lead to a crash.
Also make the AlbumList use the correct placeholder,
remove an unused resource file, and update the placeholder to look less clumsy.
2021-05-18 08:50:04 +02:00
tzugen
2cf80707f7
Correctly display the folder header also in album view
...
Also fix a number of smaller issues
2021-05-16 21:06:04 +02:00
tzugen
72c03cc500
Introduce new Generic Fragments, ViewModels, and Adapters for the display of API data.
...
* Splits former SelectAlbumFragment into separate fragments for Albums and general collections of tracks
* Renames and refactors SelectArtist view to extend the new Generic classes
* Adds error handling (Fixes #484 )
* Adds EndlessScrolling capabilities to all Album Lists
* Uses RecyclerViews and LiveData for performance and in-memory caching
* Refreshes the UI to be aligned with the ArtistList UI
* Add a new GenericEntry to the domain data classes, and make other types extend it
2021-05-16 17:42:31 +02:00
tzugen
c6a744cc14
Rename classes in preparation of split.
2021-05-16 17:42:31 +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
Nite
afccbf3f65
Merge branch 'develop' into patch-further
2021-05-07 09:14:27 +02:00
tzugen
a6c914cf7f
Make the server setting model a local val
2021-05-06 20:45:45 +02:00
tzugen
9ca15deef2
Fix a copy & paste mistake
...
(Wrongly inserted if clause)
2021-05-06 20:45:45 +02:00
tzugen
094c0d2757
Cache requireArguments() in a local val
2021-05-06 20:45:45 +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
Nite
fb74d6465e
Merge branch 'develop' into rogue-session
2021-05-02 12:04:23 +02:00
tzugen
66a306152d
Remove MediaStoreService, reinstate Util.scanMedia
...
This partially reverts commit 8fbc2a9fa3
.
2021-05-01 13:31:48 +02:00
tzugen
adc350b5c4
Fix wrong injection method after rebase
2021-05-01 10:50:54 +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
ce2f5a95d9
Remove unused parameter
2021-04-27 20:41:14 +02:00
tzugen
fe69141e19
Don't leak context in model
2021-04-27 20:41:14 +02:00
tzugen
25f072a5d5
Cleanup some methods
...
+ Ktlint WS fixes
2021-04-27 20:40:57 +02:00
tzugen
dca26f14eb
Fix more compiler warnings
2021-04-27 20:39:52 +02:00
tzugen
1802e91fa7
Use lambdas in Listeners, fix various warnings
2021-04-27 20:39:52 +02:00
tzugen
fa4f4d6c9c
Move loading functions into ViewModel
2021-04-27 20:39:48 +02:00
tzugen
1f57fb334b
Refactor: LoadTask to Coroutines.
2021-04-27 19:52:13 +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
aac74d1eef
Make SongView display a percentag while downloading
...
Closes #403
2021-04-17 12:11:20 +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
James Wells
e5158c8a2f
correct for swipe refresh
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-14 22:25:31 -04:00
James Wells
39c94fe1e9
Clean empty text view
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-13 22:35:06 -04:00
James Wells
38b6066258
small change to view group
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-13 00:12:38 -04:00
James Wells
3a1e2c96fc
Don't show header when using ID3 tags
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-11 16:02:07 -04:00
tzugen
0349746228
Move Kotlin file
2021-04-11 01:20:16 +02:00
James Wells
268a41d1f4
Don't use musicFolderId in Recently Added filter
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-10 17:48:52 -04: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
3e54e4cf05
restrict header to album list only
...
Signed-off-by: James Wells <james@jameswells.net>
2021-04-04 15:30:31 -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
James Wells
f0be828bbf
Convert SelectAlbumFragment to kotlin
...
Signed-off-by: James Wells <james@jameswells.net>
2021-03-18 23:23:00 -04:00
Nite
2eb357a50f
Fixed ktLint
2021-03-01 17:26:58 +01:00
Nite
46859e2413
Minor cleanup, added comments
2021-03-01 17:24:25 +01:00
Nite
9910792c11
Fixed back press in Server Editor
...
Fixed displaying "no results" for Search
Cleaned up code
2021-02-25 18:40:41 +01:00
Nite
8a047c5b78
Fixed coroutine scope for server creation/update
2021-02-17 18:36:36 +01:00
Nite
81ce23bafd
Updated PreferenceManager to androidx version
2021-02-15 16:30:36 +01:00
Nite
86bfcefe93
Minor fixes
...
Cleaned up TODOs
Cleaned up code
2021-02-14 15:55:16 +01:00
Nite
d70d2cc2fb
Fixed TODOs:
...
- Updated Koin
- Fixed Player start from widgets and notification
- Added cancellation to LoadingTask
- Minor fixes and cleanup
2021-02-11 21:51:27 +01:00
Nite
3dc6df9116
Fixed colors and theme changing
...
Other minor fixes
2021-02-10 19:57:09 +01:00
Nite
c4ea2086d2
Removed unused code, minor fixes
2021-02-09 19:49:26 +01:00
Nite
1b9b127424
Refactored remaining Activities
2021-02-08 21:46:31 +01:00
Nite
cf90abb77e
Added NowPlayingFragment
2021-02-08 20:24:20 +01:00
Nite
f0917820cb
Migrated parts from SubsonicTabActivity, fixed theme changes
2021-02-06 11:50:57 +01:00
Nite
a395bd6feb
Refactored DownloadActivity
2021-02-05 21:45:50 +01:00
Nite
95773c7994
Started refactoring to NavigationUI
...
Main menu items are refactored, except Now Playing
2021-02-04 20:15:58 +01:00
Nite
d98360d3fe
Really fixed getSectionName
2020-11-28 13:51:51 +01:00
Nite
7068477e23
Fixed getSectionName
2020-11-28 13:33:29 +01:00
Nite
4336e8e243
Added setting to show artist picture
2020-11-25 20:00:12 +01:00
Nite
a3c4815a07
Fixed Artist row layout
...
Changed Unknown image
2020-11-24 18:19:58 +01:00
Nite
b3db46b1ab
Fixed ktlint errors
2020-11-23 14:02:18 +01:00
Nite
7dcaf5b1a6
Added Fastscroll Library with section popup support
...
Fixed collation for the sorting of tha Artist list
2020-11-23 13:55:28 +01:00
Nite
47e5675d1e
Added coverArt images to Artists
...
Minor fixes
2020-11-18 21:46:46 +01:00
Nite
34a6413f10
Migrated SelectArtistActivity to Kotlin
...
Updated SelectArtistActivity to use RecyclerView
Changed old progress display to use SwipeRefreshLayout's spinner
Added alphabetic side index
Enabled RecyclerView's FastScroll
2020-11-16 19:14:44 +01:00
Nite
8ebda198c6
Fixed Server Settings screen to keep entered data when rotating the screen
2020-11-02 17:13:38 +01:00
Nite
df53da2439
Fixed copyright comments
2020-11-01 08:02:10 +01:00
Nite
537478430c
Fixed null checks in SongView
...
Migrated SongView to Kotlin
2020-10-31 08:51:43 +01:00
Nite
30a5abaa34
Fixed exception on Room downgrade
2020-10-17 12:38:48 +02:00
Nite
eb3ce0db8a
Added creating the client again after setting the minimum API version to NULL
2020-10-15 14:34:10 +02:00
Nite
4e6df12f4e
Moved minimumApiVersion detection to be executed before any first request
...
Refactored RESTMusicService to Kotlin
Refactored OfflineMusicService not to be a subclass of RESTMusicService
Minor fixes
2020-10-15 10:22:15 +02:00
Nite
a396b4b27b
Fixed Subsonic API version detection
...
Fixed server change detection
Minor fixes
2020-10-13 21:41:01 +02:00
Nite
60a8599a02
Merge branch 'develop' into feature/log_to_file
2020-10-06 17:07:16 +02:00
Max Pop
675a32a3ef
Remove useless import
2020-10-05 01:59:53 +02:00
Max Pop
6ae3c9692a
Add Material Black Theme
2020-10-05 01:45:58 +02:00
Nite
e15fa23def
Fixed ktLint errors
2020-10-02 19:08:05 +02:00
Nite
6e7ebeabef
Implemented file logging settings
...
Implemented log rotation, log deletion
Minor fixes
2020-10-02 18:47:21 +02:00
Nite
5de20861ca
Added Timber to Koin and OkHttp, started implementing file logging
2020-09-30 18:17:57 +02:00
Nite
7217f2cca8
Refactored Log calls to Timber
2020-09-30 14:47:59 +02:00
Nite
4991eb8d13
Fixed Edit Server button layout and exit check
2020-09-25 20:02:59 +02:00
Óscar García Amor
5387b58e35
Finish convert drawables to vectors. Closes #308
...
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2020-09-25 18:20:18 +02:00
Nite
ef09807e3e
Fixed stopping playback when selecting the same server
2020-09-25 11:15:19 +02:00
Nite
7bbc3234f2
Added applying changes when the currently active server is modified
2020-09-25 11:04:48 +02:00
Nite
db4f8b83d3
Updated missing index handling
2020-09-25 10:43:33 +02:00
Nite
02716c827a
Added new preference key to avoid duplicate migration
2020-09-24 21:00:21 +02:00
Nite
102f3e8a04
Updated ServerSettingsModel to use Room for handling LiveData
2020-09-24 20:32:51 +02:00
Nite
5b0c9906f1
Fixed Server Id and Indexing
2020-09-24 18:20:59 +02:00
Óscar García Amor
a7d29a4093
More UltraSonic -> Ultrasonic
...
Signed-off-by: Óscar García Amor <ogarcia@connectical.com>
2020-09-24 13:03:05 +02:00
Nite
31853cc8bc
Made the hostname part of the server url mandatory
2020-09-23 17:14:14 +02:00
Nite
b7c21e4aac
Fixed Server Id to be the same as the Preference was
2020-09-23 16:26:54 +02:00
Nite
55105e52b6
Fixed ktlint errors
2020-09-22 22:01:33 +02:00
Nite
06109424ec
Index fix, added logging
2020-09-22 21:50:53 +02:00
Nite
bed29ce33b
Fixed migrated server indexing
2020-09-22 20:18:36 +02:00