|
|
|
|
@ -8,6 +8,10 @@ import android.os.Bundle |
|
|
|
|
import android.view.View |
|
|
|
|
import android.view.ViewAnimationUtils |
|
|
|
|
import kotlinx.android.synthetic.main.activity_new_data.* |
|
|
|
|
import kotlinx.coroutines.Dispatchers |
|
|
|
|
import kotlinx.coroutines.GlobalScope |
|
|
|
|
import kotlinx.coroutines.delay |
|
|
|
|
import kotlinx.coroutines.launch |
|
|
|
|
import net.pokeranalytics.android.ui.activity.components.PokerAnalyticsActivity |
|
|
|
|
import net.pokeranalytics.android.ui.extensions.px |
|
|
|
|
|
|
|
|
|
@ -77,7 +81,10 @@ class NewDataMenuActivity : PokerAnalyticsActivity() { |
|
|
|
|
val intent = Intent() |
|
|
|
|
intent.putExtra(IntentKey.CHOICE.keyName, choice) |
|
|
|
|
setResult(RESULT_OK, intent) |
|
|
|
|
hideMenu(true) |
|
|
|
|
GlobalScope.launch(Dispatchers.Main) { |
|
|
|
|
delay(200) |
|
|
|
|
hideMenu(true) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|