Added "Touch to open Briar" to ongoing notification.

This commit is contained in:
akwizgran
2016-05-04 09:32:47 +01:00
parent 6751ded313
commit 5a84e0fe5c
2 changed files with 2 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
<string name="could_not_load_report_data">Could not load report data.</string>
<string name="dev_report_saved">Report saved. It will be sent the next time you log into Briar.</string>
<string name="ongoing_notification_title">Signed into Briar</string>
<string name="ongoing_notification_text">Touch to open Briar.</string>
<string name="setup_title">Briar Setup</string>
<string name="choose_nickname">Choose your nickname:</string>
<string name="choose_password">Choose your password:</string>

View File

@@ -74,7 +74,7 @@ public class BriarService extends Service {
NotificationCompat.Builder b = new NotificationCompat.Builder(this);
b.setSmallIcon(R.drawable.ongoing_notification_icon);
b.setContentTitle(getText(R.string.ongoing_notification_title));
b.setContentText("");
b.setContentText(getText(R.string.ongoing_notification_text));
b.setWhen(0); // Don't show the time
b.setOngoing(true);
Intent i = new Intent(this, NavDrawerActivity.class);