fix an issue on 2.3
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user