Commit a1c2af7d authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 42882ed1
/build
mapping.txt
seeds.txt
unused.txt
......@@ -46,10 +46,10 @@ public class OkHttpInterceptor implements Interceptor {
String channel = CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME");
// try {
// // 穿山甲分包渠道 暂不开启
// // 穿山甲分包渠道 暂不开启
// String ttChannel = HumeSDK.getChannel(MintsApplication.getContext());
// if (!TextUtils.isEmpty(ttChannel)) {
// channel = ttChannel;
// channel = channel + "_" + ttChannel;
// }
// } catch (Exception e) {
// e.printStackTrace();
......
......@@ -32,7 +32,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
override fun onHiddenChanged(hidden: Boolean) {
if (curPosition == 0) {
mainFragment?.onHiddenChanged(hidden)
} else if (curPosition == 3) {
} else if (curPosition == 2) {
dhGameFragment?.onHiddenChanged(hidden)
}
super.onHiddenChanged(hidden)
......@@ -49,7 +49,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
val tabs: MutableList<String> = ArrayList()
tabs.add("视频")
tabs.add("书城")
tabs.add("新闻")
// tabs.add("新闻")
tabs.add("游戏")
val fragments: MutableList<Fragment> = ArrayList()
......@@ -57,7 +57,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
dhGameFragment = DhGameFragment()
fragments.add(mainFragment!!)
fragments.add(ZhangyueFragment())
fragments.add(RsNewsFragment())
// fragments.add(RsNewsFragment())
fragments.add(dhGameFragment!!)
//去除两侧应阴影
......@@ -85,10 +85,10 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
}
override fun onTabSelected(tab: XTabLayout.Tab) {
if (tab.position == 3) {
if (tab.position == 2) {
if (!UserManager.getInstance().userIsLogin()) {
readyGo(WxLoginActivity::class.java)
vpFragmentMoney.currentItem = if (curPosition == 3) 0 else curPosition
vpFragmentMoney.currentItem = if (curPosition == 2) 0 else curPosition
return
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment