Skip to content

Commit

Permalink
加宽频道列表
Browse files Browse the repository at this point in the history
jjm2473
  • Loading branch information
watson1982 authored Feb 7, 2024
1 parent ff5a5f8 commit 55749f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json
4 changes: 2 additions & 2 deletions app/src/main/java/com/github/tvbox/osc/api/ApiConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,8 @@ private void parseJson(String apiUrl, String jsonStr) {
hosts.add(host.getAsString());
}
} else continue;
if (obj.has("rule")) {
JsonArray ruleJsonArr = obj.getAsJsonArray("rule");
if (obj.has("rule") || obj.has("regex")) {
JsonArray ruleJsonArr = obj.has("regex")?obj.getAsJsonArray("regex"):obj.getAsJsonArray("rule");
ArrayList<String> rule = new ArrayList<>();
for (JsonElement one : ruleJsonArr) {
String oneRule = one.getAsString();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_live_play.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

<com.owen.tvrecyclerview.widget.TvRecyclerView
android:id="@+id/mChannelGridView"
android:layout_width="@dimen/vs_280"
android:layout_width="@dimen/vs_340"
android:layout_height="match_parent"
android:divider="@null"
android:fadeScrollbars="false"
Expand Down

0 comments on commit 55749f8

Please sign in to comment.