diff --git a/app/build.gradle b/app/build.gradle index a84a3f4..1e817d3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -55,7 +55,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:c615eda325' + implementation 'com.github.SimpleMobileTools:Simple-Commons:820461691b' implementation 'org.greenrobot:eventbus:3.2.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.1' } diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt index 77eeb3d..06594e5 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/BrightDisplayActivity.kt @@ -13,10 +13,12 @@ import kotlinx.android.synthetic.main.activity_bright_display.* class BrightDisplayActivity : SimpleActivity() { override fun onCreate(savedInstanceState: Bundle?) { - window.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD or + window.addFlags( + WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD or WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED or WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON or - WindowManager.LayoutParams.FLAG_FULLSCREEN) + WindowManager.LayoutParams.FLAG_FULLSCREEN + ) useDynamicTheme = false super.onCreate(savedInstanceState) diff --git a/app/src/main/res/layout/activity_bright_display.xml b/app/src/main/res/layout/activity_bright_display.xml index 0552071..2a31099 100644 --- a/app/src/main/res/layout/activity_bright_display.xml +++ b/app/src/main/res/layout/activity_bright_display.xml @@ -10,15 +10,13 @@ android:layout_height="match_parent" android:background="@android:color/white" /> - + android:text="@string/change_color" /> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 895ee8d..6d59d17 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,6 +1,6 @@ -