diff --git a/app/src/main/java/eu/faircode/email/AdapterFolder.java b/app/src/main/java/eu/faircode/email/AdapterFolder.java index 9cd76f4153..6a08508b53 100644 --- a/app/src/main/java/eu/faircode/email/AdapterFolder.java +++ b/app/src/main/java/eu/faircode/email/AdapterFolder.java @@ -120,9 +120,7 @@ public class AdapterFolder extends RecyclerView.Adapter 0) tvName.setText(context.getString(R.string.title_folder_unseen, name, folder.unseen)); else diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 661572ae0a..d83dfeb367 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1467,12 +1467,8 @@ public class AdapterMessage extends PagedListAdapter 0) setSubtitle(getString(R.string.title_folder_unseen, name, folder.unseen)); else @@ -1601,10 +1595,9 @@ public class FragmentMessages extends FragmentEx { private void moveUndo(final MessageTarget result) { // Show undo snackbar - String display = (result.target.display == null ? result.target.name : result.target.display); final Snackbar snackbar = Snackbar.make( view, - getString(R.string.title_moving, Helper.localizeFolderName(getContext(), display)), + getString(R.string.title_moving, result.target.getDisplayName(getContext())), Snackbar.LENGTH_INDEFINITE); snackbar.setAction(R.string.title_undo, new View.OnClickListener() { @Override