mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 10:01:22 +01:00
Android Q compatibility
This commit is contained in:
@@ -32,11 +32,10 @@ public class ServiceUI extends IntentService {
|
||||
static final int PI_CLEAR = 1;
|
||||
static final int PI_TRASH = 2;
|
||||
static final int PI_ARCHIVE = 3;
|
||||
static final int PI_REPLY = 4;
|
||||
static final int PI_FLAG = 6;
|
||||
static final int PI_SEEN = 6;
|
||||
static final int PI_IGNORED = 7;
|
||||
static final int PI_SNOOZED = 8;
|
||||
static final int PI_FLAG = 4;
|
||||
static final int PI_SEEN = 5;
|
||||
static final int PI_IGNORED = 6;
|
||||
static final int PI_SNOOZED = 7;
|
||||
|
||||
public ServiceUI() {
|
||||
this(ServiceUI.class.getName());
|
||||
@@ -85,9 +84,6 @@ public class ServiceUI extends IntentService {
|
||||
case "archive":
|
||||
onArchive(id);
|
||||
break;
|
||||
case "reply":
|
||||
onReply(id);
|
||||
break;
|
||||
case "flag":
|
||||
onFlag(id);
|
||||
break;
|
||||
@@ -151,17 +147,6 @@ public class ServiceUI extends IntentService {
|
||||
}
|
||||
}
|
||||
|
||||
private void onReply(long id) {
|
||||
onSeen(id);
|
||||
|
||||
// No check for attachments
|
||||
Intent reply = new Intent(this, ActivityCompose.class)
|
||||
.putExtra("action", "reply")
|
||||
.putExtra("reference", id);
|
||||
reply.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
startActivity(reply);
|
||||
}
|
||||
|
||||
private void onFlag(long id) {
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean threading = prefs.getBoolean("threading", true);
|
||||
|
||||
Reference in New Issue
Block a user