Andy Scherzinger 9 년 전
부모
커밋
d6fd180aa8
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/com/owncloud/android/ui/activity/ManageAccountsActivity.java

+ 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) {