Commit d80fbfe6 authored by mengcuiguang2's avatar mengcuiguang2

兼容小米手机隐藏提现

parent 41cea74f
......@@ -12,6 +12,7 @@ import android.view.View
import android.widget.AdapterView
import android.widget.GridView
import androidx.recyclerview.widget.DividerItemDecoration
import com.mints.flowbox.MintsApplication
import com.mints.flowbox.R
import com.mints.flowbox.ad.express.ExpressManager
import com.mints.flowbox.ad.video.PreCsjGroMoreVideoAdManager
......@@ -35,10 +36,13 @@ import com.mints.flowbox.ui.widgets.RecyItemDecoration
import com.mints.flowbox.ui.widgets.WifiView
import com.mints.flowbox.utils.WifiUtils
import com.mints.library.net.netstatus.NetUtils
import com.mints.library.utils.CommonUtils
import com.mints.library.utils.nodoubleclick.AntiShake
import com.rd.animation.type.AnimationType
import com.tbruyelle.rxpermissions.RxPermissions
import kotlinx.android.synthetic.main.fragment_home.*
import kotlinx.android.synthetic.main.fragment_main_my.*
import kotlinx.android.synthetic.main.item_fragment_main_my_title.*
import kotlinx.android.synthetic.main.item_promotions.*
import kotlin.math.ceil
......@@ -105,6 +109,12 @@ class HomeFragment : BaseFragment(), WifiStateManager.WifiStateCallback,
bg_view.setBackgroundResource(R.mipmap.bg_home_unenable)
wifi_view.wifiOff()
}
if (AntiAuditManager.instance.isBlack()) {
tv_home_moneytitle.visibility=View.INVISIBLE
}else{
tv_home_moneytitle.visibility=View.VISIBLE
}
}
private fun initListener() {
......
......@@ -16,8 +16,6 @@ import androidx.recyclerview.widget.DividerItemDecoration
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import com.mints.flowbox.BuildConfig
import com.mints.flowbox.MintsApplication
import com.mints.library.net.netstatus.NetUtils
import com.mints.library.utils.nodoubleclick.AntiShake
import com.mints.flowbox.R
import com.mints.flowbox.ad.banner.BannerManager
import com.mints.flowbox.ad.express.TTPreLoadExpressXmlyManager
......@@ -28,7 +26,8 @@ import com.mints.flowbox.common.AppConfig
import com.mints.flowbox.common.Constant
import com.mints.flowbox.keepalive.appswitch.AntiAuditManager
import com.mints.flowbox.manager.*
import com.mints.flowbox.mvp.model.*
import com.mints.flowbox.mvp.model.MyInfo
import com.mints.flowbox.mvp.model.VideoAdingBean
import com.mints.flowbox.mvp.presenters.MyPresenter
import com.mints.flowbox.mvp.views.MyView
import com.mints.flowbox.service.AppInstallService
......@@ -44,11 +43,11 @@ import com.mints.flowbox.ui.widgets.seekbar.BubbleUtils
import com.mints.flowbox.utils.AppUtil
import com.mints.flowbox.utils.SpanUtils
import com.mints.flowbox.utils.ToolUtil
import com.mints.library.net.netstatus.NetUtils
import com.mints.library.utils.CommonUtils
import com.mints.library.utils.GlideUtils
import com.mints.library.utils.nodoubleclick.AntiShake
import kotlinx.android.synthetic.main.fragment_main_my.*
import kotlinx.android.synthetic.main.fragment_main_my.swipeRefreshLayout
import kotlinx.android.synthetic.main.fragment_wifi.*
import kotlinx.android.synthetic.main.header_layout.*
import kotlinx.android.synthetic.main.item_fragment_main_my_title.*
import kotlinx.android.synthetic.main.view_title.*
......@@ -767,6 +766,18 @@ class MyFragment : BaseFragment(),
item_title_friends.setOnClickListener(this)
ll_my_login.setOnClickListener(this)
swipeRefreshLayout.setOnRefreshListener(this)
if (AntiAuditManager.instance.isBlack()) {
if(TextUtils.equals("xiaomi", CommonUtils.getAppMetaData(MintsApplication.getContext(), "CHANNEL_NAME"))){
btn_withdraw.visibility=View.INVISIBLE
}
tv_my_tasktitle.visibility=View.INVISIBLE
item_title_friends.visibility=View.INVISIBLE
}else{
btn_withdraw.visibility=View.VISIBLE
tv_my_tasktitle.visibility=View.VISIBLE
item_title_friends.visibility=View.VISIBLE
}
}
/** 初始化任务列表 */
......
......@@ -158,6 +158,7 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<TextView
android:id="@+id/tv_home_moneytitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="15dp"
......
......@@ -55,6 +55,7 @@
android:padding="10dp">
<TextView
android:id="@+id/tv_my_tasktitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="任务列表"
......
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