mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-19 06:48:00 +01:00
use black statusbar at panorama activity if selected so
This commit is contained in:
parent
fc1d17397c
commit
7d44532320
1 changed files with 5 additions and 4 deletions
|
@ -3,6 +3,7 @@ package com.simplemobiletools.gallery.activities
|
||||||
import android.content.res.Configuration
|
import android.content.res.Configuration
|
||||||
import android.graphics.Bitmap
|
import android.graphics.Bitmap
|
||||||
import android.graphics.BitmapFactory
|
import android.graphics.BitmapFactory
|
||||||
|
import android.graphics.Color
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.Window
|
import android.view.Window
|
||||||
|
@ -14,10 +15,7 @@ import com.simplemobiletools.commons.extensions.showErrorToast
|
||||||
import com.simplemobiletools.commons.extensions.toast
|
import com.simplemobiletools.commons.extensions.toast
|
||||||
import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE
|
import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE
|
||||||
import com.simplemobiletools.gallery.R
|
import com.simplemobiletools.gallery.R
|
||||||
import com.simplemobiletools.gallery.extensions.hideSystemUI
|
import com.simplemobiletools.gallery.extensions.*
|
||||||
import com.simplemobiletools.gallery.extensions.navigationBarHeight
|
|
||||||
import com.simplemobiletools.gallery.extensions.navigationBarWidth
|
|
||||||
import com.simplemobiletools.gallery.extensions.showSystemUI
|
|
||||||
import com.simplemobiletools.gallery.helpers.PATH
|
import com.simplemobiletools.gallery.helpers.PATH
|
||||||
import kotlinx.android.synthetic.main.activity_panorama.*
|
import kotlinx.android.synthetic.main.activity_panorama.*
|
||||||
|
|
||||||
|
@ -60,6 +58,9 @@ open class PanoramaActivity : SimpleActivity() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
panorama_view.resumeRendering()
|
panorama_view.resumeRendering()
|
||||||
isRendering = true
|
isRendering = true
|
||||||
|
if (config.blackBackground) {
|
||||||
|
updateStatusbarColor(Color.BLACK)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
|
|
Loading…
Reference in a new issue