mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
simplifying a Handler creation
This commit is contained in:
@ -292,7 +292,7 @@ class CallActivity : SimpleActivity() {
|
|||||||
if (callDuration > 0) {
|
if (callDuration > 0) {
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
call_status_label.text = "${callDuration.getFormattedDuration()} (${getString(R.string.call_ended)})"
|
call_status_label.text = "${callDuration.getFormattedDuration()} (${getString(R.string.call_ended)})"
|
||||||
Handler(Looper.getMainLooper()).postDelayed({
|
Handler().postDelayed({
|
||||||
finishAndRemoveTask()
|
finishAndRemoveTask()
|
||||||
}, 3000)
|
}, 3000)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user