| | |
| | | List<SuperVideoType> list = new ArrayList<>(); |
| | | list.addAll(list1); |
| | | |
| | | if ("huawei".equalsIgnoreCase(acceptData.getChannel())) { |
| | | for (int i = 0; i < list.size(); i++) { |
| | | if (list.get(i).getType().getName().contains("资讯")) { |
| | | list.remove(i); |
| | | break; |
| | | } |
| | | for (int i = 0; i < list.size(); i++) { |
| | | if (list.get(i).getType().getName().contains("资讯")) { |
| | | list.remove(i); |
| | | break; |
| | | } |
| | | } |
| | | |
| | | if (acceptData.getPlatform().equalsIgnoreCase("android")) { |
| | | for (SuperVideoType type : list) { |
| | | if (type.getType().getName().contains("资讯")) { |
| | | type.getType().setName("主播"); |
| | | type.getType().setId(1111); |
| | | type.getType().setIcon("http://img.zcool.cn/community/017fdb57610d8a0000012e7e74b496.png"); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | // if (acceptData.getPlatform().equalsIgnoreCase("android")) { |
| | | // for (SuperVideoType type : list) { |
| | | // if (type.getType().getName().contains("资讯")) { |
| | | // type.getType().setName("主播"); |
| | | // type.getType().setId(1111); |
| | | // type.getType().setIcon("http://img.zcool.cn/community/017fdb57610d8a0000012e7e74b496.png"); |
| | | // break; |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | if ("android".equalsIgnoreCase(acceptData.getPlatform()) && acceptData.getVersion() > 53) { |
| | | SuperVideoType sty = new SuperVideoType(); |