Fix accounts not displayed in about page
This commit is contained in:
parent
ed8d400744
commit
97e91d808c
|
@ -2234,8 +2234,6 @@ public abstract class BaseMainActivity extends BaseActivity
|
||||||
displayStatusFragment.scrollToTop();
|
displayStatusFragment.scrollToTop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DrawerLayout drawer = findViewById(R.id.drawer_layout);
|
|
||||||
drawer.closeDrawer(GravityCompat.START);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -163,7 +163,7 @@ public class HttpsConnection {
|
||||||
HttpUrl.Builder httpBuider = Objects.requireNonNull(HttpUrl.parse(urlConnection)).newBuilder();
|
HttpUrl.Builder httpBuider = Objects.requireNonNull(HttpUrl.parse(urlConnection)).newBuilder();
|
||||||
if (paramaters != null) {
|
if (paramaters != null) {
|
||||||
for (Map.Entry<String, String> param : paramaters.entrySet()) {
|
for (Map.Entry<String, String> param : paramaters.entrySet()) {
|
||||||
httpBuider.addQueryParameter(param.getKey(), param.getValue());
|
httpBuider.addEncodedQueryParameter(param.getKey(), param.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (token != null && !token.startsWith("Basic ")) {
|
if (token != null && !token.startsWith("Basic ")) {
|
||||||
|
|
|
@ -831,16 +831,7 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
|
||||||
|
|
||||||
|
|
||||||
public void scrollToTop() {
|
public void scrollToTop() {
|
||||||
if (lv_status != null && instanceType != null) {
|
mLayoutManager.scrollToPositionWithOffset(0, 0);
|
||||||
if (statusListAdapter != null && (instanceType.equals("MASTODON") || instanceType.equals("MISSKEY") || instanceType.equals("GNU")))
|
|
||||||
lv_status.setAdapter(statusListAdapter);
|
|
||||||
else if (pixelfedListAdapter != null && instanceType.equals("PIXELFED"))
|
|
||||||
lv_status.setAdapter(pixelfedListAdapter);
|
|
||||||
else if (artListAdapter != null && instanceType.equals("ART"))
|
|
||||||
lv_status.setAdapter(artListAdapter);
|
|
||||||
else if (peertubeAdapater != null && instanceType.equals("PEERTUBE"))
|
|
||||||
lv_status.setAdapter(peertubeAdapater);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue