New icon for temp hotspot

This commit is contained in:
Mygod
2019-04-03 15:56:54 +08:00
parent 6934e2ea52
commit 10a2b777f2
4 changed files with 12 additions and 6 deletions

View File

@@ -75,10 +75,7 @@ class LocalOnlyHotspotManager(private val parent: TetheringFragment) : Manager()
private inner class Data : be.mygod.vpnhotspot.manage.Data() {
private val lookup: Map<String, NetworkInterface> get() = parent.ifaceLookup
override val icon: Int get() {
val iface = binder?.iface
return (if (iface.isNullOrBlank()) TetherType.WIFI else TetherType.ofInterface(iface)).icon
}
override val icon get() = R.drawable.ic_action_perm_scan_wifi
override val title: CharSequence get() {
val configuration = binder?.configuration ?: return parent.getString(R.string.tethering_temp_hotspot)
return SpannableStringBuilder("${configuration.SSID} - ").apply {

View File

@@ -15,7 +15,7 @@ import be.mygod.vpnhotspot.util.stopAndUnbind
@RequiresApi(26)
class LocalOnlyHotspotTileService : KillableTileService() {
private val tile by lazy { Icon.createWithResource(application, R.drawable.ic_device_wifi_tethering) }
private val tile by lazy { Icon.createWithResource(application, R.drawable.ic_action_perm_scan_wifi) }
private var binder: LocalOnlyHotspotService.Binder? = null