This commit is contained in:
Max Lv
2013-08-21 12:59:07 +08:00
parent 4f0e95f72d
commit 1f0110c445
@@ -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)