Commit 4085c186 authored by Max Lv's avatar Max Lv

fix a FC

parent ae058a5a
...@@ -5,8 +5,8 @@ import sbtandroid._ ...@@ -5,8 +5,8 @@ import sbtandroid._
import sbtandroid.AndroidPlugin._ import sbtandroid.AndroidPlugin._
object App { object App {
val version = "1.8.2" val version = "1.8.3"
val versionCode = 47 val versionCode = 48
} }
object General { object General {
......
...@@ -299,9 +299,11 @@ object Utils { ...@@ -299,9 +299,11 @@ object Utils {
.asInstanceOf[ActivityManager] .asInstanceOf[ActivityManager]
val services = activityManager.getRunningServices(Integer.MAX_VALUE) val services = activityManager.getRunningServices(Integer.MAX_VALUE)
for (service <- services) { if (services != null) {
if (service.service.getClassName == name) { for (service <- services) {
return true if (service.service.getClassName == name) {
return true
}
} }
} }
......
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