Skip to content

Commit 3122c02

Browse files
committed
Fix black screen
1 parent 61e7cd0 commit 3122c02

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

client/android/src/org/amnezia/vpn/AmneziaActivity.kt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,22 @@ class AmneziaActivity : QtActivity() {
268268
override fun onResume() {
269269
super.onResume()
270270
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
271-
window.decorView.postDelayed({
272-
sendTouch(1f, 1f)
273-
}, 100)
271+
window.decorView.apply {
272+
invalidate()
273+
274+
postDelayed({
275+
sendTouch(1f, 1f)
276+
}, 100)
277+
278+
postDelayed({
279+
sendTouch(2f, 2f)
280+
}, 200)
281+
282+
postDelayed({
283+
requestLayout()
284+
invalidate()
285+
}, 250)
286+
}
274287
}
275288
}
276289

0 commit comments

Comments
 (0)