0

enter code hereI have a TileService Class. I want to remove the tile from Quick Setting programmatically. I have used setComponentEnabledSetting(TileService, DISABLE, 0); but tile still shows inside Quick Settings and updates once I click the edit button inside Quick Settings.

Is there a way I can refresh Quick Settings so my Tile gets removed?

I have tried setting the Tile to STATE_UNAVAILABLE inside.

onStartListening() {
   if (removeTile) {
    tile.setState(STATE_UNAVAILABLE)
    tile.updateState()
   setComponentEnabledSetting(TileService, DISABLE, 0)
 return
}
}

and calling setComponentEnabledSetting(TileService, DISABLE, 0) afterwards. The Tile does not get updated.

tile = getQsTile();

0 Answers0