mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Refactoring
This commit is contained in:
parent
c6fde18272
commit
4aeeda6d59
2 changed files with 9 additions and 2 deletions
|
@ -3378,7 +3378,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
|
||||
private void onActionAnswer(TupleMessageEx message, View anchor) {
|
||||
((FragmentMessages) parentFragment).onReply(message, getSelectedText(), anchor);
|
||||
properties.reply(message, getSelectedText(), anchor);
|
||||
}
|
||||
|
||||
private void onActionMove(TupleMessageEx message, final boolean copy) {
|
||||
|
@ -5199,6 +5199,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
void move(long id, String type);
|
||||
|
||||
void reply(TupleMessageEx message, String selected, View anchor);
|
||||
|
||||
void finish();
|
||||
}
|
||||
|
||||
|
|
|
@ -1575,6 +1575,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
}.execute(FragmentMessages.this, args, "messages:move");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reply(TupleMessageEx message, String selected, View anchor) {
|
||||
onReply(message, selected, anchor);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void finish() {
|
||||
FragmentMessages.this.finish();
|
||||
|
@ -2032,7 +2037,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
}
|
||||
}
|
||||
|
||||
void onReply(final TupleMessageEx message, final String selected, final View anchor) {
|
||||
private void onReply(final TupleMessageEx message, final String selected, final View anchor) {
|
||||
Bundle args = new Bundle();
|
||||
args.putLong("id", message.id);
|
||||
|
||||
|
|
Loading…
Reference in a new issue