From b9a593d6b0418501c908d5d7fa84c18e2aecdff9 Mon Sep 17 00:00:00 2001 From: mcc Date: Sun, 10 Dec 2023 18:13:46 -0500 Subject: [PATCH] ktLint fix --- app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt b/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt index a414ac994..f0943264c 100644 --- a/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt +++ b/app/src/main/java/com/keylesspalace/tusky/ViewMediaActivity.kt @@ -158,8 +158,9 @@ class ViewMediaActivity : BaseActivity(), HasAndroidInjector, ViewImageFragment. }) // Prevent this activity from dimming or sleeping the screen if it is playing video or audio - if (attachments!![binding.viewPager.currentItem].attachment.type != Attachment.Type.IMAGE) + if (attachments!![binding.viewPager.currentItem].attachment.type != Attachment.Type.IMAGE) { window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON) + } } override fun onCreateOptionsMenu(menu: Menu): Boolean {