simplifying a Handler creation

This commit is contained in:
Tibor Kaputa 2021-08-16 17:23:16 +02:00 committed by GitHub
parent b2fe66ef4a
commit cfcf5e76c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,7 +292,7 @@ class CallActivity : SimpleActivity() {
if (callDuration > 0) {
runOnUiThread {
call_status_label.text = "${callDuration.getFormattedDuration()} (${getString(R.string.call_ended)})"
Handler(Looper.getMainLooper()).postDelayed({
Handler().postDelayed({
finishAndRemoveTask()
}, 3000)
}