Browse Source

Revert "Why?"

This reverts commit 672c5bab8a.
main
M66B 6 years ago
parent
commit
4e0ea41e17
2 changed files with 0 additions and 13 deletions
  1. +0
    -12
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java
  2. +0
    -1
      app/src/main/res/values/strings.xml

+ 0
- 12
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -341,18 +341,6 @@ public class ServiceSynchronize extends LifecycleService {
if (unsent > 0) if (unsent > 0)
builder.setContentText(getResources().getQuantityString(R.plurals.title_notification_unsent, unsent, unsent)); builder.setContentText(getResources().getQuantityString(R.plurals.title_notification_unsent, unsent, unsent));
Intent why = new Intent(Intent.ACTION_VIEW);
why.setData(Uri.parse("https://github.com/M66B/open-source-email/blob/master/FAQ.md#FAQ2"));
PendingIntent piWhy = PendingIntent.getActivity(this, 0, why, PendingIntent.FLAG_UPDATE_CURRENT);
Notification.Action.Builder actionWhy = new Notification.Action.Builder(
Icon.createWithResource(this, R.drawable.baseline_info_24),
getString(R.string.title_notification_why),
piWhy);
if (why.resolveActivity(getPackageManager()) != null)
builder.addAction(actionWhy.build());
return builder; return builder;
} }


+ 0
- 1
app/src/main/res/values/strings.xml View File

@ -29,7 +29,6 @@
<item quantity="other">%1$d unsent messages</item> <item quantity="other">%1$d unsent messages</item>
</plurals> </plurals>
<string name="title_notification_why">Why?</string>
<string name="title_notification_failed">\'%1$s\' failed</string> <string name="title_notification_failed">\'%1$s\' failed</string>
<string name="menu_setup">Setup</string> <string name="menu_setup">Setup</string>


Loading…
Cancel
Save