Fixed screen turning off during call

This commit is contained in:
Sylvain Berfini 2020-12-17 10:46:06 +01:00
parent dd8e8d57bb
commit 111bcd092f
4 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,6 @@ import android.Manifest
import android.annotation.TargetApi
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.WindowManager
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.ViewModelProvider
import org.linphone.LinphoneApplication.Companion.coreContext
@ -45,8 +44,6 @@ class OutgoingCallActivity : ProximitySensorActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
binding = DataBindingUtil.setContentView(this, R.layout.call_outgoing_activity)
binding.lifecycleOwner = this

View file

@ -16,6 +16,7 @@
android:id="@+id/stats_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"
android:background="?attr/backgroundColor">
<RelativeLayout

View file

@ -13,6 +13,7 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"
android:background="?attr/backgroundColor">
<androidx.fragment.app.FragmentContainerView

View file

@ -16,6 +16,7 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"
android:background="?attr/backgroundColor">
<androidx.fragment.app.FragmentContainerView