update actionbarsherlock
This commit is contained in:
@@ -11,7 +11,7 @@ libraryDependencies ++= Seq(
|
||||
)
|
||||
|
||||
libraryDependencies ++= Seq(
|
||||
"com.actionbarsherlock" % "actionbarsherlock" % "4.2.0" artifacts(Artifact("actionbarsherlock", "apklib", "apklib")),
|
||||
"com.actionbarsherlock" % "actionbarsherlock" % "4.4.0" artifacts(Artifact("actionbarsherlock", "apklib", "apklib")),
|
||||
"net.saik0.android.unifiedpreference" % "unifiedpreference" % "0.0.2" artifacts(Artifact("unifiedpreference", "apklib", "apklib")),
|
||||
"org.jraf" % "android-switch-backport" % "1.0" artifacts(Artifact("android-switch-backport", "apklib", "apklib")),
|
||||
"de.keyboardsurfer.android.widget" % "crouton" % "1.7"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user