Fixed issue in overlay preventing user to go back to call activity
This commit is contained in:
parent
df42812afc
commit
f23c28415a
2 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,7 @@
|
||||||
android:windowSoftInputMode="adjustResize"/>
|
android:windowSoftInputMode="adjustResize"/>
|
||||||
|
|
||||||
<activity android:name=".activities.call.CallActivity"
|
<activity android:name=".activities.call.CallActivity"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleInstance"
|
||||||
android:showWhenLocked="true"
|
android:showWhenLocked="true"
|
||||||
android:supportsPictureInPicture="true" />
|
android:supportsPictureInPicture="true" />
|
||||||
|
|
||||||
|
|
|
@ -399,6 +399,7 @@ class CoreContext(val context: Context, coreConfig: Config) {
|
||||||
}
|
}
|
||||||
MotionEvent.ACTION_UP -> {
|
MotionEvent.ACTION_UP -> {
|
||||||
if (abs(overlayX - params.x) < 5 && abs(overlayY - params.y) < 5) {
|
if (abs(overlayX - params.x) < 5 && abs(overlayY - params.y) < 5) {
|
||||||
|
Log.i("[Core Context] Overlay clicked, go back to call view")
|
||||||
onCallStarted()
|
onCallStarted()
|
||||||
}
|
}
|
||||||
overlayX = params.x.toFloat()
|
overlayX = params.x.toFloat()
|
||||||
|
|
Loading…
Reference in a new issue