summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxC3FFF0E <78732474+xC3FFF0E@users.noreply.github.com>2022-11-24 17:53:00 +0100
committerGitHub <noreply@github.com>2022-11-24 17:53:00 +0100
commit74703acbbb4cc9fedb72c0721981720238bb9ab3 (patch)
treeef1e716884f462a2fc5136f990dd3f7c45ea5e10
parentUpdate styles.xml (diff)
parentAdd variable avoiding text repetition (diff)
downloadxManager-74703acbbb4cc9fedb72c0721981720238bb9ab3.tar
xManager-74703acbbb4cc9fedb72c0721981720238bb9ab3.tar.gz
xManager-74703acbbb4cc9fedb72c0721981720238bb9ab3.tar.bz2
xManager-74703acbbb4cc9fedb72c0721981720238bb9ab3.tar.lz
xManager-74703acbbb4cc9fedb72c0721981720238bb9ab3.tar.xz
xManager-74703acbbb4cc9fedb72c0721981720238bb9ab3.tar.zst
xManager-74703acbbb4cc9fedb72c0721981720238bb9ab3.zip
-rw-r--r--app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java
index 17da8bc..7d1b7f3 100644
--- a/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java
+++ b/app/src/main/java/com/xc3fff0e/xmanager/MainActivity.java
@@ -13783,13 +13783,15 @@ 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);
androidx.core.app.NotificationManagerCompat notificationManager = androidx.core.app.NotificationManagerCompat.from(MainActivity.this);