Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_flowbox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_flowbox
Commits
d80fbfe6
Commit
d80fbfe6
authored
Aug 04, 2021
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容小米手机隐藏提现
parent
41cea74f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
5 deletions
+28
-5
HomeFragment.kt
...c/main/java/com/mints/flowbox/ui/fragment/HomeFragment.kt
+10
-0
MyFragment.kt
...src/main/java/com/mints/flowbox/ui/fragment/MyFragment.kt
+16
-5
fragment_home.xml
app/src/main/res/layout/fragment_home.xml
+1
-0
fragment_main_my.xml
app/src/main/res/layout/fragment_main_my.xml
+1
-0
No files found.
app/src/main/java/com/mints/flowbox/ui/fragment/HomeFragment.kt
View file @
d80fbfe6
...
...
@@ -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
()
{
...
...
app/src/main/java/com/mints/flowbox/ui/fragment/MyFragment.kt
View file @
d80fbfe6
...
...
@@ -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
}
}
/** 初始化任务列表 */
...
...
app/src/main/res/layout/fragment_home.xml
View file @
d80fbfe6
...
...
@@ -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"
...
...
app/src/main/res/layout/fragment_main_my.xml
View file @
d80fbfe6
...
...
@@ -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=
"任务列表"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment