|
|
|
@ -1368,7 +1368,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
|
|
|
|
|
private void onActionCalendar(TupleMessageEx message, int action) {
|
|
|
|
|
if (!ActivityBilling.isPro(context)) {
|
|
|
|
|
Helper.startActivity(context, new Intent(context, ActivityBilling.class));
|
|
|
|
|
context.startActivity(new Intent(context, ActivityBilling.class));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1457,7 +1457,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
.putExtra("reference", args.getLong("id"))
|
|
|
|
|
.putExtra("ics", ics)
|
|
|
|
|
.putExtra("status", status);
|
|
|
|
|
Helper.startActivity(context, reply);
|
|
|
|
|
context.startActivity(reply);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -1563,7 +1563,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (EntityFolder.DRAFTS.equals(message.folderType) && message.visible == 1)
|
|
|
|
|
Helper.startActivity(context,
|
|
|
|
|
context.startActivity(
|
|
|
|
|
new Intent(context, ActivityCompose.class)
|
|
|
|
|
.putExtra("action", "edit")
|
|
|
|
|
.putExtra("id", message.id));
|
|
|
|
@ -1862,7 +1862,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
@TargetApi(Build.VERSION_CODES.O)
|
|
|
|
|
private void onActionCreateChannel() {
|
|
|
|
|
if (!ActivityBilling.isPro(context)) {
|
|
|
|
|
Helper.startActivity(context, new Intent(context, ActivityBilling.class));
|
|
|
|
|
context.startActivity(new Intent(context, ActivityBilling.class));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1881,7 +1881,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
Intent intent = new Intent(Settings.ACTION_CHANNEL_NOTIFICATION_SETTINGS)
|
|
|
|
|
.putExtra(Settings.EXTRA_APP_PACKAGE, context.getPackageName())
|
|
|
|
|
.putExtra(Settings.EXTRA_CHANNEL_ID, channelId);
|
|
|
|
|
Helper.startActivity(context, intent);
|
|
|
|
|
context.startActivity(intent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void onActionDeleteChannel() {
|
|
|
|
@ -1936,13 +1936,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
Snackbar.make(parentFragment.getView(),
|
|
|
|
|
R.string.title_no_contacts, Snackbar.LENGTH_LONG).show();
|
|
|
|
|
else
|
|
|
|
|
Helper.startActivity(context, edit);
|
|
|
|
|
context.startActivity(edit);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void onToggleMessage(TupleMessageEx message) {
|
|
|
|
|
if (EntityFolder.DRAFTS.equals(message.folderType))
|
|
|
|
|
Helper.startActivity(context,
|
|
|
|
|
context.startActivity(
|
|
|
|
|
new Intent(context, ActivityCompose.class)
|
|
|
|
|
.putExtra("action", "edit")
|
|
|
|
|
.putExtra("id", message.id));
|
|
|
|
@ -2207,7 +2207,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
Intent reply = new Intent(context, ActivityCompose.class)
|
|
|
|
|
.putExtra("action", action)
|
|
|
|
|
.putExtra("reference", message.id);
|
|
|
|
|
Helper.startActivity(context, reply);
|
|
|
|
|
context.startActivity(reply);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void onMenuAnswer(TupleMessageEx message) {
|
|
|
|
@ -2244,12 +2244,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
@Override
|
|
|
|
|
public boolean onMenuItemClick(MenuItem target) {
|
|
|
|
|
if (!ActivityBilling.isPro(context)) {
|
|
|
|
|
Helper.startActivity(context, new Intent(context, ActivityBilling.class));
|
|
|
|
|
context.startActivity(new Intent(context, ActivityBilling.class));
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Helper.startActivity(context,
|
|
|
|
|
new Intent(context, ActivityCompose.class)
|
|
|
|
|
context.startActivity(new Intent(context, ActivityCompose.class)
|
|
|
|
|
.putExtra("action", "reply")
|
|
|
|
|
.putExtra("reference", message.id)
|
|
|
|
|
.putExtra("answer", (long) target.getItemId()));
|
|
|
|
@ -2748,7 +2747,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
Intent asnew = new Intent(context, ActivityCompose.class)
|
|
|
|
|
.putExtra("action", "editasnew")
|
|
|
|
|
.putExtra("reference", message.id);
|
|
|
|
|
Helper.startActivity(context, asnew);
|
|
|
|
|
context.startActivity(asnew);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void onMenuUnseen(final TupleMessageEx message) {
|
|
|
|
@ -2975,7 +2974,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
Snackbar.make(parentFragment.getView(),
|
|
|
|
|
R.string.title_no_viewer, Snackbar.LENGTH_LONG).show();
|
|
|
|
|
else
|
|
|
|
|
Helper.startActivity(context, share);
|
|
|
|
|
context.startActivity(share);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -3100,7 +3099,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
Intent send = new Intent(Intent.ACTION_SEND);
|
|
|
|
|
send.putExtra(Intent.EXTRA_STREAM, uri);
|
|
|
|
|
send.setType("message/rfc822");
|
|
|
|
|
Helper.startActivity(context, send);
|
|
|
|
|
context.startActivity(send);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ItemDetailsLookup.ItemDetails<Long> getItemDetails(@NonNull MotionEvent motionEvent) {
|
|
|
|
@ -4082,7 +4081,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(DialogInterface dialog, int which) {
|
|
|
|
|
if (!ActivityBilling.isPro(getContext())) {
|
|
|
|
|
startActivity(new Intent(getContext(), ActivityBilling.class));
|
|
|
|
|
getContext().startActivity(new Intent(getContext(), ActivityBilling.class));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -4158,7 +4157,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
@Override
|
|
|
|
|
public void onClick(DialogInterface dialog, int which) {
|
|
|
|
|
if (!ActivityBilling.isPro(getContext())) {
|
|
|
|
|
startActivity(new Intent(getContext(), ActivityBilling.class));
|
|
|
|
|
getContext().startActivity(new Intent(getContext(), ActivityBilling.class));
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|