Wear: Tile cleanup
This commit is contained in:
parent
fc33d78418
commit
3311a1a6f6
|
@ -1,8 +1,7 @@
|
|||
package info.nightscout.androidaps.tile
|
||||
|
||||
const val TAG = "QuickWizard"
|
||||
|
||||
class QuickWizardTileService : TileBase() {
|
||||
|
||||
override val resourceVersion = "QuickWizardTileService"
|
||||
override val source = QuickWizardSource
|
||||
}
|
||||
|
|
|
@ -4,5 +4,4 @@ class TempTargetTileService : TileBase() {
|
|||
|
||||
override val resourceVersion = "TempTargetTileService"
|
||||
override val source = TempTargetSource
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue