diff options
Diffstat (limited to 'app/src/main/java/com/javispedro/vndroid/ServerRunningNotification.java')
-rw-r--r-- | app/src/main/java/com/javispedro/vndroid/ServerRunningNotification.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/app/src/main/java/com/javispedro/vndroid/ServerRunningNotification.java b/app/src/main/java/com/javispedro/vndroid/ServerRunningNotification.java index 6fcf8ab..224df0e 100644 --- a/app/src/main/java/com/javispedro/vndroid/ServerRunningNotification.java +++ b/app/src/main/java/com/javispedro/vndroid/ServerRunningNotification.java @@ -1,6 +1,5 @@ package com.javispedro.vndroid; -import android.annotation.TargetApi; import android.app.Notification; import android.app.NotificationChannel; import android.app.NotificationManager; @@ -8,11 +7,8 @@ import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.res.Resources; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; -import android.net.Uri; -import android.os.Build; -import android.support.v4.app.NotificationCompat; + +import androidx.core.app.NotificationCompat; /** * Helper class for showing and canceling server running @@ -86,7 +82,7 @@ public class ServerRunningNotification { PendingIntent.getActivity( context, 0, - new Intent(context, SetupActivity.class), + new Intent(context, SettingsActivity.class), PendingIntent.FLAG_UPDATE_CURRENT)) // Example additional actions for this notification. These will @@ -100,7 +96,7 @@ public class ServerRunningNotification { PendingIntent.getForegroundService( context, 0, - new Intent(context, ServerService.class).setAction(ServerService.ACTION_STOP), + new Intent(context, ServerService.class).setAction(ServerService.ACTION_STOP_SERVER), PendingIntent.FLAG_UPDATE_CURRENT)); return builder.build(); |