|
@@ -20,6 +20,7 @@ class MainActivity : AppCompatActivity() {
|
|
val find = {
|
|
val find = {
|
|
if (moviesRemain == 0) {
|
|
if (moviesRemain == 0) {
|
|
text.text = getString(R.string.end)
|
|
text.text = getString(R.string.end)
|
|
|
|
+ text.setTextColor(getColor(R.color.red))
|
|
} else {
|
|
} else {
|
|
val id = floor(Math.random() * moviesRemain).toInt()
|
|
val id = floor(Math.random() * moviesRemain).toInt()
|
|
|
|
|