Nagram/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoXPushService.kt

23 lines
575 B
Kotlin
Raw Normal View History

2020-06-25 15:25:17 +00:00
package tw.nekomimi.nekogram
import android.annotation.SuppressLint
import android.os.Build
import android.service.notification.NotificationListenerService
import androidx.annotation.RequiresApi
import org.telegram.messenger.ApplicationLoader
import org.telegram.messenger.KeepAliveJob
@SuppressLint("OverrideAbstract")
@RequiresApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
class NekoXPushService : NotificationListenerService() {
override fun onCreate() {
super.onCreate()
ApplicationLoader.postInitApplication()
KeepAliveJob.startJob()
}
}