|
|
@ -3483,9 +3483,9 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
|
|
|
public void onClick(View v) {
|
|
|
|
if (ex.getCause() instanceof CertificateException)
|
|
|
|
if (ex.getCause() instanceof CertificateException)
|
|
|
|
startActivity(
|
|
|
|
v.getContext().startActivity(new Intent(v.getContext(), ActivitySetup.class)
|
|
|
|
new Intent(getContext(), ActivitySetup.class)
|
|
|
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
|
|
|
.putExtra("tab", "encryption"));
|
|
|
|
.putExtra("tab", "encryption"));
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(getContext(), getViewLifecycleOwner(), vwAnchor);
|
|
|
|
PopupMenuLifecycle popupMenu = new PopupMenuLifecycle(getContext(), getViewLifecycleOwner(), vwAnchor);
|
|
|
|
popupMenu.getMenu().add(Menu.NONE, R.string.title_send_dialog, 1, R.string.title_send_dialog);
|
|
|
|
popupMenu.getMenu().add(Menu.NONE, R.string.title_send_dialog, 1, R.string.title_send_dialog);
|
|
|
@ -3504,9 +3504,9 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
fragment.show(getParentFragmentManager(), "compose:send");
|
|
|
|
fragment.show(getParentFragmentManager(), "compose:send");
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
} else if (itemId == R.string.title_advanced_manage_certificates) {
|
|
|
|
} else if (itemId == R.string.title_advanced_manage_certificates) {
|
|
|
|
startActivity(
|
|
|
|
startActivity(new Intent(getContext(), ActivitySetup.class)
|
|
|
|
new Intent(getContext(), ActivitySetup.class)
|
|
|
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
|
|
|
.putExtra("tab", "encryption"));
|
|
|
|
.putExtra("tab", "encryption"));
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -4978,8 +4978,9 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
.setGestureInsetBottomIgnored(true);
|
|
|
|
.setGestureInsetBottomIgnored(true);
|
|
|
|
snackbar.setAction(R.string.title_fix, new View.OnClickListener() {
|
|
|
|
snackbar.setAction(R.string.title_fix, new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onClick(View view) {
|
|
|
|
public void onClick(View v) {
|
|
|
|
startActivity(new Intent(getContext(), ActivitySetup.class));
|
|
|
|
v.getContext().startActivity(new Intent(v.getContext(), ActivitySetup.class)
|
|
|
|
|
|
|
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
|
|
|
|
getActivity().finish();
|
|
|
|
getActivity().finish();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -6476,7 +6477,8 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
btnFixSent.setOnClickListener(new View.OnClickListener() {
|
|
|
|
btnFixSent.setOnClickListener(new View.OnClickListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onClick(View v) {
|
|
|
|
public void onClick(View v) {
|
|
|
|
startActivity(new Intent(v.getContext(), ActivitySetup.class)
|
|
|
|
v.getContext().startActivity(new Intent(v.getContext(), ActivitySetup.class)
|
|
|
|
|
|
|
|
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
|
|
|
.putExtra("target", "accounts"));
|
|
|
|
.putExtra("target", "accounts"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|