Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Nov 27, 2018
2 parents 21d9986 + 783a062 commit 4655a7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/com/github/uiautomator/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -241,5 +241,9 @@ public void onBackPressed() {
@Override
protected void onDestroy() {
super.onDestroy();
// must unbind service, otherwise it will leak memory
unbindService(connection);
connection = null;
Log.i(TAG, "unbind service");
}
}

0 comments on commit 4655a7c

Please sign in to comment.