Jelajahi Sumber

New: add music select dialog string to res

liweihao 6 tahun lalu
induk
melakukan
1962cb517e

+ 2 - 2
src/main/java/com/bomostory/sceneeditmodule/screen/movie/music/MusicSelectDialog.kt

@@ -80,8 +80,8 @@ class MusicSelectDialog : DialogFragment() {
 
         override fun getPageTitle(position: Int): CharSequence? {
             when (position) {
-                0 -> return "Library"
-                1 -> return "Device"
+                0 -> return getString(R.string.library)
+                1 -> return getString(R.string.device)
             }
             return super.getPageTitle(position)
         }

+ 4 - 0
src/main/res/values/strings.xml

@@ -60,6 +60,10 @@
     <string name="front_cover_scene_choose_dialog_align_left">Align to left</string>
     <string name="front_cover_scene_choose_dialog_align_right">Align to right</string>
 
+    <!--music select dialog-->
+    <string name="library">Library</string>
+    <string name="device">Device</string>
+
     <!--brush-->
     <string name="pencil">Pencil</string>
     <string name="crayon">Crayon</string>