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
0b467376
Commit
0b467376
authored
Nov 10, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code style issues
parent
6dd32a92
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
6 deletions
+10
-6
AbstractChatRoomFragment.java
...t/android/fragment/chatroom/AbstractChatRoomFragment.java
+2
-1
AbstractServerConfigFragment.java
.../fragment/server_config/AbstractServerConfigFragment.java
+1
-1
Room.java
app/src/main/java/chat/rocket/android/model/Room.java
+1
-1
User.java
app/src/main/java/chat/rocket/android/model/User.java
+1
-1
SessionObserver.java
...chat/rocket/android/service/observer/SessionObserver.java
+1
-0
TokenLoginObserver.java
...t/rocket/android/service/observer/TokenLoginObserver.java
+3
-1
checkstyle-suppressions.xml
config/quality/checkstyle/checkstyle-suppressions.xml
+1
-1
No files found.
app/src/main/java/chat/rocket/android/fragment/chatroom/AbstractChatRoomFragment.java
View file @
0b467376
...
...
@@ -12,7 +12,8 @@ import chat.rocket.android.fragment.AbstractFragment;
abstract
class
AbstractChatRoomFragment
extends
AbstractFragment
{
protected
Toolbar
activityToolbar
;
@Nullable
@Override
@Nullable
@Override
public
View
onCreateView
(
LayoutInflater
inflater
,
@Nullable
ViewGroup
container
,
@Nullable
Bundle
savedInstanceState
)
{
activityToolbar
=
(
Toolbar
)
getActivity
().
findViewById
(
R
.
id
.
activity_main_toolbar
);
...
...
app/src/main/java/chat/rocket/android/fragment/server_config/AbstractServerConfigFragment.java
View file @
0b467376
...
...
@@ -9,7 +9,7 @@ import chat.rocket.android.helper.OnBackPressListener;
import
chat.rocket.android.helper.TextUtils
;
abstract
class
AbstractServerConfigFragment
extends
AbstractFragment
implements
OnBackPressListener
{
implements
OnBackPressListener
{
protected
String
serverConfigId
;
@Override
public
void
onCreate
(
@Nullable
Bundle
savedInstanceState
)
{
...
...
app/src/main/java/chat/rocket/android/model/Room.java
View file @
0b467376
...
...
@@ -6,7 +6,7 @@ import io.realm.annotations.PrimaryKey;
/**
* Chat Room.
*/
@SuppressWarnings
(
"PMD.ShortVariable"
)
@SuppressWarnings
(
{
"PMD.ShortClassName"
,
"PMD.ShortVariable"
,
"PMD.VariableNamingConventions"
}
)
public
class
Room
extends
RealmObject
{
@PrimaryKey
private
String
_id
;
private
String
serverConfigId
;
...
...
app/src/main/java/chat/rocket/android/model/User.java
View file @
0b467376
...
...
@@ -6,7 +6,7 @@ import io.realm.annotations.PrimaryKey;
/**
* User.
*/
@SuppressWarnings
(
"PMD.ShortVariable"
)
@SuppressWarnings
(
{
"PMD.ShortClassName"
,
"PMD.ShortVariable"
,
"PMD.VariableNamingConventions"
}
)
public
class
User
extends
RealmObject
{
@PrimaryKey
private
String
_id
;
private
String
username
;
...
...
app/src/main/java/chat/rocket/android/service/observer/SessionObserver.java
View file @
0b467376
...
...
@@ -15,6 +15,7 @@ import java.util.List;
*/
public
class
SessionObserver
extends
AbstractModelObserver
<
ServerConfig
>
{
private
int
count
;
public
SessionObserver
(
Context
context
,
String
serverConfigId
,
RocketChatWebSocketAPI
api
)
{
super
(
context
,
serverConfigId
,
api
);
count
=
0
;
...
...
app/src/main/java/chat/rocket/android/service/observer/TokenLoginObserver.java
View file @
0b467376
...
...
@@ -23,7 +23,9 @@ public class TokenLoginObserver extends AbstractModelObserver<ServerConfig> {
}
@Override
protected
void
onCollectionChanged
(
List
<
ServerConfig
>
list
)
{
if
(
list
.
isEmpty
())
return
;
if
(
list
.
isEmpty
())
{
return
;
}
ServerConfig
config
=
list
.
get
(
0
);
new
MethodCallHelper
(
serverConfigId
,
webSocketAPI
).
loginWithToken
(
config
.
getToken
())
...
...
config/quality/checkstyle/checkstyle-suppressions.xml
View file @
0b467376
...
...
@@ -4,5 +4,5 @@
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<!-- suppress some checks for classes extending RealmObject -->
<suppress
checks=
"JavadocMethod"
files=
"chat[\\/]rocket[\\/]android[\\/]model"
/>
<suppress
checks=
"JavadocMethod
|MemberName
"
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