2023-06-06 13:13:54 -07:00
|
|
|
package com.anthonyla.paperize
|
2023-05-31 13:56:14 -07:00
|
|
|
|
|
|
|
|
import android.app.Application
|
2024-04-26 10:36:45 -07:00
|
|
|
import android.app.NotificationChannel
|
|
|
|
|
import android.app.NotificationManager
|
|
|
|
|
import android.content.Context
|
2023-05-31 13:56:14 -07:00
|
|
|
import dagger.hilt.android.HiltAndroidApp
|
|
|
|
|
|
2024-04-07 14:48:26 -07:00
|
|
|
/**
|
|
|
|
|
* Application class for Hilt
|
|
|
|
|
*/
|
2023-05-31 13:56:14 -07:00
|
|
|
@HiltAndroidApp
|
2024-04-22 21:33:36 -07:00
|
|
|
class App: Application() {
|
|
|
|
|
override fun onCreate() {
|
|
|
|
|
super.onCreate()
|
2024-04-28 23:39:10 -07:00
|
|
|
val channel = NotificationChannel("wallpaper_service_channel", "Paperize", NotificationManager.IMPORTANCE_LOW)
|
2024-04-26 10:36:45 -07:00
|
|
|
val notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
|
|
|
|
notificationManager.createNotificationChannel(channel)
|
2024-04-22 21:33:36 -07:00
|
|
|
}
|
2023-05-31 13:56:14 -07:00
|
|
|
}
|