jobs: Use previously defined constants instead of hard coded values.

Use ACCOUNT_NAME_GLOBAL and KEY_MEDIA_FOLDERS constants where applicable.

Duplicated string literals make the process of refactoring error-prone.
This commit is contained in:
ardevd 2018-07-13 10:09:40 +02:00
parent d54b666d02
commit d92d163212

View file

@ -134,7 +134,7 @@ public class MediaFoldersDetectionJob extends Job {
} else {
mediaFoldersModel = new MediaFoldersModel(imageMediaFolderPaths, videoMediaFolderPaths);
arbitraryDataProvider.storeOrUpdateKeyValue("global", "media_folders", gson.toJson(mediaFoldersModel));
arbitraryDataProvider.storeOrUpdateKeyValue(ACCOUNT_NAME_GLOBAL, KEY_MEDIA_FOLDERS, gson.toJson(mediaFoldersModel));
}
return Result.SUCCESS;