mirror of https://github.com/M66B/FairEmail.git
Clear selection on confirm
This commit is contained in:
parent
e84d36914d
commit
9bc2595415
|
@ -1307,6 +1307,8 @@ public class FragmentMessages extends FragmentBase {
|
|||
@Override
|
||||
public void onDurationSelected(long duration, long time) {
|
||||
if (Helper.isPro(getContext())) {
|
||||
selectionTracker.clearSelection();
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putLongArray("ids", getSelection());
|
||||
args.putLong("wakeup", duration == 0 ? -1 : time);
|
||||
|
@ -1358,7 +1360,6 @@ public class FragmentMessages extends FragmentBase {
|
|||
|
||||
@Override
|
||||
public void onDismiss() {
|
||||
selectionTracker.clearSelection();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -1509,8 +1510,6 @@ public class FragmentMessages extends FragmentBase {
|
|||
args.putString("type", type);
|
||||
args.putLongArray("ids", getSelection());
|
||||
|
||||
selectionTracker.clearSelection();
|
||||
|
||||
new SimpleTask<ArrayList<MessageTarget>>() {
|
||||
@Override
|
||||
protected ArrayList<MessageTarget> onExecute(Context context, Bundle args) {
|
||||
|
@ -1564,8 +1563,6 @@ public class FragmentMessages extends FragmentBase {
|
|||
args.putLongArray("ids", getSelection());
|
||||
args.putLong("target", target);
|
||||
|
||||
selectionTracker.clearSelection();
|
||||
|
||||
new SimpleTask<ArrayList<MessageTarget>>() {
|
||||
@Override
|
||||
protected ArrayList<MessageTarget> onExecute(Context context, Bundle args) {
|
||||
|
@ -2591,6 +2588,9 @@ public class FragmentMessages extends FragmentBase {
|
|||
}
|
||||
|
||||
private void moveAskConfirmed(ArrayList<MessageTarget> result) {
|
||||
if (selectionTracker != null)
|
||||
selectionTracker.clearSelection();
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putParcelableArrayList("result", result);
|
||||
|
||||
|
|
Loading…
Reference in New Issue