mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
use same rationale in device message (the device message is only added when the direct-ask was cancelled)
This commit is contained in:
parent
fa214e0163
commit
5ab682f2ab
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue