Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xabber-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
xabber-android
Commits
1d11c4b1
Commit
1d11c4b1
authored
May 15, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MessageManager removed active chats on account disable. #441
parent
5b19c90a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
MessageManager.java
.../java/com/xabber/android/data/message/MessageManager.java
+8
-2
No files found.
app/src/main/java/com/xabber/android/data/message/MessageManager.java
View file @
1d11c4b1
...
@@ -27,6 +27,7 @@ import com.xabber.android.data.account.AccountItem;
...
@@ -27,6 +27,7 @@ import com.xabber.android.data.account.AccountItem;
import
com.xabber.android.data.account.AccountManager
;
import
com.xabber.android.data.account.AccountManager
;
import
com.xabber.android.data.account.ArchiveMode
;
import
com.xabber.android.data.account.ArchiveMode
;
import
com.xabber.android.data.account.OnAccountArchiveModeChangedListener
;
import
com.xabber.android.data.account.OnAccountArchiveModeChangedListener
;
import
com.xabber.android.data.account.OnAccountDisabledListener
;
import
com.xabber.android.data.account.OnAccountRemovedListener
;
import
com.xabber.android.data.account.OnAccountRemovedListener
;
import
com.xabber.android.data.account.StatusMode
;
import
com.xabber.android.data.account.StatusMode
;
import
com.xabber.android.data.connection.ConnectionItem
;
import
com.xabber.android.data.connection.ConnectionItem
;
...
@@ -68,8 +69,8 @@ import java.util.Set;
...
@@ -68,8 +69,8 @@ import java.util.Set;
* @author alexander.ivanov
* @author alexander.ivanov
*/
*/
public
class
MessageManager
implements
OnLoadListener
,
OnPacketListener
,
OnDisconnectListener
,
public
class
MessageManager
implements
OnLoadListener
,
OnPacketListener
,
OnDisconnectListener
,
OnAccountRemovedListener
,
On
RosterReceivedListener
,
OnAccountArchiveModeChang
edListener
,
OnAccountRemovedListener
,
On
AccountDisabledListener
,
OnRosterReceiv
edListener
,
OnStatusChangeListener
{
On
AccountArchiveModeChangedListener
,
On
StatusChangeListener
{
private
final
static
MessageManager
instance
;
private
final
static
MessageManager
instance
;
...
@@ -574,6 +575,11 @@ public class MessageManager implements OnLoadListener, OnPacketListener, OnDisco
...
@@ -574,6 +575,11 @@ public class MessageManager implements OnLoadListener, OnPacketListener, OnDisco
chats
.
clear
(
accountItem
.
getAccount
());
chats
.
clear
(
accountItem
.
getAccount
());
}
}
@Override
public
void
onAccountDisabled
(
AccountItem
accountItem
)
{
chats
.
clear
(
accountItem
.
getAccount
());
}
/**
/**
* Export chat to file with specified name.
* Export chat to file with specified name.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment