Skip to content

Commit

Permalink
Merge pull request geeeeeeeeek#71 from tttony3/stable
Browse files Browse the repository at this point in the history
修改响应Notification进入聊天后,可能误判不抢的Bug
  • Loading branch information
Zhongyi Tong authored and Zhongyi Tong committed Jan 28, 2016
2 parents 168e629 + 7509957 commit 5b99e86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ private boolean watchNotifications(AccessibilityEvent event) {
if (parcelable instanceof Notification) {
Notification notification = (Notification) parcelable;
try {
/* 清除signature,避免进入会话后误判*/
signature.cleanSignature();

notification.contentIntent.send();
} catch (PendingIntent.CanceledException e) {
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,11 @@ private String[] getSenderContentDescriptionFromNode(AccessibilityNodeInfo node)
}
return result;
}

public void cleanSignature(){
this.content = "";
this.time = "";
this.sender ="";
}

}

0 comments on commit 5b99e86

Please sign in to comment.