New icon for temp hotspot
This commit is contained in:
@@ -91,7 +91,7 @@
|
|||||||
android:name=".manage.LocalOnlyHotspotTileService"
|
android:name=".manage.LocalOnlyHotspotTileService"
|
||||||
android:directBootAware="true"
|
android:directBootAware="true"
|
||||||
android:enabled="@bool/api_ge_26"
|
android:enabled="@bool/api_ge_26"
|
||||||
android:icon="@drawable/ic_device_wifi_tethering"
|
android:icon="@drawable/ic_action_perm_scan_wifi"
|
||||||
android:label="@string/tethering_temp_hotspot"
|
android:label="@string/tethering_temp_hotspot"
|
||||||
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|||||||
@@ -75,10 +75,7 @@ class LocalOnlyHotspotManager(private val parent: TetheringFragment) : Manager()
|
|||||||
private inner class Data : be.mygod.vpnhotspot.manage.Data() {
|
private inner class Data : be.mygod.vpnhotspot.manage.Data() {
|
||||||
private val lookup: Map<String, NetworkInterface> get() = parent.ifaceLookup
|
private val lookup: Map<String, NetworkInterface> get() = parent.ifaceLookup
|
||||||
|
|
||||||
override val icon: Int get() {
|
override val icon get() = R.drawable.ic_action_perm_scan_wifi
|
||||||
val iface = binder?.iface
|
|
||||||
return (if (iface.isNullOrBlank()) TetherType.WIFI else TetherType.ofInterface(iface)).icon
|
|
||||||
}
|
|
||||||
override val title: CharSequence get() {
|
override val title: CharSequence get() {
|
||||||
val configuration = binder?.configuration ?: return parent.getString(R.string.tethering_temp_hotspot)
|
val configuration = binder?.configuration ?: return parent.getString(R.string.tethering_temp_hotspot)
|
||||||
return SpannableStringBuilder("${configuration.SSID} - ").apply {
|
return SpannableStringBuilder("${configuration.SSID} - ").apply {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import be.mygod.vpnhotspot.util.stopAndUnbind
|
|||||||
|
|
||||||
@RequiresApi(26)
|
@RequiresApi(26)
|
||||||
class LocalOnlyHotspotTileService : KillableTileService() {
|
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
|
private var binder: LocalOnlyHotspotService.Binder? = null
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24.0"
|
||||||
|
android:viewportHeight="24.0">
|
||||||
|
<path
|
||||||
|
android:fillColor="#FF000000"
|
||||||
|
android:pathData="M12,3C6.95,3 3.15,4.85 0,7.23L12,22 24,7.25C20.85,4.87 17.05,3 12,3zM13,16h-2v-6h2v6zM11,8L11,6h2v2h-2z"/>
|
||||||
|
</vector>
|
||||||
Reference in New Issue
Block a user