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

fix an issue on 2.3

parent 132454d7
...@@ -5,8 +5,8 @@ import sbtandroid._ ...@@ -5,8 +5,8 @@ import sbtandroid._
import sbtandroid.AndroidPlugin._ import sbtandroid.AndroidPlugin._
object App { object App {
val version = "2.0.3" val version = "2.0.4"
val versionCode = 54 val versionCode = 55
} }
object General { object General {
......
...@@ -466,7 +466,13 @@ class Shadowsocks ...@@ -466,7 +466,13 @@ class Shadowsocks
def initAdView() { def initAdView() {
if (settings.getString(Key.proxy, "") == "198.199.101.152") { 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) { if (layoutView != null) {
val adView = { val adView = {
if (isSinglePane) { 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