We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f418b7d commit 18bfa12Copy full SHA for 18bfa12
app/src/main/java/cn/settile/fanboxviewer/Network/RESTfulClient/FanboxUserParser.java
@@ -106,7 +106,7 @@ public List<DetailItem> getPostContent(String id) throws Exception{
106
public List<DetailItem> getPostContent(JSONObject body) throws Exception{
107
List<DetailItem> items = new ArrayList<>();
108
109
- if(body.getBoolean("isRestricted")){
+ if(body.optBoolean("isRestricted", true) && body.optInt("feeRequired", -1) != 0){
110
items.add(new DetailItem(DetailItem.Type.TEXT,
111
String.format(c.getString(R.string.plan_formatting), body.getInt("feeRequired"))));
112
items.add(new DetailItem(DetailItem.Type.IMAGE, "false"));
0 commit comments