Search in sources :

Example 1 with ServiceNotificationManager

use of me.devsaki.hentoid.util.notification.ServiceNotificationManager in project Hentoid by avluis.

the class API29MigrationService method onCreate.

@Override
public void onCreate() {
    super.onCreate();
    notificationManager = new ServiceNotificationManager(this, NOTIFICATION_ID);
    notificationManager.cancel();
    notificationManager.startForeground(new ImportStartNotification());
    Timber.w("Service created");
}
Also used : ImportStartNotification(me.devsaki.hentoid.notification.import_.ImportStartNotification) ServiceNotificationManager(me.devsaki.hentoid.util.notification.ServiceNotificationManager)

Example 2 with ServiceNotificationManager

use of me.devsaki.hentoid.util.notification.ServiceNotificationManager in project Hentoid by avluis.

the class UpdateCheckService method onCreate.

@Override
public void onCreate() {
    notificationManager = new ServiceNotificationManager(this, NOTIFICATION_ID);
    notificationManager.startForeground(new UpdateCheckNotification());
    Timber.w("Service created");
}
Also used : UpdateCheckNotification(me.devsaki.hentoid.notification.update.UpdateCheckNotification) ServiceNotificationManager(me.devsaki.hentoid.util.notification.ServiceNotificationManager)

Aggregations

ServiceNotificationManager (me.devsaki.hentoid.util.notification.ServiceNotificationManager)2 ImportStartNotification (me.devsaki.hentoid.notification.import_.ImportStartNotification)1 UpdateCheckNotification (me.devsaki.hentoid.notification.update.UpdateCheckNotification)1