File tree Expand file tree Collapse file tree
app/src/main/kotlin/com/simplemobiletools/flashlight/activities Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import android.content.pm.ActivityInfo
44import android.graphics.drawable.ColorDrawable
55import android.os.Bundle
66import android.view.WindowManager
7+ import android.widget.RelativeLayout
78import com.simplemobiletools.commons.dialogs.ColorPickerDialog
89import com.simplemobiletools.commons.extensions.*
910import com.simplemobiletools.flashlight.databinding.ActivityBrightDisplayBinding
@@ -58,6 +59,8 @@ class BrightDisplayActivity : SimpleActivity() {
5859 window.addFlags(WindowManager .LayoutParams .FLAG_KEEP_SCREEN_ON )
5960 toggleBrightness(true )
6061 requestedOrientation = if (config.forcePortraitMode) ActivityInfo .SCREEN_ORIENTATION_PORTRAIT else ActivityInfo .SCREEN_ORIENTATION_SENSOR
62+
63+ (binding.sleepTimerHolder.layoutParams as RelativeLayout .LayoutParams ).bottomMargin = navigationBarHeight
6164 }
6265
6366 override fun onPause () {
You can’t perform that action at this time.
0 commit comments