Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gb112211 committed Sep 17, 2016
1 parent 57c47dd commit 59cbfbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/scriptUtils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def get_focused_package_and_activity():
#out = shell("dumpsys window w | %s \/ | %s name=" %(find_util, find_util)).stdout.read()

#return pattern.findall(out)[0]
return shell("dumpsys activity | findstr mFocusedActivity").stdout.read().split()[-1][:-1]
return shell("dumpsys activity | %s mFocusedActivity" %find_util).stdout.read().split()[-1][:-1]

#获取当前应用的包名
def get_current_package_name():
Expand Down

0 comments on commit 59cbfbc

Please sign in to comment.