From 398adfeecee3496ea1d98a1a28b24da071316908 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Thu, 23 May 2019 15:23:03 +0400 Subject: [PATCH] Added logout system. Fixed bug when logging in (when network error). Code cleanup. --- .idea/misc.xml | 5 ++++ .../chronosx88/influence/XMPPConnection.java | 3 ++ .../influence/XMPPConnectionService.java | 4 +-- .../influence/contracts/CoreContracts.kt | 4 +++ .../influence/helpers/AppHelper.java | 14 +++++++--- .../influence/helpers/LocalDBWrapper.java | 5 ++++ .../influence/helpers/ObservableActions.java | 22 --------------- .../chronosx88/influence/logic/MainLogic.java | 10 +++++++ .../influence/models/daos/ChatDao.java | 3 ++ .../influence/models/daos/MessageDao.java | 3 ++ .../presenters/DialogListPresenter.java | 17 +++++++++++ .../influence/presenters/MainPresenter.kt | 16 ++++++++--- .../influence/views/LoginActivity.java | 2 ++ .../influence/views/MainActivity.java | 28 +++++++++++++++++++ app/src/main/res/layout/activity_login.xml | 9 +++--- app/src/main/res/menu/main_actionbar_menu.xml | 8 +++++- app/src/main/res/values-ru-rRU/strings.xml | 10 ++----- app/src/main/res/values/strings.xml | 10 ++----- app/src/main/res/values/styles.xml | 2 +- 19 files changed, 123 insertions(+), 52 deletions(-) delete mode 100644 app/src/main/java/io/github/chronosx88/influence/helpers/ObservableActions.java diff --git a/.idea/misc.xml b/.idea/misc.xml index cc04cd3..d8fe25a 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,5 +1,10 @@ + + + + +