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
16ff5153
Commit
16ff5153
authored
Aug 04, 2021
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化锁屏页显示结果页问题及曝光重复问题
parent
9f2dc1d7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
20 deletions
+25
-20
IncreasespeedActivity.kt
...a/com/mints/flowbox/ui/activitys/IncreasespeedActivity.kt
+2
-0
ScreenActivity.kt
...om/mints/flowbox/ui/activitys/keepalive/ScreenActivity.kt
+17
-0
RoundRectLayout.java
...in/java/com/mints/flowbox/ui/widgets/RoundRectLayout.java
+0
-15
activity_increasespeed.xml
app/src/main/res/layout/activity_increasespeed.xml
+5
-4
item_recy_clean.xml
app/src/main/res/layout/item_recy_clean.xml
+1
-1
No files found.
app/src/main/java/com/mints/flowbox/ui/activitys/IncreasespeedActivity.kt
View file @
16ff5153
...
@@ -290,6 +290,8 @@ class IncreasespeedActivity : BaseActivity(), View.OnClickListener {
...
@@ -290,6 +290,8 @@ class IncreasespeedActivity : BaseActivity(), View.OnClickListener {
private
fun
cleanData
()
{
private
fun
cleanData
()
{
val
cleanData
=
mutableListOf
<
String
>()
val
cleanData
=
mutableListOf
<
String
>()
if
(
mIncreaseType
==
INCREASE_SPEED_TEST
)
return
// 是否超过两分钟
// 是否超过两分钟
if
(
TimeRender
.
isOverspedMin2
(
AppConfig
.
fakeBoostTime
,
2
))
{
if
(
TimeRender
.
isOverspedMin2
(
AppConfig
.
fakeBoostTime
,
2
))
{
cleanData
.
add
(
INCREASE_BOOST
)
cleanData
.
add
(
INCREASE_BOOST
)
...
...
app/src/main/java/com/mints/flowbox/ui/activitys/keepalive/ScreenActivity.kt
View file @
16ff5153
...
@@ -9,6 +9,8 @@ import com.mints.flowbox.BuildConfig
...
@@ -9,6 +9,8 @@ import com.mints.flowbox.BuildConfig
import
com.mints.flowbox.R
import
com.mints.flowbox.R
import
com.mints.flowbox.ad.AppOutScreenGroMoreCarrierExpressManager
import
com.mints.flowbox.ad.AppOutScreenGroMoreCarrierExpressManager
import
com.mints.flowbox.ad.ExpressAdCallback
import
com.mints.flowbox.ad.ExpressAdCallback
import
com.mints.flowbox.ad.express.ExpressManager
import
com.mints.flowbox.common.AppConfig
import
com.mints.flowbox.manager.AppPreferencesManager
import
com.mints.flowbox.manager.AppPreferencesManager
import
com.mints.flowbox.manager.wifi.WifiDataManager
import
com.mints.flowbox.manager.wifi.WifiDataManager
import
com.mints.flowbox.ui.activitys.IncreasespeedActivity
import
com.mints.flowbox.ui.activitys.IncreasespeedActivity
...
@@ -73,6 +75,11 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
...
@@ -73,6 +75,11 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
when
(
v
?.
id
)
{
when
(
v
?.
id
)
{
R
.
id
.
tvBoost
->
{
R
.
id
.
tvBoost
->
{
// 预加载信息流
ExpressManager
.
loadExpress
(
false
)
AppConfig
.
isCanBoost
=
true
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
bundle
.
putString
(
bundle
.
putString
(
IncreasespeedActivity
.
INCREASE_TYPE
,
IncreasespeedActivity
.
INCREASE_TYPE
,
...
@@ -81,6 +88,11 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
...
@@ -81,6 +88,11 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
readyGo
(
IncreasespeedActivity
::
class
.
java
,
bundle
)
readyGo
(
IncreasespeedActivity
::
class
.
java
,
bundle
)
}
}
R
.
id
.
tvClean
->
{
R
.
id
.
tvClean
->
{
// 预加载信息流
ExpressManager
.
loadExpress
(
false
)
AppConfig
.
isCanClean
=
true
// 一键清理
// 一键清理
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
bundle
.
putString
(
bundle
.
putString
(
...
@@ -90,6 +102,11 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
...
@@ -90,6 +102,11 @@ class ScreenActivity : OutAppActivity(), View.OnClickListener {
readyGo
(
IncreasespeedActivity
::
class
.
java
,
bundle
)
readyGo
(
IncreasespeedActivity
::
class
.
java
,
bundle
)
}
}
R
.
id
.
tvSaveBattery
->
{
R
.
id
.
tvSaveBattery
->
{
// 预加载信息流
ExpressManager
.
loadExpress
(
false
)
AppConfig
.
isCanSaveBattery
=
true
val
bundle
=
Bundle
()
val
bundle
=
Bundle
()
bundle
.
putString
(
bundle
.
putString
(
IncreasespeedActivity
.
INCREASE_TYPE
,
IncreasespeedActivity
.
INCREASE_TYPE
,
...
...
app/src/main/java/com/mints/flowbox/ui/widgets/RoundRectLayout.java
View file @
16ff5153
...
@@ -127,19 +127,4 @@ public class RoundRectLayout extends FrameLayout {
...
@@ -127,19 +127,4 @@ public class RoundRectLayout extends FrameLayout {
}
}
}
}
@Override
public
void
addView
(
View
child
)
{
super
.
addView
(
child
);
requestLayout
();
}
@Override
protected
void
onMeasure
(
int
widthMeasureSpec
,
int
heightMeasureSpec
)
{
super
.
onMeasure
(
widthMeasureSpec
,
heightMeasureSpec
);
final
int
count
=
getChildCount
();
for
(
int
i
=
0
;
i
<
count
;
i
++)
{
//重新计算view宽高,防止不显示
getChildAt
(
i
).
measure
(
widthMeasureSpec
,
heightMeasureSpec
);
}
}
}
}
\ No newline at end of file
app/src/main/res/layout/activity_increasespeed.xml
View file @
16ff5153
...
@@ -57,7 +57,8 @@
...
@@ -57,7 +57,8 @@
<RelativeLayout
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"50dp"
>
android:layout_marginTop=
"50dp"
android:layout_marginBottom=
"60dp"
>
<com.mints.flowbox.ui.widgets.DrawHookView
<com.mints.flowbox.ui.widgets.DrawHookView
android:id=
"@+id/dhv"
android:id=
"@+id/dhv"
...
@@ -92,7 +93,6 @@
...
@@ -92,7 +93,6 @@
android:id=
"@+id/recy_clean"
android:id=
"@+id/recy_clean"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"50dp"
android:overScrollMode=
"never"
android:overScrollMode=
"never"
android:visibility=
"gone"
/>
android:visibility=
"gone"
/>
...
@@ -102,11 +102,12 @@
...
@@ -102,11 +102,12 @@
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginStart=
"15dp"
android:layout_marginStart=
"15dp"
android:layout_marginTop=
"
2
0dp"
android:layout_marginTop=
"
1
0dp"
android:layout_marginEnd=
"15dp"
android:layout_marginEnd=
"15dp"
android:layout_marginBottom=
"10dp"
android:layout_marginBottom=
"10dp"
android:background=
"@drawable/shape_gold_card"
android:background=
"@drawable/shape_gold_card"
android:elevation=
"2dip"
/>
android:elevation=
"2dip"
android:gravity=
"center_horizontal"
/>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/layout/item_recy_clean.xml
View file @
16ff5153
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:layout_width=
"match_parent"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_margin=
"1
0
dp"
android:layout_margin=
"1
5
dp"
android:background=
"@drawable/shape_gold_card"
android:background=
"@drawable/shape_gold_card"
android:elevation=
"2dip"
android:elevation=
"2dip"
android:padding=
"10dp"
>
android:padding=
"10dp"
>
...
...
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