Commit graph

2384 commits

Author SHA1 Message Date
Naveen
8de58513b3
Call player methods on player thread 2023-08-20 12:58:19 +05:30
Naveen
481041564e
Code readability improvement 2023-08-20 12:10:50 +05:30
Naveen Singh
6fe7458e5f
Merge branch 'SimpleMobileTools:master' into media3 2023-08-19 23:06:20 +05:30
Naveen
7a421b8bb2
Remove some unused receivers and music service code 2023-08-19 23:05:31 +05:30
Naveen
c45edd3690
Setup everything using media controller api 2023-08-19 23:04:54 +05:30
Naveen
19ce6d2684
Remove no longer required logic from folders fragment 2023-08-19 23:01:42 +05:30
Naveen
ff22ada30c
Setup widget using media controller api 2023-08-19 23:00:02 +05:30
Naveen
585b053173
Setup adapters using media controller api
- Move common code between adapters to base music adapter class.
- Rewrite and move player related extensions to simple controller activity.
2023-08-19 22:59:19 +05:30
Naveen
02ad33ccaf
Setup queue activity using media controller api 2023-08-19 22:52:59 +05:30
Naveen
7d48a1fd47
Save track as tag in media item 2023-08-19 22:51:57 +05:30
Naveen
95f375571f
Move controller logic to a separate class 2023-08-19 22:31:32 +05:30
Naveen
e6cf02a023
Update track info on resume 2023-08-19 17:19:35 +05:30
Naveen
f268fa137c
Minor code improvement 2023-08-19 14:40:57 +05:30
Naveen
d4aef1c322
Expose current playback info in companion object 2023-08-19 14:27:42 +05:30
Naveen
a4a5938a38
Simplify controller logic and catch cancellation exception 2023-08-19 13:14:40 +05:30
en2sv
9a2c8fa9ad
Translated using Weblate (Swedish)
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/sv/
2023-08-14 17:56:38 +02:00
Kingproone
99341d6ddf
Translated using Weblate (Hungarian)
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/hu/
2023-08-14 17:56:38 +02:00
Naveen
493ab65fc3
Launch track activity on play 2023-08-13 20:54:24 +05:30
Naveen
44f0db3ad6
Fix security exception when initializing controller 2023-08-13 19:21:36 +05:30
Naveen
b8d3e50c26
Do player operations on a background thread
As per https://developer.android.com/guide/topics/media/exoplayer/hello-world#a-note-on-threading, using the main thread is suitable for majority of cases but it still slows down the main thread, in some cases significantly. This can lead to a non-responsive UI when doing player operations like `moveMediaItems()` with a lot of media items in the queue.
2023-08-13 16:10:30 +05:30
Naveen
a831487cb5
Add comment 2023-08-12 13:51:47 +05:30
Naveen
98379ed7f3
Minor readability improvement 2023-08-12 13:04:38 +05:30
Naveen
b06b728fdb
Rebuild media items when tab configuration changes 2023-08-12 13:01:09 +05:30
Naveen
6b00a23ba4
Add comment 2023-08-12 12:57:48 +05:30
Naveen
3e35a12038
Setup track activity using media controller api 2023-08-12 12:49:29 +05:30
Naveen
ee627f9b4f
Workaround silently caught exception 2023-08-12 11:43:15 +05:30
Naveen
3c909382bd
Move current track bar logic to base music activity 2023-08-12 08:20:44 +05:30
Naveen
2d5e336080
Minor readability improvement 2023-08-12 08:01:50 +05:30
Naveen
12df58b854
Handle repeat mode 2023-08-12 07:53:24 +05:30
Naveen
2262af4f14
Minor readability improvement 2023-08-11 17:23:52 +05:30
Naveen
f13d507aa3
Don't release media session when stopping service manually 2023-08-10 21:30:10 +05:30
Naveen
d589d4a0c0
Setup media controller in main activity 2023-08-10 21:25:01 +05:30
Naveen
e88e9806cb
Add support for system UI playback resumption 2023-08-10 20:26:55 +05:30
Naveen
f07ac19571
Add SimpleMusicActivity class 2023-08-10 19:15:08 +05:30
Naveen
40b1d7e1b8
Respect shuffle, player speed config 2023-08-10 19:13:46 +05:30
Naveen
d6a35d570d
Show notification when there's no storage permission 2023-08-10 13:34:09 +05:30
Naveen
6c2c354892
Avoid creating unnecessary renderers 2023-08-09 03:12:40 +05:30
Naveen
87911c75b0
Minor readability improvement 2023-08-09 02:48:50 +05:30
spkprs
4577d8903f
Update strings.xml 2023-08-07 20:01:34 +03:00
Naveen
1e783c8d8e
Optimize thumbnail loader extension 2023-08-07 08:33:40 +05:30
Naveen
dbf547f549
Use cached album art when available 2023-08-07 06:09:19 +05:30
Naveen
caa3e549e7
Add album_art column in genre table
Db migration is handled from the last release: 73388dd7ca
2023-08-07 04:48:49 +05:30
Naveen
0e8f097f15
Properly save recent items to db 2023-08-07 04:15:08 +05:30
Naveen
464a6dc8ca
Handle sending progress update 2023-08-07 03:53:12 +05:30
Naveen
f32e6a370e
Minor readability improvement 2023-08-07 01:42:09 +05:30
Naveen
7e4da3faf4
Always allow next, previous commands 2023-08-07 01:35:36 +05:30
Naveen
821376057d
Catch exception! 2023-08-06 23:20:02 +05:30
Naveen
5b776b97bd
Sort folders 2023-08-06 23:17:49 +05:30
Naveen
22190e4c79
Search item properly using media id 2023-08-06 23:09:31 +05:30
Naveen
75557f3b48
Minor readability improvement 2023-08-06 22:27:48 +05:30
Naveen
3ea9263d0e
Show only visible tabs in the media tree 2023-08-06 22:17:26 +05:30
Naveen
2aabdde5f5
Minor readability improvement 2023-08-06 03:03:27 +05:30
Naveen
b1eb013327
Minor readability improvement 2023-08-06 03:02:27 +05:30
Naveen
cd728ea934
Add sleep timer 2023-08-06 02:44:52 +05:30
Naveen
6f097ec193
Call listeners on the main thread 2023-08-05 23:24:12 +05:30
Naveen
ac92426e1a
Rewrite music service using media3 (initial) 2023-08-03 23:30:00 +05:30
Naveen
c0bf269df4
Add media3 library 2023-08-03 23:27:08 +05:30
Tibor Kaputa
91846910a0
Merge pull request #580 from naveensingh/minor_fixes_and_improvements
Crash fixes and improvements
2023-07-28 09:38:49 +02:00
Naveen
ceba47f081
Properly handle bubble text in tracks adapter 2023-07-28 13:05:38 +05:30
Naveen
cbdc1efcb2
Remove static variable and properly handle sorting 2023-07-28 06:39:59 +05:30
solokot
623a86f8ae
Translated using Weblate (Russian)
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/ru/
2023-07-28 01:07:48 +02:00
Naveen
7f18316c32
Remove useless comparator checks 2023-07-28 02:22:06 +05:30
Naveen
f36e9cef13
Avoid starting image loading when activity is destroyed 2023-07-27 16:34:27 +05:30
Naveen
c6224ad332
Avoid NullPointerException 2023-07-27 16:21:18 +05:30
Tibor Kaputa
6e8ba9aa55
Merge pull request #576 from naveensingh/allow_sharing_files
Allow sharing files
2023-07-26 21:21:00 +02:00
Naveen
3d4b2ff84e
Add "Share" options menu on genre tab 2023-07-26 22:29:03 +05:30
Naveen Singh
53b3eb041b
Merge branch 'SimpleMobileTools:master' into allow_sharing_files 2023-07-26 22:24:08 +05:30
Rex_sa
ca431c0040
Translated using Weblate (Arabic)
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/ar/
2023-07-26 18:29:08 +02:00
Josep M. Ferrer
9bf22195d5
Translated using Weblate (Catalan)
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/ca/
2023-07-26 18:29:08 +02:00
Priit Jõerüüt
a0154d369c
Translated using Weblate (Estonian)
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/et/
2023-07-26 18:29:08 +02:00
Eric
5ba1ad385a
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/zh_Hans/
2023-07-26 18:29:08 +02:00
Oğuz Ersen
0b0ad86a4c
Translated using Weblate (Turkish)
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/tr/
2023-07-26 18:29:08 +02:00
Agnieszka C
f9f5de0954
Translated using Weblate (Polish)
Currently translated at 100.0% (77 of 77 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/pl/
2023-07-26 18:29:08 +02:00
Sergio Marques
042de876e8
Translated using Weblate (Portuguese)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/pt/
2023-07-26 18:29:08 +02:00
Naveen
33e7e6595e
Minor code improvement 2023-07-26 16:16:21 +05:30
Naveen
aa683a0957
Show share icon when there's enough room 2023-07-26 16:16:10 +05:30
Naveen
b2ec0f19ea
Add share option in queue activity 2023-07-26 16:15:56 +05:30
Naveen
0e02ef9cc1
Add "Share" options menu 2023-07-26 02:08:32 +05:30
Naveen
eec7d5b543
Avoid flicker on long press in queue 2023-07-26 01:09:52 +05:30
Naveen
9c98001b06
Properly handle sorting tracks on genre tab 2023-07-26 00:29:47 +05:30
Naveen
8c85eae120
Restore call to notifyDatasetChanged() on long press 2023-07-26 00:11:35 +05:30
Naveen Singh
34bea9f7f6
Merge branch 'SimpleMobileTools:master' into add_genre_tab 2023-07-25 23:50:35 +05:30
Naveen
ad5b2d3493
Add "Genres" tab 2023-07-25 23:49:41 +05:30
Tibor Kaputa
80cb44c810
Merge pull request #571 from Yashraj254/bug_fixed_playlist_not_getting_deleted
Bug fixed playlist not getting deleted
2023-07-25 13:09:51 +02:00
Tibor Kaputa
ff8ad8d005
Merge pull request #570 from weblate/weblate-simple-mobile-tools-simple-music-player
Translations update from Hosted Weblate
2023-07-25 08:45:09 +02:00
Tibor Kaputa
6d7d786ed6
updating the slovak translation 2023-07-25 08:44:41 +02:00
Naveen
268fd63695
Add Genres strings 2023-07-25 01:45:44 +05:30
Yashraj254
f460d63f2e Merge remote-tracking branch 'origin/master' into bug_fixed_playlist_not_getting_deleted 2023-07-24 23:10:10 +05:30
Yashraj254
a954ea0d65 Bug fixed: playlists not getting deleted even after deleting them 2023-07-24 23:08:07 +05:30
en2sv
d072491e78
Translated using Weblate (Swedish)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/sv/
2023-07-24 16:15:48 +02:00
tibbi
73388dd7ca update version to 5.17.1 2023-07-24 16:15:22 +02:00
tibbi
2b51be9a6f updating commons 2023-07-24 16:15:14 +02:00
Naveen
1eac3fb80d
Disable manual scan on Android 9 and below
`MediaMetadataRetriever` crashes natively on some wierd android 9 devices
2023-07-24 17:52:16 +05:30
Naveen
39776061c0
Use proper flags for tracks not present in media store
I broke it while adding 'Sort by date' added
2023-07-24 14:45:47 +05:30
Naveen
990af1c70b
Avoid null album names 2023-07-24 14:45:47 +05:30
Naveen
84cbf902f1
Fix more issues with media player resuming on pause events
https://github.com/SimpleMobileTools/Simple-Music-Player/issues/560
2023-07-24 14:30:56 +05:30
Josep M. Ferrer
cdcbd5a477
Translated using Weblate (Catalan)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/ca/
2023-07-23 13:52:23 +02:00
solokot
b3eac08b86
Translated using Weblate (Russian)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/ru/
2023-07-23 13:52:23 +02:00
Naveen
06962c24bd
Avoid using Java 8 ConcurrentHashmap.newKeySet()
It causes NoSuchMethodError because of https://stackoverflow.com/questions/64506917/using-concurrenthashmapnewkeyset-with-android-corelibrarydesugaring
2023-07-23 16:18:33 +05:30
tibbi
ccc015d1ea update version to 5.17.0 2023-07-22 23:54:43 +02:00
tibbi
c2fc6fc564 updating commons 2023-07-22 23:38:07 +02:00
solokot
2163f19ebf
Translated using Weblate (Russian)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/ru/
2023-07-22 23:28:36 +02:00
Naveen
83b384f461
Avoid triggering onTrackEnded() unnecessarily 2023-07-21 11:34:22 +05:30
Naveen
8bc3f9f7a7
Remove unnecessary migration steps 2023-07-20 21:11:58 +05:30
Naveen
3207600d88
Fix sorting reset when reopening fragment 2023-07-20 20:57:12 +05:30
Naveen
034969f473
Add support for "Sort by date added" 2023-07-20 20:35:16 +05:30
tibbi
c211d0a9ba updating commons and room 2023-07-20 12:16:22 +02:00
Rex_sa
b3a9687787
Translated using Weblate (Arabic)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/ar/
2023-07-20 12:02:12 +02:00
Priit Jõerüüt
9ac03bc21a
Translated using Weblate (Estonian)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/et/
2023-07-20 12:02:12 +02:00
Eric
0f5add401a
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/zh_Hans/
2023-07-20 12:02:11 +02:00
Oğuz Ersen
b768c645f8
Translated using Weblate (Turkish)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/tr/
2023-07-20 12:02:11 +02:00
Guillaume
75e7b980e3
Translated using Weblate (Dutch)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/nl/
2023-07-20 12:02:11 +02:00
VfBFan
80a2c2dd7d
Translated using Weblate (German)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/de/
2023-07-20 12:02:11 +02:00
Tibor Kaputa
8658d9e850
clearing some brackets 2023-07-20 11:39:16 +02:00
Naveen
15b80d13e0
Add more clarifying parenthesis 2023-07-20 15:07:14 +05:30
Naveen
912b16e590
Add clarifying parenthesis 2023-07-20 14:50:25 +05:30
Naveen
ea323863c2
Only close activity if it's not playlist content 2023-07-20 14:39:59 +05:30
Naveen
21e35524ef
Finish activity when there's no tracks left 2023-07-20 14:09:39 +05:30
Naveen
faf701d526
Avoid unnecessary flicker at playlists 2023-07-20 12:18:06 +05:30
Naveen
b1b76b5039
Use audio helper 2023-07-20 12:05:22 +05:30
Naveen
1f01cac0d7
Delete items one by one
Using @Delete can be slow
2023-07-20 12:05:03 +05:30
Naveen
b11edd6a42
Minor readability improvement 2023-07-20 11:00:18 +05:30
Naveen
b60cabdb05
Do UI operation on main thread 2023-07-20 10:56:15 +05:30
Naveen
8b178f1d91
Scan paths not present in media store 2023-07-20 10:43:03 +05:30
Agnieszka C
5d05d10243
Translated using Weblate (Polish)
Currently translated at 100.0% (76 of 76 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/pl/
2023-07-19 17:52:46 +02:00
Josep M. Ferrer
14ab519b56
Translated using Weblate (Catalan)
Currently translated at 100.0% (75 of 75 strings)

Translation: Simple Mobile Tools/Simple Music Player
Translate-URL: https://hosted.weblate.org/projects/simple-mobile-tools/simple-music-player/ca/
2023-07-19 17:52:46 +02:00
Naveen
8438788efd
Use audio helper 2023-07-19 20:50:32 +05:30
Naveen
43d632e8dc
Move deletePlaylists() to audio helper too 2023-07-19 20:45:58 +05:30
Naveen
0cca084051
Minor code improvements 2023-07-19 20:43:49 +05:30
Naveen
7a7f639692
Remove unused function 2023-07-19 20:26:57 +05:30
Naveen
dae2605f8c
Merge master into code_readability_improvements 2023-07-19 20:20:18 +05:30
Tibor Kaputa
3a06029e2b
Merge pull request #550 from Yashraj254/fix_#426_play_song_next
Fix #426 added feature: Play next
2023-07-19 16:38:33 +02:00
Tibor Kaputa
8db604394d
updating a slovak translation 2023-07-19 16:38:09 +02:00
Tibor Kaputa
ba7459e14f
simplifying some code 2023-07-19 16:37:31 +02:00
Naveen
fe583f842f
Minor code improvement 2023-07-19 16:57:40 +05:30
Naveen
4a4b9ed32f
Use NotificationHelper in media scanner too 2023-07-19 16:37:27 +05:30
Naveen
7c19642487
Only show toast when progress is enabled 2023-07-19 16:21:46 +05:30
Naveen
27f4cb901a
Show toast if now items are found 2023-07-19 15:55:06 +05:30
Naveen
f3335c8608
Simplify code using an audio helper 2023-07-19 15:46:06 +05:30
Yashraj254
4ea384da53 removed Play next feature for currently playing track 2023-07-19 05:02:27 +05:30
Naveen
c591e1d6e1
Fix activity destroyed crash 2023-07-19 03:00:51 +05:30
Naveen
64cfc30076
Use default playlist when queue is empty 2023-07-19 02:53:55 +05:30
Yashraj254
95dcdad1aa removed Play next feature for currently playing track 2023-07-19 02:12:30 +05:30
Yashraj254
9cf66fb404 removed Play next feature for artists and albums 2023-07-19 00:27:52 +05:30
Yashraj254
646083d711 resolved all conflicts 2023-07-18 19:55:04 +05:30
Yashraj254
f6c4924308 conflicts resolved 2023-07-18 19:41:49 +05:30
Yashraj254
db62b7198d conflicts resolved 2023-07-18 18:36:26 +05:30
Tibor Kaputa
a4c30e7135
Merge pull request #552 from naveensingh/fix_queue_recycler
Remove unnecessary nested layout
2023-07-18 14:44:15 +02:00
Naveen
146fe62387
Set the navigation bar padding directly on RecyclerView 2023-07-18 14:50:58 +05:30
Tibor Kaputa
3c0a797cf4
Merge pull request #551 from naveensingh/minor_ux_improvement
Use a dot (•) instead of a hyphen (-) to separate track artists, albums
2023-07-17 18:46:46 +02:00