소스 검색

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>