fix an issue on 2.3

This commit is contained in:
Max Lv
2013-11-09 15:15:33 +08:00
parent 132454d731
commit 83261c3eb6
2 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import sbtandroid._
import sbtandroid.AndroidPlugin._
object App {
val version = "2.0.3"
val versionCode = 54
val version = "2.0.4"
val versionCode = 55
}
object General {
@@ -466,7 +466,13 @@ class Shadowsocks
def initAdView() {
if (settings.getString(Key.proxy, "") == "198.199.101.152") {
val layoutView = drawer.getContentContainer.asInstanceOf[ViewGroup].getChildAt(0)
val layoutView = {
if (Build.VERSION.SDK_INT > 10) {
drawer.getContentContainer.asInstanceOf[ViewGroup].getChildAt(0)
} else {
drawer.getContentContainer.getParent
}
}
if (layoutView != null) {
val adView = {
if (isSinglePane) {