Wear: Tile cleanup

This commit is contained in:
Milos Kozak 2022-04-23 10:27:53 +02:00
parent fc33d78418
commit 3311a1a6f6
3 changed files with 3 additions and 5 deletions

View file

@ -1,8 +1,7 @@
package info.nightscout.androidaps.tile
const val TAG = "QuickWizard"
class QuickWizardTileService : TileBase() {
override val resourceVersion = "QuickWizardTileService"
override val source = QuickWizardSource
}

View file

@ -4,5 +4,4 @@ class TempTargetTileService : TileBase() {
override val resourceVersion = "TempTargetTileService"
override val source = TempTargetSource
}

View file

@ -289,10 +289,10 @@ abstract class TileBase : TileService() {
}
private fun getWearControl(): WearControl {
if (!sp.contains("wearcontrol")) {
if (!sp.contains(R.string.key_wear_control)) {
return WearControl.NO_DATA
}
val wearControlPref = sp.getBoolean("wearcontrol", false)
val wearControlPref = sp.getBoolean(R.string.key_wear_control, false)
if (wearControlPref) {
return WearControl.ENABLED
}