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,11 +299,13 @@ object Utils { ...@@ -299,11 +299,13 @@ object Utils {
.asInstanceOf[ActivityManager] .asInstanceOf[ActivityManager]
val services = activityManager.getRunningServices(Integer.MAX_VALUE) val services = activityManager.getRunningServices(Integer.MAX_VALUE)
if (services != null) {
for (service <- services) { for (service <- services) {
if (service.service.getClassName == name) { if (service.service.getClassName == name) {
return true return true
} }
} }
}
false false
} }
......
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