Seen/flag single messages on swipe

pull/194/head
M66B 4 years ago
parent a4cb6d8b40
commit 703d2b16ac

@ -2929,6 +2929,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
Bundle args = new Bundle();
args.putLongArray("ids", id == null ? getSelection() : new long[]{id});
args.putBoolean("seen", seen);
args.putBoolean("threading", threading && id == null);
//if (selectionTracker != null)
// selectionTracker.clearSelection();
@ -2938,6 +2939,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
protected Void onExecute(Context context, Bundle args) {
long[] ids = args.getLongArray("ids");
boolean seen = args.getBoolean("seen");
boolean threading = args.getBoolean("threading");
DB db = DB.getInstance(context);
try {
@ -3065,6 +3067,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
args.putBoolean("flagged", flagged);
if (color != null)
args.putInt("color", color);
args.putBoolean("threading", threading && id == null);
//selectionTracker.clearSelection();
@ -3074,6 +3077,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
long[] ids = args.getLongArray("ids");
boolean flagged = args.getBoolean("flagged");
Integer color = (args.containsKey("color") ? args.getInt("color") : null);
boolean threading = args.getBoolean("threading");
DB db = DB.getInstance(context);
try {

Loading…
Cancel
Save