mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-19 13:00:37 +01:00
Merge pull request #216 from p0ppy-fl0w3r/master
FR #200 Remove dialer from recent apps after hanging up a call
This commit is contained in:
commit
6c24bd400d
@ -89,6 +89,7 @@
|
||||
<activity
|
||||
android:name=".activities.CallActivity"
|
||||
android:label="@string/ongoing_call"
|
||||
android:excludeFromRecents="true"
|
||||
android:screenOrientation="portrait"
|
||||
android:showOnLockScreen="true" />
|
||||
|
||||
|
@ -9,6 +9,7 @@ import android.media.AudioManager
|
||||
import android.net.Uri
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.os.PowerManager
|
||||
import android.provider.MediaStore
|
||||
import android.telecom.Call
|
||||
@ -278,7 +279,7 @@ class CallActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
if (isCallEnded) {
|
||||
finish()
|
||||
finishAndRemoveTask()
|
||||
return
|
||||
}
|
||||
|
||||
@ -292,7 +293,7 @@ class CallActivity : SimpleActivity() {
|
||||
runOnUiThread {
|
||||
call_status_label.text = "${callDuration.getFormattedDuration()} (${getString(R.string.call_ended)})"
|
||||
Handler().postDelayed({
|
||||
finish()
|
||||
finishAndRemoveTask()
|
||||
}, 3000)
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user