回答編集履歴
1
mediaPlayer1とmediaPlayer2の再生処理に関してリファクタ
test
CHANGED
@@ -166,13 +166,7 @@
|
|
166
166
|
|
167
167
|
TEXT2_ID -> {
|
168
168
|
|
169
|
-
mediaPlayer2 =
|
170
|
-
|
171
|
-
|
169
|
+
mediaPlayer2 = MediaPlayer.create(this@MainActivity, (Uri.fromFile(file2)))
|
172
|
-
|
173
|
-
start()
|
174
|
-
|
175
|
-
}
|
176
170
|
|
177
171
|
|
178
172
|
|
@@ -186,6 +180,10 @@
|
|
186
180
|
|
187
181
|
}
|
188
182
|
|
183
|
+
|
184
|
+
|
185
|
+
mediaPlayer2!!.start()
|
186
|
+
|
189
187
|
}
|
190
188
|
|
191
189
|
}
|