Commit 095d1718 authored by jyx's avatar jyx

代码优化

parent 73b953e5
...@@ -70,12 +70,15 @@ class SignalStrengthActivity : BaseActivity(), View.OnClickListener { ...@@ -70,12 +70,15 @@ class SignalStrengthActivity : BaseActivity(), View.OnClickListener {
} }
private fun loadAd() { private fun loadAd() {
if (mIsFromAppOut) { if (Utils.canLoadAd()) {
WifiAdManager.instance.loadNoticeAppOutAd(this, Constant.CARRIER_WIFI_BOOST)
overridePendingTransition(0, 0) if (mIsFromAppOut) {
} else { WifiAdManager.instance.loadNoticeAppOutAd(this, Constant.CARRIER_WIFI_BOOST)
WifiAdManager.instance.loadWifiAd(this, Constant.CARRIER_WIFI_BOOST)
overridePendingTransition(0, 0)
} else {
WifiAdManager.instance.loadWifiAd(this, Constant.CARRIER_WIFI_BOOST)
}
} }
} }
......
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