Commit 16ff5153 authored by jyx's avatar jyx

优化锁屏页显示结果页问题及曝光重复问题

parent 9f2dc1d7
...@@ -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)
......
...@@ -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,
......
...@@ -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
...@@ -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="20dp" android:layout_marginTop="10dp"
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>
......
...@@ -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="10dp" android:layout_margin="15dp"
android:background="@drawable/shape_gold_card" android:background="@drawable/shape_gold_card"
android:elevation="2dip" android:elevation="2dip"
android:padding="10dp"> android:padding="10dp">
......
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