Skip to content

Commit

Permalink
Fix: JSON field conflicting caused cannot open free content.
Browse files Browse the repository at this point in the history
  • Loading branch information
709924470 committed Nov 21, 2022
1 parent f418b7d commit 18bfa12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public List<DetailItem> getPostContent(String id) throws Exception{
public List<DetailItem> getPostContent(JSONObject body) throws Exception{
List<DetailItem> items = new ArrayList<>();

if(body.getBoolean("isRestricted")){
if(body.optBoolean("isRestricted", true) && body.optInt("feeRequired", -1) != 0){
items.add(new DetailItem(DetailItem.Type.TEXT,
String.format(c.getString(R.string.plan_formatting), body.getInt("feeRequired"))));
items.add(new DetailItem(DetailItem.Type.IMAGE, "false"));
Expand Down

0 comments on commit 18bfa12

Please sign in to comment.