mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
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:
parent
d54b666d02
commit
d92d163212
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue