This commit is contained in:
lucky 2022-01-30 21:11:48 +03:00
parent 36a5ef0886
commit 1ab4820030
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@
</activity>
<service
android:name=".QSTileService"
android:name=".TileService"
android:icon="@drawable/ic_baseline_airplanemode_active_24"
android:label="@string/tile_label"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"

View File

@ -252,7 +252,7 @@ open class MainActivity : AppCompatActivity() {
setComponentState(RestartReceiver::class.java, value)
private fun setQSTileState(value: Boolean) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N)
setComponentState(QSTileService::class.java, value)
setComponentState(TileService::class.java, value)
}
private fun setNotificationListenerState(value: Boolean) =
setComponentState(NotificationListenerService::class.java, value)

View File

@ -9,7 +9,7 @@ import java.util.concurrent.atomic.AtomicInteger
import kotlin.concurrent.timerTask
@RequiresApi(Build.VERSION_CODES.N)
class QSTileService : TileService() {
class TileService : TileService() {
companion object {
private const val SAFE_DELAY = 2000L
}