|
|
@ -3563,7 +3563,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Log.i("Run execute id=" + working + " reason=" + reason);
|
|
|
|
Log.i("Run execute id=" + working + " reason=" + reason);
|
|
|
|
actionLoader.execute(this, args, "compose:action:" + action);
|
|
|
|
actionLoader.execute(this, args, "compose:action:" + getActionName(action));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static EntityAttachment addAttachment(
|
|
|
|
private static EntityAttachment addAttachment(
|
|
|
@ -5575,23 +5575,6 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private String getActionName(int id) {
|
|
|
|
|
|
|
|
if (id == R.id.action_delete) {
|
|
|
|
|
|
|
|
return "delete";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_undo) {
|
|
|
|
|
|
|
|
return "undo";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_redo) {
|
|
|
|
|
|
|
|
return "redo";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_save) {
|
|
|
|
|
|
|
|
return "save";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_check) {
|
|
|
|
|
|
|
|
return "check";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_send) {
|
|
|
|
|
|
|
|
return "send";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return Integer.toString(id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void checkAddress(InternetAddress[] addresses, Context context) throws AddressException {
|
|
|
|
private void checkAddress(InternetAddress[] addresses, Context context) throws AddressException {
|
|
|
|
if (addresses == null)
|
|
|
|
if (addresses == null)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -5621,6 +5604,23 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String getActionName(int id) {
|
|
|
|
|
|
|
|
if (id == R.id.action_delete) {
|
|
|
|
|
|
|
|
return "delete";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_undo) {
|
|
|
|
|
|
|
|
return "undo";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_redo) {
|
|
|
|
|
|
|
|
return "redo";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_save) {
|
|
|
|
|
|
|
|
return "save";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_check) {
|
|
|
|
|
|
|
|
return "check";
|
|
|
|
|
|
|
|
} else if (id == R.id.action_send) {
|
|
|
|
|
|
|
|
return "send";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return Integer.toString(id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void setBusy(boolean busy) {
|
|
|
|
private void setBusy(boolean busy) {
|
|
|
|
state = (busy ? State.LOADING : State.LOADED);
|
|
|
|
state = (busy ? State.LOADING : State.LOADED);
|
|
|
|
Helper.setViewsEnabled(view, !busy);
|
|
|
|
Helper.setViewsEnabled(view, !busy);
|
|
|
|