Skip to content

Commit 6673cf4

Browse files
author
plamen5kov
committed
fixed occasional app failure
1 parent 260424b commit 6673cf4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/src/com/tns/ErrorReportActivity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ public void onCreate(Bundle savedInstanceState) {
99
super.onCreate(savedInstanceState);
1010
new ErrorReport(this).buildUI();
1111
}
12+
13+
@Override
14+
protected void onPause()
15+
{
16+
//the moment the error activity is not in the foreground we want to kill the process
17+
super.onPause();
18+
ErrorReport.killProcess(this);
19+
}
1220
}

0 commit comments

Comments
 (0)