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
55a924a5
Commit
55a924a5
authored
Jan 16, 2017
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pmd issues
parent
ad76db4a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
RoomFragment.java
...a/chat/rocket/android/fragment/chatroom/RoomFragment.java
+3
-3
RecyclerViewScrolledToBottomListener.java
.../android/helper/RecyclerViewScrolledToBottomListener.java
+2
-2
AbstractNewMessageIndicatorManager.java
...uthelper/chatroom/AbstractNewMessageIndicatorManager.java
+1
-1
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/RoomFragment.java
View file @
55a924a5
...
...
@@ -33,7 +33,7 @@ import chat.rocket.android.helper.RecyclerViewScrolledToBottomListener;
import
chat.rocket.android.helper.TextUtils
;
import
chat.rocket.android.layouthelper.chatroom.MessageFormManager
;
import
chat.rocket.android.layouthelper.chatroom.MessageListAdapter
;
import
chat.rocket.android.layouthelper.chatroom.NewMessageIndicatorManager
;
import
chat.rocket.android.layouthelper.chatroom.
Abstract
NewMessageIndicatorManager
;
import
chat.rocket.android.layouthelper.chatroom.PairedMessage
;
import
chat.rocket.android.layouthelper.extra_action.MessageExtraActionBehavior
;
import
chat.rocket.android.layouthelper.extra_action.upload.AbstractUploadActionItem
;
...
...
@@ -75,7 +75,7 @@ public class RoomFragment extends AbstractChatRoomFragment
private
RealmObjectObserver
<
LoadMessageProcedure
>
procedureObserver
;
private
MessageFormManager
messageFormManager
;
private
RecyclerViewAutoScrollManager
autoScrollManager
;
private
NewMessageIndicatorManager
newMessageIndicatorManager
;
private
Abstract
NewMessageIndicatorManager
newMessageIndicatorManager
;
private
Snackbar
unreadIndicator
;
private
boolean
previousUnreadMessageExists
;
...
...
@@ -173,7 +173,7 @@ public class RoomFragment extends AbstractChatRoomFragment
listView
.
addOnScrollListener
(
new
RecyclerViewScrolledToBottomListener
(
layoutManager
,
1
,
this
::
markAsReadIfNeeded
));
newMessageIndicatorManager
=
new
NewMessageIndicatorManager
()
{
newMessageIndicatorManager
=
new
Abstract
NewMessageIndicatorManager
()
{
@Override
protected
void
onShowIndicator
(
int
count
,
boolean
onlyAlreadyShown
)
{
if
((
onlyAlreadyShown
&&
unreadIndicator
!=
null
&&
unreadIndicator
.
isShown
())
...
...
app/src/main/java/chat/rocket/android/helper/RecyclerViewScrolledToBottomListener.java
View file @
55a924a5
...
...
@@ -40,8 +40,8 @@ public class RecyclerViewScrolledToBottomListener extends RecyclerView.OnScrollL
@Override
public
void
onScrolled
(
RecyclerView
recyclerView
,
int
d
x
,
int
dy
)
{
super
.
onScrolled
(
recyclerView
,
d
x
,
dy
);
public
void
onScrolled
(
RecyclerView
recyclerView
,
int
d
eltaX
,
int
deltaY
)
{
super
.
onScrolled
(
recyclerView
,
d
eltaX
,
deltaY
);
handler
.
removeMessages
(
0
);
handler
.
sendEmptyMessageDelayed
(
0
,
120
);
}
...
...
app/src/main/java/chat/rocket/android/layouthelper/chatroom/NewMessageIndicatorManager.java
→
app/src/main/java/chat/rocket/android/layouthelper/chatroom/
Abstract
NewMessageIndicatorManager.java
View file @
55a924a5
...
...
@@ -3,7 +3,7 @@ package chat.rocket.android.layouthelper.chatroom;
/**
* manager class for showing "You have XX messages" indicator.
*/
public
abstract
class
NewMessageIndicatorManager
{
public
abstract
class
Abstract
NewMessageIndicatorManager
{
private
int
count
;
private
boolean
onlyAlreadyShown
;
...
...
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