Эх сурвалжийг харах

prevent crash when updating external links

tobiaskaminsky 7 жил өмнө
parent
commit
8d4421b8d6

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

@@ -1373,7 +1373,7 @@ public abstract class DrawerActivity extends ToolbarActivity implements DisplayU
                                     externalLinksProvider.storeExternalLink(link);
                                 }
 
-                                updateExternalLinksInDrawer();
+                                runOnUiThread(() -> updateExternalLinksInDrawer());
                             }
                         } else {
                             sharedPreferences.edit().putInt(EXTERNAL_LINKS_COUNT, count + 1).apply();