Lazily start IpNeighbourMonitor in qs tiles

This commit is contained in:
Mygod
2020-06-20 23:43:20 -04:00
parent 72d79ed822
commit 490f6c5115
4 changed files with 21 additions and 2 deletions

View File

@@ -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