Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Fix Quick Settings tile crash on pre-Android 10 devices

ExtendedGuru4883512169374fa5
diff --git a/mobile/apps/auth/android/app/src/main/kotlin/io/ente/authenticator/QuickTileService.kt b/mobile/apps/auth/android/app/src/main/kotlin/io/ente/authenticator/QuickTileService.kt
index 0f7eb3e438..4ac6258d17 100644
--- a/mobile/apps/auth/android/app/src/main/kotlin/io/ente/authenticator/QuickTileService.kt
+++ b/mobile/apps/auth/android/app/src/main/kotlin/io/ente/authenticator/QuickTileService.kt
@@ -11,6 +11,7 @@ import androidx.annotation.RequiresApi
class QuickTileService : TileService() {
override fun onStartListening() {
+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) return
val tile = qsTile
tile.subtitle = "Open Ente Auth"
tile.updateTile()