From 9570b9d42a71842bd0fab03025e2da85f2142496 Mon Sep 17 00:00:00 2001 From: David Sn Date: Fri, 16 Oct 2020 10:51:26 +0200 Subject: [PATCH] Change activity to MainActivity for notifications Signed-off-by: David Sn --- .../de/codebucket/mkkm/service/TicketExpiryCheckService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/de/codebucket/mkkm/service/TicketExpiryCheckService.java b/app/src/main/java/de/codebucket/mkkm/service/TicketExpiryCheckService.java index 78330c6..1317d5f 100644 --- a/app/src/main/java/de/codebucket/mkkm/service/TicketExpiryCheckService.java +++ b/app/src/main/java/de/codebucket/mkkm/service/TicketExpiryCheckService.java @@ -21,7 +21,7 @@ import de.codebucket.mkkm.MobileKKM; import de.codebucket.mkkm.R; -import de.codebucket.mkkm.activity.SplashActivity; +import de.codebucket.mkkm.activity.MainActivity; import de.codebucket.mkkm.database.model.Ticket; import de.codebucket.mkkm.database.model.TicketDao; import de.codebucket.mkkm.login.AccountUtils; @@ -56,7 +56,7 @@ public void run() { continue; } - Intent intent = new Intent(MobileKKM.getInstance(), SplashActivity.class); + Intent intent = new Intent(MobileKKM.getInstance(), MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP); NotificationCompat.Builder builder = new NotificationCompat.Builder(MobileKKM.getInstance(), Const.ID.EXPIRY_NOTIFICATION_CHANNEL);