Skip to content

Commit

Permalink
Merge pull request nextcloud#14209 from nextcloud/convert-manage-acco…
Browse files Browse the repository at this point in the history
…unts-activity-to-kt

Convert ManageAccountsActivity to Kotlin
  • Loading branch information
tobiasKaminsky authored Jan 6, 2025
2 parents 06f8aa0 + 2fcc92b commit 02a93b6
Show file tree
Hide file tree
Showing 4 changed files with 508 additions and 477 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import com.owncloud.android.datamodel.MediaFoldersModel
import com.owncloud.android.datamodel.MediaProvider
import com.owncloud.android.datamodel.SyncedFolderProvider
import com.owncloud.android.lib.common.utils.Log_OC
import com.owncloud.android.ui.activity.ManageAccountsActivity.PENDING_FOR_REMOVAL
import com.owncloud.android.ui.activity.ManageAccountsActivity
import com.owncloud.android.ui.activity.SyncedFoldersActivity
import com.owncloud.android.ui.notifications.NotificationUtils
import com.owncloud.android.utils.SyncedFolderUtils
Expand Down Expand Up @@ -134,7 +134,7 @@ class MediaFoldersDetectionWork constructor(
val allUsers = userAccountManager.allUsers
val activeUsers: MutableList<User> = ArrayList()
for (user in allUsers) {
if (!arbitraryDataProvider.getBooleanValue(user, PENDING_FOR_REMOVAL)) {
if (!arbitraryDataProvider.getBooleanValue(user, ManageAccountsActivity.PENDING_FOR_REMOVAL)) {
activeUsers.add(user)
}
}
Expand Down
Loading

0 comments on commit 02a93b6

Please sign in to comment.