Skip to content

Commit 2cc4e10

Browse files
committed
call on main thread- checkDisableForAllFoldersMenuButtonVisibility
Signed-off-by: alperozturk <[email protected]>
1 parent 5bb43f3 commit 2cc4e10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/main/java/com/owncloud/android/ui/activity/InternalTwoWaySyncActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ class InternalTwoWaySyncActivity :
207207
fileDataStorageManager.getInternalTwoWaySyncFolders(user.get()).size
208208
}
209209

210-
checkDisableForAllFoldersMenuButtonVisibility(preferences.isTwoWaySyncEnabled, folderSize)
210+
launch(Dispatchers.Main) {
211+
checkDisableForAllFoldersMenuButtonVisibility(preferences.isTwoWaySyncEnabled, folderSize)
212+
}
211213
}
212214
}
213215

0 commit comments

Comments
 (0)