Commit 1f0110c4 authored by Max Lv's avatar Max Lv

fix

parent 4f0e95f7
......@@ -369,7 +369,7 @@ class Shadowsocks
def initAdView() {
if (settings.getString(Key.proxy, "") == "198.199.101.152") {
val adView = new AdView(this, AdSize.BANNER, "a151becb8068b09")
val layoutView = getLayoutView(getListview.asInstanceOf[ViewParent])
val layoutView = getLayoutView(getListView.asInstanceOf[ViewParent])
if (layoutView != null) {
layoutView.addView(adView, 0)
adView.loadAd(new AdRequest)
......
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