浏览代码

resolves #1439 - by runnign the UI operations in the UI thread (anything else will crash, like seen on GPlay)

AndyScherzinger 7 年之前
父节点
当前提交
d5db3d43ff
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/main/java/com/owncloud/android/ui/activity/UserInfoActivity.java

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

@@ -480,7 +480,12 @@ public class UserInfoActivity extends FileActivity {
                     });
                 } else {
                     // show error
-                    setMessageForMultiList(result.getLogMessage(), sorryMessage);
+                    runOnUiThread(new Runnable() {
+                        @Override
+                        public void run() {
+                            setMessageForMultiList(result.getLogMessage(), sorryMessage);
+                        }
+                    });
                     Log_OC.d(TAG, result.getLogMessage());
                 }
             }