This commit is contained in:
Max Lv
2013-09-11 15:30:01 +08:00
parent ae058a5a24
commit 4085c186b5
2 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -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
}
}
}