Commit a1c2af7d authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 42882ed1
/build /build
mapping.txt
seeds.txt
unused.txt
...@@ -49,7 +49,7 @@ public class OkHttpInterceptor implements Interceptor { ...@@ -49,7 +49,7 @@ public class OkHttpInterceptor implements Interceptor {
// // 穿山甲分包渠道 暂不开启 // // 穿山甲分包渠道 暂不开启
// String ttChannel = HumeSDK.getChannel(MintsApplication.getContext()); // String ttChannel = HumeSDK.getChannel(MintsApplication.getContext());
// if (!TextUtils.isEmpty(ttChannel)) { // if (!TextUtils.isEmpty(ttChannel)) {
// channel = ttChannel; // channel = channel + "_" + ttChannel;
// } // }
// } catch (Exception e) { // } catch (Exception e) {
// e.printStackTrace(); // e.printStackTrace();
......
...@@ -32,7 +32,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener { ...@@ -32,7 +32,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
override fun onHiddenChanged(hidden: Boolean) { override fun onHiddenChanged(hidden: Boolean) {
if (curPosition == 0) { if (curPosition == 0) {
mainFragment?.onHiddenChanged(hidden) mainFragment?.onHiddenChanged(hidden)
} else if (curPosition == 3) { } else if (curPosition == 2) {
dhGameFragment?.onHiddenChanged(hidden) dhGameFragment?.onHiddenChanged(hidden)
} }
super.onHiddenChanged(hidden) super.onHiddenChanged(hidden)
...@@ -49,7 +49,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener { ...@@ -49,7 +49,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
val tabs: MutableList<String> = ArrayList() val tabs: MutableList<String> = ArrayList()
tabs.add("视频") tabs.add("视频")
tabs.add("书城") tabs.add("书城")
tabs.add("新闻") // tabs.add("新闻")
tabs.add("游戏") tabs.add("游戏")
val fragments: MutableList<Fragment> = ArrayList() val fragments: MutableList<Fragment> = ArrayList()
...@@ -57,7 +57,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener { ...@@ -57,7 +57,7 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
dhGameFragment = DhGameFragment() dhGameFragment = DhGameFragment()
fragments.add(mainFragment!!) fragments.add(mainFragment!!)
fragments.add(ZhangyueFragment()) fragments.add(ZhangyueFragment())
fragments.add(RsNewsFragment()) // fragments.add(RsNewsFragment())
fragments.add(dhGameFragment!!) fragments.add(dhGameFragment!!)
//去除两侧应阴影 //去除两侧应阴影
...@@ -85,10 +85,10 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener { ...@@ -85,10 +85,10 @@ class MoneyFragment : BaseFragment(), XTabLayout.OnTabSelectedListener {
} }
override fun onTabSelected(tab: XTabLayout.Tab) { override fun onTabSelected(tab: XTabLayout.Tab) {
if (tab.position == 3) { if (tab.position == 2) {
if (!UserManager.getInstance().userIsLogin()) { if (!UserManager.getInstance().userIsLogin()) {
readyGo(WxLoginActivity::class.java) readyGo(WxLoginActivity::class.java)
vpFragmentMoney.currentItem = if (curPosition == 3) 0 else curPosition vpFragmentMoney.currentItem = if (curPosition == 2) 0 else curPosition
return 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