ktLint fix
This commit is contained in:
parent
90f35ed009
commit
b9a593d6b0
|
@ -158,9 +158,10 @@ class ViewMediaActivity : BaseActivity(), HasAndroidInjector, ViewImageFragment.
|
||||||
})
|
})
|
||||||
|
|
||||||
// Prevent this activity from dimming or sleeping the screen if it is playing video or audio
|
// 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)
|
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||||
menuInflater.inflate(R.menu.view_media_toolbar, menu)
|
menuInflater.inflate(R.menu.view_media_toolbar, menu)
|
||||||
|
|
Loading…
Reference in New Issue