Skip to content

armgit / ente

Public Imported from GitHub
0

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

[auth] Adjust Quick Settings tile appearance

ExtendedGuru48835821a6f6a740
diff --git a/mobile/apps/auth/android/app/src/main/AndroidManifest.xml b/mobile/apps/auth/android/app/src/main/AndroidManifest.xml
index 3953727aea..97c39138bf 100644
--- a/mobile/apps/auth/android/app/src/main/AndroidManifest.xml
+++ b/mobile/apps/auth/android/app/src/main/AndroidManifest.xml
@@ -51,6 +51,9 @@
android:exported="true"
tools:targetApi="24">
+ <meta-data android:name="android.service.quicksettings.TOGGLEABLE_TILE"
+ android:value="true" />
+
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
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 5d652ed267..0f7eb3e438 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
@@ -10,6 +10,12 @@ import androidx.annotation.RequiresApi
@RequiresApi(Build.VERSION_CODES.N)
class QuickTileService : TileService() {
+ override fun onStartListening() {
+ val tile = qsTile
+ tile.subtitle = "Open Ente Auth"
+ tile.updateTile()
+ }
+
@SuppressLint("StartActivityAndCollapseDeprecated")
override fun onClick() {
val intent = Intent(applicationContext, MainActivity::class.java).apply {