Преглед на файлове

New: add music select dialog string to res

liweihao преди 6 години
родител
ревизия
1962cb517e
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 2 2
      src/main/java/com/bomostory/sceneeditmodule/screen/movie/music/MusicSelectDialog.kt
  2. 4 0
      src/main/res/values/strings.xml

+ 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>