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
acdd7f22
Commit
acdd7f22
authored
May 29, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ContactList: active chats update improved.
parent
7a47a25e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
ContactList.java
app/src/main/java/com/xabber/android/ui/ContactList.java
+10
-1
No files found.
app/src/main/java/com/xabber/android/ui/ContactList.java
View file @
acdd7f22
...
@@ -53,6 +53,7 @@ import com.xabber.android.data.extension.muc.MUCManager;
...
@@ -53,6 +53,7 @@ import com.xabber.android.data.extension.muc.MUCManager;
import
com.xabber.android.data.intent.EntityIntentBuilder
;
import
com.xabber.android.data.intent.EntityIntentBuilder
;
import
com.xabber.android.data.message.AbstractChat
;
import
com.xabber.android.data.message.AbstractChat
;
import
com.xabber.android.data.message.MessageManager
;
import
com.xabber.android.data.message.MessageManager
;
import
com.xabber.android.data.message.OnChatChangedListener
;
import
com.xabber.android.data.message.chat.ChatManager
;
import
com.xabber.android.data.message.chat.ChatManager
;
import
com.xabber.android.data.notification.NotificationManager
;
import
com.xabber.android.data.notification.NotificationManager
;
import
com.xabber.android.data.roster.AbstractContact
;
import
com.xabber.android.data.roster.AbstractContact
;
...
@@ -76,7 +77,7 @@ import java.util.Collection;
...
@@ -76,7 +77,7 @@ import java.util.Collection;
* @author alexander.ivanov
* @author alexander.ivanov
*/
*/
public
class
ContactList
extends
ChatIntentActivity
implements
OnAccountChangedListener
,
public
class
ContactList
extends
ChatIntentActivity
implements
OnAccountChangedListener
,
View
.
OnClickListener
,
OnChoosedListener
,
OnContactClickListener
,
Toolbar
.
OnMenuItemClickListener
{
View
.
OnClickListener
,
OnChoosedListener
,
OnContactClickListener
,
Toolbar
.
OnMenuItemClickListener
,
OnChatChangedListener
{
/**
/**
* Select contact to be invited to the room was requested.
* Select contact to be invited to the room was requested.
...
@@ -258,6 +259,7 @@ public class ContactList extends ChatIntentActivity implements OnAccountChangedL
...
@@ -258,6 +259,7 @@ public class ContactList extends ChatIntentActivity implements OnAccountChangedL
barPainter
.
setDefaultColor
();
barPainter
.
setDefaultColor
();
rebuildAccountToggle
();
rebuildAccountToggle
();
Application
.
getInstance
().
addUIListener
(
OnAccountChangedListener
.
class
,
this
);
Application
.
getInstance
().
addUIListener
(
OnAccountChangedListener
.
class
,
this
);
Application
.
getInstance
().
addUIListener
(
OnChatChangedListener
.
class
,
this
);
if
(
action
!=
null
)
{
if
(
action
!=
null
)
{
switch
(
action
)
{
switch
(
action
)
{
...
@@ -337,6 +339,7 @@ public class ContactList extends ChatIntentActivity implements OnAccountChangedL
...
@@ -337,6 +339,7 @@ public class ContactList extends ChatIntentActivity implements OnAccountChangedL
super
.
onPause
();
super
.
onPause
();
hideKeyboard
();
hideKeyboard
();
Application
.
getInstance
().
removeUIListener
(
OnAccountChangedListener
.
class
,
this
);
Application
.
getInstance
().
removeUIListener
(
OnAccountChangedListener
.
class
,
this
);
Application
.
getInstance
().
removeUIListener
(
OnChatChangedListener
.
class
,
this
);
}
}
private
void
hideKeyboard
()
{
private
void
hideKeyboard
()
{
...
@@ -619,6 +622,7 @@ public class ContactList extends ChatIntentActivity implements OnAccountChangedL
...
@@ -619,6 +622,7 @@ public class ContactList extends ChatIntentActivity implements OnAccountChangedL
@Override
@Override
public
void
onClose
(
BaseEntity
chat
)
{
public
void
onClose
(
BaseEntity
chat
)
{
MessageManager
.
getInstance
().
closeChat
(
chat
.
getAccount
(),
chat
.
getUser
());
ChatManager
.
getInstance
().
setSelectedChat
(
null
);
ChatManager
.
getInstance
().
setSelectedChat
(
null
);
if
(
ChatManager
.
getInstance
().
getInitialChat
().
equals
(
chat
))
{
if
(
ChatManager
.
getInstance
().
getInitialChat
().
equals
(
chat
))
{
...
@@ -626,6 +630,11 @@ public class ContactList extends ChatIntentActivity implements OnAccountChangedL
...
@@ -626,6 +630,11 @@ public class ContactList extends ChatIntentActivity implements OnAccountChangedL
}
}
chatScroller
.
update
();
chatScroller
.
update
();
getContactListFragment
().
getAdapter
().
onChange
();
}
}
@Override
public
void
onChatChanged
(
String
account
,
String
user
,
boolean
incoming
)
{
getContactListFragment
().
getAdapter
().
onChange
();
}
}
}
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