mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
More memory cleanups
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
74691aa278
commit
b7a47b3972
@ -297,7 +297,6 @@ public class CallNotificationController extends BaseController {
|
|||||||
|
|
||||||
if (handler == null) {
|
if (handler == null) {
|
||||||
handler = new Handler();
|
handler = new Handler();
|
||||||
|
|
||||||
ncApi = ApplicationWideApiHolder.getInstance().getNcApiInstanceForAccountId(userBeingCalled.getId(), null);
|
ncApi = ApplicationWideApiHolder.getInstance().getNcApiInstanceForAccountId(userBeingCalled.getId(), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -469,6 +469,7 @@ public class ChatController extends BaseController implements MessagesListAdapte
|
|||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
adapter = null;
|
||||||
inChat = false;
|
inChat = false;
|
||||||
ApplicationWideCurrentRoomHolder.getInstance().clear();
|
ApplicationWideCurrentRoomHolder.getInstance().clear();
|
||||||
leaveRoom();
|
leaveRoom();
|
||||||
|
Loading…
Reference in New Issue
Block a user