Fix notification content visibility

This commit is contained in:
Oizaro 2020-09-18 17:26:10 +02:00
parent 93ee6dd923
commit 8585f2ffc7
4 changed files with 7 additions and 9 deletions

View File

@ -1,5 +1,6 @@
package org.microg.gms.common;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
@ -74,9 +75,9 @@ public class StatusNotification {
.setOngoing(true)
.setContentIntent(pendingIntent)
.setSmallIcon(R.drawable.ic_foreground_notification)
.setSubText(context.getResources().getString(R.string.notification_service_title))
.setContentTitle(context.getResources().getString(R.string.notification_service_content))
.setContentText(context.getResources().getString(R.string.notification_service_subcontent));
.setStyle(new NotificationCompat.BigTextStyle()
.setBigContentTitle(context.getResources().getString(R.string.notification_service_title))
.bigText(context.getResources().getString(R.string.notification_service_content)));
NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
manager.notify(notificationID, notification.build());

View File

@ -6,8 +6,7 @@
<string name="notification_service_name">Pengecualian Menghemat Baterai</string>
<string name="notification_service_title">Kecualikan microG dari menghemat baterai</string>
<string name="notification_service_content">Untuk menghapus notifikasi ini tutup Vanced</string>
<string name="notification_service_subcontent">aplikasi dari pengelola tugas lalu buka ulang</string>
<string name="notification_service_content">Untuk menghapus notifikasi ini tutup Vanced aplikasi dari pengelola tugas lalu buka ulang</string>
<string name="just_a_sec">Tunggu sebentar…</string>
<string name="ask_permission_tos">Dengan melanjutkan, anda mengizinkan aplikasi ini dan Google untuk menggunakan informasi anda sesuai dengan persyaratan layanan masing-masing dan kebijakan privasi.</string>

View File

@ -6,8 +6,7 @@
<string name="notification_service_name">Esclusione Risparmio Energetico</string>
<string name="notification_service_title">Escludi i microg dal risparmio energetico</string>
<string name="notification_service_content">Per rimuovere questa notifica chiudi l\'app Vanced</string>
<string name="notification_service_subcontent">dalla lista delle app in secondo piano e riaprila</string>
<string name="notification_service_content">Per rimuovere questa notifica chiudi l\'app Vanced dalla lista delle app in secondo piano e riaprila</string>
<string name="just_a_sec">Solo un secondo…</string>
<string name="ask_permission_tos">Continuando, consentirai a quest\'app e a Google di utilizzare le tue informazioni in conformità con i rispettivi termini di servizio e politiche sulla riservatezza.</string>

View File

@ -20,8 +20,7 @@
<string name="notification_service_name">Battery Saving Exclusion</string>
<string name="notification_service_title">Exclude microG from battery saving</string>
<string name="notification_service_content">To remove this notification close Vanced</string>
<string name="notification_service_subcontent">app from task manager and reopen it</string>
<string name="notification_service_content">To remove this notification close Vanced app from task manager and reopen it</string>
<string name="just_a_sec">Just a sec…</string>
<string name="ask_permission_tos">By continuing, you allow this app and Google to use your information in accordance with their respective terms of service and privacy policies.</string>