Skip to content

Commit fba2216

Browse files
Fix when expressions in app data loader
1 parent 98b25b6 commit fba2216

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

app/src/main/kotlin/com/d4rk/cleaner/app/apps/manager/ui/AppManagerViewModel.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class AppManagerViewModel(
165165
userAppsLoading = true,
166166
systemAppsLoading = true
167167
)
168-
),
168+
)
169169

170170
is DataState.Success -> {
171171
val pm = applicationContext.packageManager
@@ -183,7 +183,7 @@ class AppManagerViewModel(
183183
systemAppsLoading = false
184184
)
185185
)
186-
},
186+
}
187187

188188
is DataState.Error -> currentState.copy(
189189
data = currentState.data?.copy(
@@ -203,14 +203,16 @@ class AppManagerViewModel(
203203
data = currentState.data?.copy(
204204
apkFilesLoading = true
205205
)
206-
),
206+
)
207207

208208
is DataState.Success -> currentState.copy(
209209
data = currentState.data?.copy(
210210
apkFiles = result.data.sortedBy {
211211
it.path.substringAfterLast('/').lowercase()
212212
},
213-
apkFilesLoading = false)),
213+
apkFilesLoading = false
214+
)
215+
)
214216

215217
is DataState.Error -> currentState.copy(
216218
data = currentState.data?.copy(
@@ -229,7 +231,7 @@ class AppManagerViewModel(
229231
data = currentState.data?.copy(
230232
appUsageStats = result.data
231233
)
232-
),
234+
)
233235

234236
else -> currentState
235237
}

0 commit comments

Comments
 (0)