Disable Qt debugger sleep
This commit is contained in:
parent
cb90881f24
commit
fe18472d07
2 changed files with 5 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ android {
|
||||||
namespace = "org.amnezia.vpn"
|
namespace = "org.amnezia.vpn"
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
|
buildConfig = true
|
||||||
viewBinding = true
|
viewBinding = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package org.amnezia.vpn
|
package org.amnezia.vpn
|
||||||
|
|
||||||
|
import android.system.Os
|
||||||
import androidx.camera.camera2.Camera2Config
|
import androidx.camera.camera2.Camera2Config
|
||||||
import androidx.camera.core.CameraSelector
|
import androidx.camera.core.CameraSelector
|
||||||
import androidx.camera.core.CameraXConfig
|
import androidx.camera.core.CameraXConfig
|
||||||
|
|
@ -12,6 +13,9 @@ private const val TAG = "AmneziaApplication"
|
||||||
class AmneziaApplication : QtApplication(), CameraXConfig.Provider {
|
class AmneziaApplication : QtApplication(), CameraXConfig.Provider {
|
||||||
|
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
|
if (BuildConfig.DEBUG) {
|
||||||
|
Os.setenv("QT_ANDROID_DEBUGGER_MAIN_THREAD_SLEEP_MS", "0", true)
|
||||||
|
}
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
Prefs.init(this)
|
Prefs.init(this)
|
||||||
Log.init(this)
|
Log.init(this)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue