mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 10:01:22 +01:00
Small improvements
This commit is contained in:
@@ -208,7 +208,7 @@ public class FragmentFolder extends FragmentBase {
|
||||
Log.i("Creating folder=" + name);
|
||||
|
||||
if (TextUtils.isEmpty(name))
|
||||
throw new IllegalArgumentException(getString(R.string.title_folder_name_missing));
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_folder_name_missing));
|
||||
|
||||
EntityFolder create = new EntityFolder();
|
||||
create.account = aid;
|
||||
@@ -323,7 +323,7 @@ public class FragmentFolder extends FragmentBase {
|
||||
int count = db.operation().getOperationCount(id, null);
|
||||
if (count > 0)
|
||||
throw new IllegalArgumentException(
|
||||
getResources().getQuantityString(
|
||||
context.getResources().getQuantityString(
|
||||
R.plurals.title_notification_operations, count, count));
|
||||
db.folder().setFolderTbd(id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user