mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Dispose everything on destroy
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
f430f46628
commit
4addd43aa2
@ -212,6 +212,12 @@ public class AccountVerificationController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
dispose(null);
|
||||||
|
}
|
||||||
|
|
||||||
private void abortVerification() {
|
private void abortVerification() {
|
||||||
dispose(null);
|
dispose(null);
|
||||||
|
|
||||||
|
@ -360,6 +360,12 @@ public class CallsListController extends BaseController implements SearchView.On
|
|||||||
searchQuery = savedViewState.getString(KEY_SEARCH_QUERY, "");
|
searchQuery = savedViewState.getString(KEY_SEARCH_QUERY, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
dispose(null);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onQueryTextChange(String newText) {
|
public boolean onQueryTextChange(String newText) {
|
||||||
if (adapter.hasNewSearchText(newText) || !TextUtils.isEmpty(searchQuery)) {
|
if (adapter.hasNewSearchText(newText) || !TextUtils.isEmpty(searchQuery)) {
|
||||||
|
@ -407,6 +407,12 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
searchQuery = savedViewState.getString(KEY_SEARCH_QUERY, "");
|
searchQuery = savedViewState.getString(KEY_SEARCH_QUERY, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
dispose(null);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onQueryTextChange(String newText) {
|
public boolean onQueryTextChange(String newText) {
|
||||||
if (adapter.hasNewSearchText(newText) || !TextUtils.isEmpty(searchQuery)) {
|
if (adapter.hasNewSearchText(newText) || !TextUtils.isEmpty(searchQuery)) {
|
||||||
|
@ -169,6 +169,12 @@ public class ServerSelectionController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
dispose();
|
||||||
|
}
|
||||||
|
|
||||||
private void dispose() {
|
private void dispose() {
|
||||||
if (statusQueryDisposable != null && !statusQueryDisposable.isDisposed()) {
|
if (statusQueryDisposable != null && !statusQueryDisposable.isDisposed()) {
|
||||||
statusQueryDisposable.dispose();
|
statusQueryDisposable.dispose();
|
||||||
|
@ -274,6 +274,12 @@ public class WebViewLoginController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onDestroy() {
|
||||||
|
super.onDestroy();
|
||||||
|
dispose();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onDestroyView(@NonNull View view) {
|
protected void onDestroyView(@NonNull View view) {
|
||||||
super.onDestroyView(view);
|
super.onDestroyView(view);
|
||||||
|
Loading…
Reference in New Issue
Block a user