Skip to content

Commit 4490fe7

Browse files
committed
Fix QuickSettings tile for SDK 34+. Update dependencies. Release 1.4.
1 parent 6a1812a commit 4490fe7

3 files changed

Lines changed: 4 additions & 16 deletions

File tree

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ android {
2020
applicationId = "io.bloco.snowflake"
2121
minSdk = 26
2222
targetSdk = 37
23-
versionCode = 15 // Increment by 5 to account for ABI split
24-
versionName = "1.3"
23+
versionCode = 20 // Increment by 5 to account for ABI split
24+
versionName = "1.4"
2525

2626
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2727
androidResources.localeFilters += listOf("en", "fr", "ja", "pt")

app/src/main/java/io/bloco/snowflake/background/SnowflakeTileService.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
package io.bloco.snowflake.background
22

3-
import android.app.PendingIntent
4-
import android.content.Intent
53
import android.os.Build
64
import android.service.quicksettings.Tile
75
import android.service.quicksettings.TileService
86
import io.bloco.snowflake.App
97
import io.bloco.snowflake.R
10-
import io.bloco.snowflake.ui.MainActivity
118
import kotlinx.coroutines.CoroutineScope
129
import kotlinx.coroutines.Dispatchers
1310
import kotlinx.coroutines.cancel
@@ -29,15 +26,6 @@ class SnowflakeTileService : TileService() {
2926
this.coroutineScope = coroutineScope
3027

3128
qsTile.label = getString(R.string.app_name)
32-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
33-
qsTile.activityLaunchForClick = PendingIntent.getActivity(
34-
applicationContext,
35-
0,
36-
Intent(applicationContext, MainActivity::class.java)
37-
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK),
38-
PendingIntent.FLAG_IMMUTABLE,
39-
)
40-
}
4129
qsTile.updateTile()
4230

4331
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
2-
agp = "9.2.0"
3-
kotlin = "2.3.20"
2+
agp = "9.2.1"
3+
kotlin = "2.3.21"
44
coreKtx = "1.18.0"
55
junit = "4.13.2"
66
junitVersion = "1.3.0"

0 commit comments

Comments
 (0)