From 7d445323204331d3d73a48255e8481ae58dee973 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 4 Jul 2018 11:38:51 +0200 Subject: [PATCH] use black statusbar at panorama activity if selected so --- .../gallery/activities/PanoramaActivity.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PanoramaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PanoramaActivity.kt index 8587ec957..576a5c792 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PanoramaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PanoramaActivity.kt @@ -3,6 +3,7 @@ package com.simplemobiletools.gallery.activities import android.content.res.Configuration import android.graphics.Bitmap import android.graphics.BitmapFactory +import android.graphics.Color import android.os.Bundle import android.view.View import android.view.Window @@ -14,10 +15,7 @@ import com.simplemobiletools.commons.extensions.showErrorToast import com.simplemobiletools.commons.extensions.toast import com.simplemobiletools.commons.helpers.PERMISSION_WRITE_STORAGE import com.simplemobiletools.gallery.R -import com.simplemobiletools.gallery.extensions.hideSystemUI -import com.simplemobiletools.gallery.extensions.navigationBarHeight -import com.simplemobiletools.gallery.extensions.navigationBarWidth -import com.simplemobiletools.gallery.extensions.showSystemUI +import com.simplemobiletools.gallery.extensions.* import com.simplemobiletools.gallery.helpers.PATH import kotlinx.android.synthetic.main.activity_panorama.* @@ -60,6 +58,9 @@ open class PanoramaActivity : SimpleActivity() { super.onResume() panorama_view.resumeRendering() isRendering = true + if (config.blackBackground) { + updateStatusbarColor(Color.BLACK) + } } override fun onPause() {