Browse Source

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

AndyScherzinger 7 years ago
parent
commit
d5db3d43ff

+ 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());
                 }
             }