mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Improved logging
This commit is contained in:
parent
e38566118a
commit
408809076c
1 changed files with 18 additions and 18 deletions
|
@ -3563,7 +3563,7 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
|
||||
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(
|
||||
|
@ -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 {
|
||||
if (addresses == null)
|
||||
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) {
|
||||
state = (busy ? State.LOADING : State.LOADED);
|
||||
Helper.setViewsEnabled(view, !busy);
|
||||
|
|
Loading…
Reference in a new issue