File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
app/src/main/kotlin/com/simplemobiletools/flashlight Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,8 @@ class MainActivity : SimpleActivity() {
248248 window.addFlags(WindowManager .LayoutParams .FLAG_KEEP_SCREEN_ON )
249249 mIsFlashlightOn = true
250250
251+ sos_btn.setTextColor(getContrastColor())
252+
251253 changeIconColor(getContrastColor(), stroboscope_btn)
252254 stroboscope_bar.beInvisible()
253255 }
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ class MyCameraImpl(val context: Context) {
5757 }
5858
5959 fun toggleStroboscope (): Boolean {
60+ if (isSOSRunning) {
61+ stopSOS()
62+ return false
63+ }
64+
6065 isStroboSOS = false
6166 if (! isStroboscopeRunning) {
6267 disableFlashlight()
@@ -81,6 +86,11 @@ class MyCameraImpl(val context: Context) {
8186 }
8287
8388 fun toggleSOS (): Boolean {
89+ if (isStroboscopeRunning) {
90+ stopStroboscope()
91+ return false
92+ }
93+
8494 isStroboSOS = true
8595 if (isStroboscopeRunning) {
8696 stopStroboscope()
You can’t perform that action at this time.
0 commit comments