Commit 83261c3e authored by Max Lv's avatar Max Lv

fix an issue on 2.3

parent 132454d7
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment