From 8d13d39f86c2629b65eada11f0c4cd87790ab35a Mon Sep 17 00:00:00 2001 From: rik Date: Tue, 8 Nov 2022 08:23:53 +0100 Subject: Add BigText style notification --- app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') diff --git a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java index 17da8bc..86534be 100644 --- a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java +++ b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java @@ -13789,7 +13789,7 @@ public class MainActivity extends AppCompatActivity { .setContentTitle("IMPORTANT REMINDER") .setContentText("After installing and logging-in, make sure to reopen or force close the Spotify app to enable the mod features.") .setPriority(androidx.core.app.NotificationCompat.PRIORITY_MAX) - + .setStyle(NotificationCompat.BigTextStyle().bigText(contentText)) .setAutoCancel(true); androidx.core.app.NotificationManagerCompat notificationManager = androidx.core.app.NotificationManagerCompat.from(MainActivity.this); -- cgit v1.2.3 From 0f7aebdf1d874978be874973f57d3ba763ddfbde Mon Sep 17 00:00:00 2001 From: rik Date: Tue, 8 Nov 2022 08:28:48 +0100 Subject: Add variable avoiding text repetition --- app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/src') diff --git a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java index 86534be..7d1b7f3 100644 --- a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java +++ b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java @@ -13783,11 +13783,13 @@ public class MainActivity extends AppCompatActivity { public void _Reminder() { try { + val contentText = "After installing and logging-in, make sure to reopen or force close the Spotify app to enable the mod features." + androidx.core.app.NotificationCompat.Builder builder = new androidx.core.app.NotificationCompat.Builder(MainActivity.this, "id 1") .setSmallIcon(R.drawable.icon_notification) .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)) .setContentTitle("IMPORTANT REMINDER") - .setContentText("After installing and logging-in, make sure to reopen or force close the Spotify app to enable the mod features.") + .setContentText(contentText) .setPriority(androidx.core.app.NotificationCompat.PRIORITY_MAX) .setStyle(NotificationCompat.BigTextStyle().bigText(contentText)) .setAutoCancel(true); -- cgit v1.2.3