mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-01-13 03:37:11 +01:00
Fix crash related to the "swipe between posts" options
There was a null pointer execution because it did not check for a null value.
This commit is contained in:
parent
fe565d2ef3
commit
6b09f0379c
@ -557,7 +557,7 @@ public class ViewPostDetailActivity extends BaseActivity implements SortTypeSele
|
|||||||
// TODO: Implement anonymous front page
|
// TODO: Implement anonymous front page
|
||||||
|
|
||||||
default:
|
default:
|
||||||
String type = (subredditName.equals("all")) ? "All" : (subredditName.equals("local")) ? "Local" : "Subscribed";
|
String type = (subredditName == null) ? "Subscribed" : (subredditName.equals("all")) ? "All" : "Local";
|
||||||
call = api.getPosts(type, sortType.value, nextPage, 25, null, null, false, mAccessToken);
|
call = api.getPosts(type, sortType.value, nextPage, 25, null, null, false, mAccessToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user