File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/src/main/java/com/phpbg/easysync/ui Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class MainViewModel(application: Application) : AndroidViewModel(application) {
118118 }
119119 }
120120 viewModelScope.launch {
121- loadImages ()
121+ updateLocalFileCount ()
122122 }
123123 viewModelScope.launch {
124124 loadDav()
@@ -128,8 +128,8 @@ class MainViewModel(application: Application) : AndroidViewModel(application) {
128128 trialRemainingDays.intValue = MyApp .getTrialRemainingDays(getApplication())
129129 }
130130
131- private fun loadImages () {
132- Log .i(TAG , " load images " )
131+ private fun updateLocalFileCount () {
132+ Log .i(TAG , " updateLocalFileCount " )
133133 viewModelScope.launch {
134134 _localFilesCount .postValue(mediaStoreService.countAll(settingsDataStore.getSettings().pathExclusions))
135135
@@ -139,7 +139,7 @@ class MainViewModel(application: Application) : AndroidViewModel(application) {
139139 getApplication<Application >().contentResolver.registerObserver(
140140 it
141141 ) {
142- loadImages ()
142+ updateLocalFileCount ()
143143 }
144144 }
145145 }
You can’t perform that action at this time.
0 commit comments