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
a9bfc66e
Commit
a9bfc66e
authored
Nov 10, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix coding style
parent
f6fb3f61
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
6 deletions
+16
-6
MainActivity.java
.../main/java/chat/rocket/android/activity/MainActivity.java
+3
-3
RoomListManager.java
...rocket/android/layouthelper/chatroom/RoomListManager.java
+6
-0
Room.java
app/src/main/java/chat/rocket/android/model/Room.java
+2
-1
User.java
app/src/main/java/chat/rocket/android/model/User.java
+2
-1
checkstyle-suppressions.xml
config/quality/checkstyle/checkstyle-suppressions.xml
+3
-1
No files found.
app/src/main/java/chat/rocket/android/activity/MainActivity.java
View file @
a9bfc66e
...
...
@@ -61,7 +61,7 @@ public class MainActivity extends AbstractAuthedActivity {
.
subscribe
(
RxView
.
visibility
(
findViewById
(
R
.
id
.
user_action_container
)));
}
private
RealmListObserver
<
Room
>
mR
oomsObserver
=
new
RealmListObserver
<
Room
>()
{
private
RealmListObserver
<
Room
>
r
oomsObserver
=
new
RealmListObserver
<
Room
>()
{
@Override
protected
RealmResults
<
Room
>
queryItems
(
Realm
realm
)
{
return
realm
.
where
(
Room
.
class
).
findAll
();
}
...
...
@@ -73,11 +73,11 @@ public class MainActivity extends AbstractAuthedActivity {
@Override
protected
void
onResume
()
{
super
.
onResume
();
mR
oomsObserver
.
sub
();
r
oomsObserver
.
sub
();
}
@Override
protected
void
onPause
()
{
mR
oomsObserver
.
unsub
();
r
oomsObserver
.
unsub
();
super
.
onPause
();
}
}
app/src/main/java/chat/rocket/android/layouthelper/chatroom/RoomListManager.java
View file @
a9bfc66e
...
...
@@ -6,10 +6,16 @@ import chat.rocket.android.model.Room;
import
chat.rocket.android.widget.internal.RoomListItemView
;
import
java.util.List
;
/**
* Utility class for mapping Room list into channel list ViewGroup.
*/
public
class
RoomListManager
{
private
ViewGroup
channelsContainer
;
private
ViewGroup
dmContainer
;
/**
* constructor with two ViewGroups.
*/
public
RoomListManager
(
ViewGroup
channelsContainer
,
ViewGroup
dmContainer
)
{
this
.
channelsContainer
=
channelsContainer
;
this
.
dmContainer
=
dmContainer
;
...
...
app/src/main/java/chat/rocket/android/model/Room.java
View file @
a9bfc66e
...
...
@@ -6,7 +6,8 @@ import io.realm.annotations.PrimaryKey;
/**
* Chat Room.
*/
@SuppressWarnings
({
"PMD.ShortClassName"
,
"PMD.ShortVariable"
,
"PMD.VariableNamingConventions"
})
@SuppressWarnings
({
"PMD.ShortClassName"
,
"PMD.ShortVariable"
,
"PMD.MethodNamingConventions"
,
"PMD.VariableNamingConventions"
})
public
class
Room
extends
RealmObject
{
public
static
final
String
TYPE_CHANNEL
=
"c"
;
public
static
final
String
TYPE_PRIVATE
=
"p"
;
...
...
app/src/main/java/chat/rocket/android/model/User.java
View file @
a9bfc66e
...
...
@@ -6,7 +6,8 @@ import io.realm.annotations.PrimaryKey;
/**
* User.
*/
@SuppressWarnings
({
"PMD.ShortClassName"
,
"PMD.ShortVariable"
,
"PMD.VariableNamingConventions"
})
@SuppressWarnings
({
"PMD.ShortClassName"
,
"PMD.ShortVariable"
,
"PMD.MethodNamingConventions"
,
"PMD.VariableNamingConventions"
})
public
class
User
extends
RealmObject
{
@PrimaryKey
private
String
_id
;
private
String
username
;
...
...
config/quality/checkstyle/checkstyle-suppressions.xml
View file @
a9bfc66e
...
...
@@ -4,5 +4,7 @@
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<!-- suppress some checks for classes extending RealmObject -->
<suppress
checks=
"JavadocMethod|MemberName"
files=
"chat[\\/]rocket[\\/]android[\\/]model"
/>
<suppress
checks=
"JavadocMethod|MemberName|ParameterName"
files=
"chat[\\/]rocket[\\/]android[\\/]model"
/>
</suppressions>
\ No newline at end of file
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