Search code examples
androidandroid-serviceandroid-app-quick-setting

Close Quick Settings Panel after click the Quick Setting tile in android


My app has a Tile Service.

After clicked on that tile, the onClick function run perfectly fine, but I wanted to close the quick setting panel, is there anyway to achive that goal?

QS panel image


Solution

  • You can use startActivityAndCollapse instead of startActivity in your onClick function in TileService which will collapse the QS panel.