Skip to content

Commit

Permalink
加入新资源
Browse files Browse the repository at this point in the history
  • Loading branch information
wosojadfjgo committed Sep 25, 2019
1 parent 903fbc3 commit ab0c8d2
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.blankj.utilcode.util.PermissionUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.heyongrui.base.R;
import com.heyongrui.base.assist.AppManager;
import com.heyongrui.base.widget.catloadingview.CatLoadingDialog;

import org.json.JSONException;
Expand Down Expand Up @@ -170,6 +171,9 @@ public void onDenied(List<String> permissionsDeniedForever, List<String> permiss
@Override
public void onNo(Dialog dialog) {
dialog.dismiss();
if (isForceUpdate) {
AppManager.getInstance().exitApp();
}
}
}).showRemindDialog();
}
Expand Down
8 changes: 8 additions & 0 deletions main/src/main/java/com/heyongrui/main/HomeFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ public View getView(Context context, int position, ViewGroup parent) {
case 11://音乐搜索
ARouter.getInstance().build(ConfigConstants.PATH_H5).withString("h5Url", "https://ys.juan8014.cn/yin/").navigation();
break;
case 12://炫光
ARouter.getInstance().build(ConfigConstants.PATH_H5).withString("h5Url", "http://weavesilk.com/").navigation();
break;
case 13://唐宋文学编年地图
ARouter.getInstance().build(ConfigConstants.PATH_H5).withString("h5Url", "https://sou-yun.cn/MPoetLifeMap.aspx").navigation();
break;
}
}
});
Expand Down Expand Up @@ -203,6 +209,8 @@ private List<FloatingDto> getFloatListData() {
floatingDtoList.add(creatFloatingDto(getString(R.string.garbage_classify_query), R.drawable.ic_ashcan, 9));
floatingDtoList.add(creatFloatingDto(getString(R.string.artificial_intelligence), R.drawable.ic_robot, 10));
floatingDtoList.add(creatFloatingDto(getString(R.string.music_search), R.drawable.ic_music_disc, 11));
floatingDtoList.add(creatFloatingDto(getString(R.string.weavesilk), R.drawable.ic_weavesilk, 12));
floatingDtoList.add(creatFloatingDto(getString(R.string.literature_chronicle_map), R.drawable.ic_literature_chronicle, 13));
return floatingDtoList;
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions main/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@
<string name="garbage_classify_query">垃圾分类查询</string>
<string name="artificial_intelligence">人工智障</string>
<string name="music_search">音乐搜索</string>
<string name="weavesilk">炫光</string>
<string name="literature_chronicle_map">唐宋文学编年地图</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ private void initBalls() {
case 8://瞎推荐
ARouter.getInstance().build(ConfigConstants.PATH_LEISURE_READ).navigation();
break;
case 9://小专栏
ARouter.getInstance().build(ConfigConstants.PATH_H5).withString("h5Url", "https://xiaozhuanlan.com/").navigation();
break;
}
});
poolBall.addView(floatingActionButton, layoutParams);
Expand All @@ -159,6 +162,7 @@ private List<GankMenuDto> getMenuList() {
gankMenuDtos.add(new GankMenuDto(getString(R.string.expand), R.drawable.ic_expand, 6));
gankMenuDtos.add(new GankMenuDto(getString(R.string.app), R.drawable.ic_app, 7));
gankMenuDtos.add(new GankMenuDto(getString(R.string.blind_recommend), R.drawable.ic_recommend, 8));
gankMenuDtos.add(new GankMenuDto(getString(R.string.xiaozhuanlan), R.drawable.ic_xiaozhuanlan, 9));
return gankMenuDtos;
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions module2/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
<string name="expand">拓展</string>
<string name="app">App</string>
<string name="blind_recommend">瞎推荐</string>
<string name="xiaozhuanlan">小专栏</string>
</resources>

0 comments on commit ab0c8d2

Please sign in to comment.