Commit 095d1718 authored by jyx's avatar jyx

代码优化

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