Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-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
AloqaIM-Android
Commits
05acd3d1
Commit
05acd3d1
authored
Aug 30, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update SidebarMainFragment.java
parent
ff9f5f1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
SidebarMainFragment.java
.../rocket/android/fragment/sidebar/SidebarMainFragment.java
+7
-15
No files found.
app/src/main/java/chat/rocket/android/fragment/sidebar/SidebarMainFragment.java
View file @
05acd3d1
...
@@ -123,9 +123,9 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
...
@@ -123,9 +123,9 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
adapter
=
new
RoomListAdapter
();
adapter
=
new
RoomListAdapter
();
adapter
.
setOnItemClickListener
(
new
RoomListAdapter
.
OnItemClickListener
()
{
adapter
.
setOnItemClickListener
(
new
RoomListAdapter
.
OnItemClickListener
()
{
@Override
@Override
public
void
onItemClick
(
Room
room
)
{
searchView
.
clearFocus
();
searchView
.
clearFocus
();
presenter
.
onRoomSelected
(
room
);
public
void
onItemClick
(
RoomSidebar
roomSidebar
)
{
presenter
.
onRoomSelected
(
roomSidebar
);
}
}
@Override
@Override
...
@@ -187,13 +187,8 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
...
@@ -187,13 +187,8 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
}
}
@Override
@Override
public
void
showRoomList
(
@NonNull
List
<
Room
>
roomList
)
{
public
void
showRoomSidebarList
(
@NonNull
List
<
RoomSidebar
>
roomSidebarList
)
{
adapter
.
setRooms
(
roomList
);
adapter
.
setRoomSidebarList
(
roomSidebarList
);
}
@Override
public
void
showUserStatus
(
@NonNull
User
user
)
{
adapter
.
setUserStatus
(
user
);
}
}
@Override
@Override
...
@@ -233,12 +228,9 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
...
@@ -233,12 +228,9 @@ public class SidebarMainFragment extends AbstractFragment implements SidebarMain
private
void
updateRoomListMode
(
User
user
)
{
private
void
updateRoomListMode
(
User
user
)
{
final
List
<
RoomListHeader
>
roomListHeaders
=
new
ArrayList
<>();
final
List
<
RoomListHeader
>
roomListHeaders
=
new
ArrayList
<>();
if
(
user
!=
null
&&
user
.
getSettings
()
!=
null
&&
user
.
getSettings
().
getPreferences
()
!=
null
roomListHeaders
.
add
(
new
UnreadRoomListHeader
(
&&
user
.
getSettings
().
getPreferences
().
isUnreadRoomsMode
())
{
getString
(
R
.
string
.
fragment_sidebar_main_unread_rooms_title
)
roomListHeaders
.
add
(
new
UnreadRoomListHeader
(
));
getString
(
R
.
string
.
fragment_sidebar_main_unread_rooms_title
)
));
}
roomListHeaders
.
add
(
new
FavoriteRoomListHeader
(
roomListHeaders
.
add
(
new
FavoriteRoomListHeader
(
getString
(
R
.
string
.
fragment_sidebar_main_favorite_title
)
getString
(
R
.
string
.
fragment_sidebar_main_favorite_title
)
...
...
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