Small improvements

This commit is contained in:
M66B
2019-02-04 16:10:30 +00:00
parent 783bdd68ed
commit 0f8e958935
4 changed files with 6 additions and 6 deletions

View File

@@ -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);