Andy Scherzinger 9 năm trước cách đây
mục cha
commit
d6fd180aa8

+ 6 - 1
src/com/owncloud/android/ui/activity/ManageAccountsActivity.java

@@ -172,7 +172,12 @@ public class ManageAccountsActivity extends ToolbarActivity
                                 ArrayList<AccountListItem> accounts = getAccountListItems();
                                 mAccountListAdapter.clear();
                                 mAccountListAdapter.addAll(accounts);
-                                mAccountListAdapter.notifyDataSetChanged();
+                                runOnUiThread(new Runnable() {
+                                    @Override
+                                    public void run() {
+                                        mAccountListAdapter.notifyDataSetChanged();
+                                    }
+                                });
                             } catch (OperationCanceledException e) {
                                 Log_OC.d(TAG, "Account creation canceled");
                             } catch (Exception e) {