forked from mirrors/Fedilab
Fix issue #678 - Wrong instance fetched for instances.social
This commit is contained in:
parent
da367ac0c0
commit
f38ae254c1
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,12 @@ public class InstanceHealthActivity extends BaseAlertDialogActivity {
|
|||
instanceSocialVM.getInstances(BaseMainActivity.currentInstance.trim()).observe(InstanceHealthActivity.this, instanceSocialList -> {
|
||||
if (instanceSocialList != null && instanceSocialList.instances.size() > 0) {
|
||||
InstanceSocial.Instance instanceSocial = instanceSocialList.instances.get(0);
|
||||
for (InstanceSocial.Instance instance : instanceSocialList.instances) {
|
||||
if (instance.name.equalsIgnoreCase(BaseMainActivity.currentInstance.trim())) {
|
||||
instanceSocial = instance;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (instanceSocial.thumbnail != null && !instanceSocial.thumbnail.equals("null"))
|
||||
Glide.with(InstanceHealthActivity.this)
|
||||
.asBitmap()
|
||||
|
|
Loading…
Reference in a new issue