Ver código fonte

New: add movie edit activity string to res

liweihao 6 anos atrás
pai
commit
9ae23b302d

+ 3 - 3
src/main/java/com/bomostory/sceneeditmodule/screen/movie/MovieEditActivity.kt

@@ -125,7 +125,7 @@ class MovieEditActivity : AppCompatActivity(),
         setContentView(R.layout.activity_movie_edit)
 
         progressDialog = ProgressDialog(this).apply {
-            setMessage("progressing")
+            setMessage(getString(R.string.progressing))
             setCancelable(false)
         }
 
@@ -546,7 +546,7 @@ class MovieEditActivity : AppCompatActivity(),
         val pd = ProgressDialog(this).apply {
             val t = viewModel.storyPeriodLiveData.value ?: 0
             max = (t / 33).toInt()
-            setMessage("progressing")
+            setMessage(getString(R.string.progressing))
             setOnCancelListener {
                 disposable?.dispose()
                 onMovieSavedListener.onSaved(outputFile)
@@ -600,7 +600,7 @@ class MovieEditActivity : AppCompatActivity(),
                 .subscribe({
                     val progress = (it * 100).toInt()
                     val msg = if (progress >= 100) {
-                        "processing ..."
+                        getString(R.string.progressing)
                     } else {
                         "$progress%"
                     }

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

@@ -66,6 +66,9 @@
     <string name="add_music">Add Music</string>
     <string name="save_and_share">Save&amp;Share</string>
 
+    <!--movie edit activity-->
+    <string name="progressing">Progressing</string>
+
     <!--music edit dialog-->
     <string name="music_length">Music Length: %1$s</string>
     <string name="volume">Volume</string>