From 53c8ea1531534e46f626cfcd5f069e5d711f0881 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 20 May 2017 23:19:51 +0200 Subject: [PATCH] use dark background if selected so at photovideoactivity too --- .../gallery/activities/PhotoVideoActivity.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt index 098d958cf..06c4d890a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/PhotoVideoActivity.kt @@ -4,6 +4,8 @@ import android.Manifest import android.content.Intent import android.content.pm.PackageManager import android.database.Cursor +import android.graphics.Color +import android.graphics.drawable.ColorDrawable import android.net.Uri import android.os.Bundle import android.provider.MediaStore @@ -21,6 +23,7 @@ import com.simplemobiletools.gallery.fragments.VideoFragment import com.simplemobiletools.gallery.fragments.ViewPagerFragment import com.simplemobiletools.gallery.helpers.MEDIUM import com.simplemobiletools.gallery.models.Medium +import kotlinx.android.synthetic.main.fragment_holder.* import java.io.File open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentListener { @@ -77,6 +80,9 @@ open class PhotoVideoActivity : SimpleActivity(), ViewPagerFragment.FragmentList supportFragmentManager.beginTransaction().replace(R.id.fragment_holder, mFragment).commit() } + if (config.darkBackground) + fragment_holder.background = ColorDrawable(Color.BLACK) + val proj = arrayOf(MediaStore.Images.Media.TITLE) var cursor: Cursor? = null try {