Minor bugs fixed in PostFragment.

This commit is contained in:
Docile-Alligator
2025-05-23 12:42:08 -04:00
parent 2e388765b6
commit dfcbbc2b67
2 changed files with 4 additions and 2 deletions

View File

@ -161,7 +161,7 @@ public interface RedditAPI {
@POST("{subredditNamePrefixed}/api/selectflair")
Call<String> selectFlair(@Path("subredditNamePrefixed") String subredditName, @HeaderMap Map<String, String> headers, @FieldMap Map<String, String> params);
@GET("/message/{where}.json?raw_json=1")
@GET("/message/{where}.json?raw_json=1&limit=100")
Call<String> getMessages(@HeaderMap Map<String, String> headers, @Path("where") String where, @Query("after") String after);
@FormUrlEncoded

View File

@ -1385,7 +1385,9 @@ public class PostFragment extends PostFragmentBase implements FragmentCommunicat
@Override
public void onDestroy() {
binding.recyclerViewPostFragment.addOnWindowFocusChangedListener(null);
if (mAdapter != null && binding.recyclerViewPostFragment != null) {
binding.recyclerViewPostFragment.addOnWindowFocusChangedListener(null);
}
super.onDestroy();
}