Lazily start IpNeighbourMonitor in qs tiles
This commit is contained in:
@@ -6,6 +6,7 @@ import android.os.Build
|
||||
import android.os.IBinder
|
||||
import android.service.quicksettings.Tile
|
||||
import android.service.quicksettings.TileService
|
||||
import androidx.annotation.CallSuper
|
||||
import androidx.annotation.RequiresApi
|
||||
|
||||
@RequiresApi(24)
|
||||
@@ -19,6 +20,7 @@ abstract class KillableTileService : TileService(), ServiceConnection {
|
||||
if (Build.VERSION.SDK_INT >= 29) subtitle = value
|
||||
}
|
||||
|
||||
@CallSuper
|
||||
override fun onServiceConnected(name: ComponentName?, service: IBinder?) {
|
||||
if (tapPending) {
|
||||
tapPending = false
|
||||
|
||||
Reference in New Issue
Block a user