Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit 0e2fcee

Browse files
harshitagupta30kunall17
authored andcommitted
Issue#365 Leak in LoginActivity has been removed.
1 parent 4559fb8 commit 0e2fcee

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

app/src/main/java/com/zulip/android/activities/DevAuthActivity.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,13 @@ public void openHome() {
9393
startActivity(i);
9494
finish();
9595
}
96+
97+
@Override
98+
protected void onDestroy() {
99+
super.onDestroy();
100+
if (commonProgressDialog != null && commonProgressDialog.isShowing()) {
101+
commonProgressDialog.dismiss();
102+
}
103+
}
104+
96105
}

app/src/main/java/com/zulip/android/activities/LoginActivity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ protected void onStop() {
213213
super.onStop();
214214
}
215215

216+
@Override
217+
protected void onDestroy() {
218+
super.onDestroy();
219+
if (commonProgressDialog != null && commonProgressDialog.isShowing()) {
220+
commonProgressDialog.dismiss();
221+
}
222+
}
223+
216224
private void checkForError() {
217225
String serverURL = serverIn.getText().toString();
218226

0 commit comments

Comments
 (0)