From 8e9531b71864519f4ef1806fa1422867423f5e9c Mon Sep 17 00:00:00 2001 From: Grishka Date: Sun, 12 Feb 2023 03:58:24 +0300 Subject: [PATCH] Fix #528 --- .../onboarding/InstanceCatalogFragment.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/InstanceCatalogFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/InstanceCatalogFragment.java index e7594a6e2..345a0a4aa 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/InstanceCatalogFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/InstanceCatalogFragment.java @@ -31,6 +31,8 @@ import org.xml.sax.InputSource; import java.io.IOException; import java.net.IDN; +import java.net.URI; +import java.net.URISyntaxException; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; @@ -208,6 +210,20 @@ abstract class InstanceCatalogFragment extends BaseRecyclerFragment0 && filteredData.get(0)==fakeInstance){ + if(list.findViewHolderForAdapterPosition(1) instanceof BindableViewHolder ivh){ + ivh.rebind(); + } + } + } + return; + } loadingInstanceDomain=domain; loadingInstanceRequest=new GetInstance(); loadingInstanceRequest.setCallback(new Callback<>(){