Fix accounts not displayed in about page

This commit is contained in:
tom79 2019-11-27 17:59:08 +01:00
parent ed8d400744
commit 97e91d808c
3 changed files with 2 additions and 13 deletions

View File

@ -2234,8 +2234,6 @@ public abstract class BaseMainActivity extends BaseActivity
displayStatusFragment.scrollToTop();
}
}
DrawerLayout drawer = findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
}
});

View File

@ -163,7 +163,7 @@ public class HttpsConnection {
HttpUrl.Builder httpBuider = Objects.requireNonNull(HttpUrl.parse(urlConnection)).newBuilder();
if (paramaters != null) {
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 ")) {

View File

@ -831,16 +831,7 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn
public void scrollToTop() {
if (lv_status != null && instanceType != null) {
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);
}
mLayoutManager.scrollToPositionWithOffset(0, 0);
}
/**