music: introduce backend system
Move out the MediaStoreCompat interface into a full interface called Backend. In preparation for direct metadata parsing, it would be useful to create some kind of object system to properly handle the capabilities of each metadata indexing mode. Backend fulfills that by allowing each object to implement their own query and then loading routine. This system is designed somewhat strangely. This is firstly because the ExoPlayer metadata backend will have to plug in to the original MediaStore backend, so making methods more granular allows the ExoPlayer backend to avoid some of the stupid inefficiencies from the actual MediaStore backend, such as the genre loading process. We also want to separate the steps of loading music in order to more adequately show the current loading process to the user in a future change.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
|
||||
<!-- Info namespace | App labels -->
|
||||
<string name="info_app_desc">一款简洁、克制的 Android 音乐播放器。</string>
|
||||
<string name="info_channel_name">音乐播放</string>
|
||||
<string name="info_playback_channel_name">音乐播放</string>
|
||||
<string name="info_widget_desc">查看并控制音乐播放</string>
|
||||
|
||||
<!-- Label Namespace | Static Labels -->
|
||||
|
||||
Reference in New Issue
Block a user