feat: added closing card code after pause
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -12,8 +12,8 @@ android {
|
|||||||
applicationId = "ru.omni_devel.cards"
|
applicationId = "ru.omni_devel.cards"
|
||||||
minSdk = 30
|
minSdk = 30
|
||||||
targetSdk = 36
|
targetSdk = 36
|
||||||
versionCode = 61 // 1 at end for WearOS
|
versionCode = 71 // 1 at end for WearOS
|
||||||
versionName = "1.2.1"
|
versionName = "1.3.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -62,6 +62,8 @@ class ShowCardActivity : ComponentActivity() {
|
|||||||
super.onPause()
|
super.onPause()
|
||||||
|
|
||||||
setBrightness(WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_NONE)
|
setBrightness(WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_NONE)
|
||||||
|
|
||||||
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setBrightness(level: Float) {
|
private fun setBrightness(level: Float) {
|
||||||
|
|||||||
Reference in New Issue
Block a user