Refactoring

pull/178/head
M66B 5 years ago
parent c6fde18272
commit 4aeeda6d59

@ -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…
Cancel
Save