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
02b86365
Commit
02b86365
authored
Jan 12, 2017
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
just rename methods
parent
3b618e38
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
AbstractChatRoomFragment.java
...t/android/fragment/chatroom/AbstractChatRoomFragment.java
+3
-3
HomeFragment.java
...a/chat/rocket/android/fragment/chatroom/HomeFragment.java
+3
-3
RoomFragment.java
...a/chat/rocket/android/fragment/chatroom/RoomFragment.java
+5
-5
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/AbstractChatRoomFragment.java
View file @
02b86365
...
...
@@ -24,7 +24,7 @@ abstract class AbstractChatRoomFragment extends AbstractFragment {
return
super
.
onCreateView
(
inflater
,
container
,
savedInstanceState
);
}
protected
void
setT
itleText
(
@StringRes
int
stringResId
)
{
protected
void
setT
oolbarTitle
(
@StringRes
int
stringResId
)
{
if
(
roomToolbar
==
null
)
{
return
;
}
...
...
@@ -32,7 +32,7 @@ abstract class AbstractChatRoomFragment extends AbstractFragment {
roomToolbar
.
setTitle
(
stringResId
);
}
protected
void
setT
itleText
(
CharSequence
title
)
{
protected
void
setT
oolbarTitle
(
CharSequence
title
)
{
if
(
roomToolbar
==
null
)
{
return
;
}
...
...
@@ -40,7 +40,7 @@ abstract class AbstractChatRoomFragment extends AbstractFragment {
roomToolbar
.
setTitle
(
title
);
}
protected
void
setT
itleDrawableLeft
(
@DrawableRes
int
drawableResId
)
{
protected
void
setT
oolbarRoomIcon
(
@DrawableRes
int
drawableResId
)
{
if
(
roomToolbar
==
null
)
{
return
;
}
...
...
app/src/main/java/chat/rocket/android/fragment/chatroom/HomeFragment.java
View file @
02b86365
...
...
@@ -13,13 +13,13 @@ public class HomeFragment extends AbstractChatRoomFragment {
@Override
protected
void
onSetupView
()
{
setT
itleText
(
R
.
string
.
home_fragment_title
);
setT
oolbarTitle
(
R
.
string
.
home_fragment_title
);
}
@Override
public
void
onResume
()
{
super
.
onResume
();
setT
itleDrawableLeft
(
0
);
setT
itleText
(
R
.
string
.
home_fragment_title
);
setT
oolbarRoomIcon
(
0
);
setT
oolbarTitle
(
R
.
string
.
home_fragment_title
);
}
}
app/src/main/java/chat/rocket/android/fragment/chatroom/RoomFragment.java
View file @
02b86365
...
...
@@ -266,15 +266,15 @@ public class RoomFragment extends AbstractChatRoomFragment
String
type
=
roomSubscription
.
getType
();
if
(
RoomSubscription
.
TYPE_CHANNEL
.
equals
(
type
))
{
setT
itleDrawableLeft
(
R
.
drawable
.
ic_hashtag_gray_24dp
);
setT
oolbarRoomIcon
(
R
.
drawable
.
ic_hashtag_gray_24dp
);
}
else
if
(
RoomSubscription
.
TYPE_PRIVATE
.
equals
(
type
))
{
setT
itleDrawableLeft
(
R
.
drawable
.
ic_lock_gray_24dp
);
setT
oolbarRoomIcon
(
R
.
drawable
.
ic_lock_gray_24dp
);
}
else
if
(
RoomSubscription
.
TYPE_DIRECT_MESSAGE
.
equals
(
type
))
{
setT
itleDrawableLeft
(
R
.
drawable
.
ic_at_gray_24dp
);
setT
oolbarRoomIcon
(
R
.
drawable
.
ic_at_gray_24dp
);
}
else
{
setT
itleDrawableLeft
(
0
);
setT
oolbarRoomIcon
(
0
);
}
setT
itleText
(
roomSubscription
.
getName
());
setT
oolbarTitle
(
roomSubscription
.
getName
());
}
private
void
onUpdateLoadMessageProcedure
(
LoadMessageProcedure
procedure
)
{
...
...
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