use same rationale in device message (the device message is only added when the direct-ask was cancelled)

This commit is contained in:
B. Petersen 2020-09-08 12:41:02 +02:00
parent fa214e0163
commit 5ab682f2ab
No known key found for this signature in database
GPG key ID: 3B88E92DEA8E9AFC

View file

@ -66,8 +66,8 @@ public class DozeReminder {
public static void addDozeReminderDeviceMsg(Context context) { public static void addDozeReminderDeviceMsg(Context context) {
DcContext dcContext = DcHelper.getContext(context); DcContext dcContext = DcHelper.getContext(context);
DcMsg msg = new DcMsg(dcContext, DcMsg.DC_MSG_TEXT); DcMsg msg = new DcMsg(dcContext, DcMsg.DC_MSG_TEXT);
msg.setText(context.getString(R.string.perm_enable_bg_reminder_title)+"\n\n" msg.setText("\uD83D\uDC49 "+context.getString(R.string.perm_enable_bg_reminder_title)+" \uD83D\uDC48\n\n"
+context.getString(R.string.perm_enable_bg_reminder_text)); +context.getString(R.string.pref_background_notifications_rationale));
int msgId = dcContext.addDeviceMsg("android.doze-reminder", msg); int msgId = dcContext.addDeviceMsg("android.doze-reminder", msg);
if(msgId!=0) { if(msgId!=0) {
Prefs.setPromptedDozeMsgId(context, msgId); Prefs.setPromptedDozeMsgId(context, msgId);