Skip to content

Commit

Permalink
fix keep
Browse files Browse the repository at this point in the history
  • Loading branch information
kennth committed Aug 5, 2016
1 parent 64e0eac commit 4e0dd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobtask.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func keepActivityAlive(id int) {
//CheckErr(err)
if geterr == nil {
curactivity = string(f)
if curactivity != nil && len(curactivity) > 5 && strings.Index(curactivity, packname) > 0 {
if len(curactivity) > 5 && strings.Index(curactivity, packname) > 0 {
curactivity = curactivity[strings.Index(curactivity, packname) : len(curactivity)-3]
}
//fmt.Println("adb -s " + phoneid + " shell am start -n " + activity)
Expand Down

0 comments on commit 4e0dd75

Please sign in to comment.