Fix possible race condition caused crash

This commit is contained in:
Mygod
2019-01-03 17:00:31 +08:00
parent 2c28e1afec
commit 32c5973cdc

View File

@@ -55,7 +55,7 @@ class LocalOnlyHotspotTileService : KillableTileService() {
}
else -> {
state = Tile.STATE_ACTIVE
label = service.configuration!!.SSID
label = service.configuration?.SSID ?: getText(R.string.tethering_temp_hotspot)
}
}
updateTile()