update actionbarsherlock

This commit is contained in:
Max Lv
2013-08-23 16:51:34 +08:00
parent 4febbc51e0
commit 41e7c75cb4
2 changed files with 8 additions and 2 deletions
@@ -368,7 +368,13 @@ class Shadowsocks
def initAdView() {
if (settings.getString(Key.proxy, "") == "198.199.101.152") {
val adView = new AdView(this, AdSize.SMART_BANNER, "a151becb8068b09")
val adView = {
if (isSinglePane) {
new AdView(this, AdSize.SMART_BANNER, "a151becb8068b09")
} else {
new AdView(this, AdSize.BANNER, "a151becb8068b09")
}
}
val layoutView = getLayoutView(getListView.asInstanceOf[ViewParent])
if (layoutView != null) {
layoutView.addView(adView, 0)