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
28e69ee3
Commit
28e69ee3
authored
Apr 21, 2015
by
Grigory Fedorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chat messages scrolled to bottom after update.
parent
87ee4a6e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ChatViewerFragment.java
...c/main/java/com/xabber/android/ui/ChatViewerFragment.java
+3
-1
chat_viewer_item.xml
app/src/main/res/layout/chat_viewer_item.xml
+0
-2
No files found.
app/src/main/java/com/xabber/android/ui/ChatViewerFragment.java
View file @
28e69ee3
...
...
@@ -80,6 +80,7 @@ public class ChatViewerFragment extends Fragment implements PopupMenu.OnMenuItem
private
ChatViewerFragmentListener
listener
;
private
Animation
shakeAnimation
=
null
;
private
int
contextMenuItemPosition
;
private
RecyclerView
recyclerView
;
public
static
ChatViewerFragment
newInstance
(
String
account
,
String
user
)
{
ChatViewerFragment
fragment
=
new
ChatViewerFragment
();
...
...
@@ -158,7 +159,7 @@ public class ChatViewerFragment extends Fragment implements PopupMenu.OnMenuItem
chatMessageAdapter
=
new
ChatMessageAdapter
(
getActivity
(),
account
,
user
,
this
);
RecyclerView
recyclerView
=
(
RecyclerView
)
view
.
findViewById
(
R
.
id
.
chat_messages_recycler_view
);
recyclerView
=
(
RecyclerView
)
view
.
findViewById
(
R
.
id
.
chat_messages_recycler_view
);
recyclerView
.
setAdapter
(
chatMessageAdapter
);
LinearLayoutManager
layoutManager
=
new
LinearLayoutManager
(
getActivity
());
...
...
@@ -414,6 +415,7 @@ public class ChatViewerFragment extends Fragment implements PopupMenu.OnMenuItem
public
void
updateChat
()
{
chatMessageAdapter
.
onChange
();
recyclerView
.
scrollToPosition
(
chatMessageAdapter
.
getItemCount
()
-
1
);
setUpOptionsMenu
(
toolbar
.
getMenu
());
updateSecurityButton
();
...
...
app/src/main/res/layout/chat_viewer_item.xml
View file @
28e69ee3
...
...
@@ -44,8 +44,6 @@
android:layout_height=
"wrap_content"
android:scrollbars=
"vertical"
android:transcriptMode=
"normal"
android:smoothScrollbar=
"false"
android:divider=
"@null"
android:dividerHeight=
"0dp"
android:layout_above=
"@+id/input_layout"
...
...
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