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

fix a FC

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