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
3f276e03
Commit
3f276e03
authored
Dec 08, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] fix pmd error.
parent
5f5f057a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
OAuthProviderInfo.java
.../rocket/android/layouthelper/oauth/OAuthProviderInfo.java
+1
-1
MethodCall.java
...n/java/chat/rocket/android/model/internal/MethodCall.java
+4
-4
No files found.
app/src/main/java/chat/rocket/android/layouthelper/oauth/OAuthProviderInfo.java
View file @
3f276e03
...
...
@@ -20,7 +20,7 @@ public class OAuthProviderInfo {
this
.
fragmentClass
=
fragmentClass
;
}
public
static
ArrayList
<
OAuthProviderInfo
>
LIST
=
new
ArrayList
<
OAuthProviderInfo
>()
{
public
static
final
ArrayList
<
OAuthProviderInfo
>
LIST
=
new
ArrayList
<
OAuthProviderInfo
>()
{
{
add
(
new
OAuthProviderInfo
(
"twitter"
,
R
.
id
.
btn_login_with_twitter
,
TwitterOAuthFragment
.
class
));
...
...
app/src/main/java/chat/rocket/android/model/internal/MethodCall.java
View file @
3f276e03
...
...
@@ -90,7 +90,7 @@ public class MethodCall extends RealmObject {
}
}
private
static
final
HashMap
<
String
,
RealmObjectObserver
<
MethodCall
>>
refMap
=
new
HashMap
<>();
private
static
final
HashMap
<
String
,
RealmObjectObserver
<
MethodCall
>>
REF_MAP
=
new
HashMap
<>();
/**
* insert a new record to request a method call.
...
...
@@ -125,17 +125,17 @@ public class MethodCall extends RealmObject {
task
.
setResult
(
resultJson
);
}
observer
.
unsub
();
refMap
.
remove
(
methodCall
.
getMethodCallId
());
REF_MAP
.
remove
(
methodCall
.
getMethodCallId
());
remove
(
realmHelper
,
methodCall
.
getMethodCallId
()).
continueWith
(
new
LogcatIfError
());
}
else
if
(
syncstate
==
SyncState
.
FAILED
)
{
task
.
setError
(
new
Error
(
methodCall
.
getResultJson
()));
observer
.
unsub
();
refMap
.
remove
(
methodCall
.
getMethodCallId
());
REF_MAP
.
remove
(
methodCall
.
getMethodCallId
());
remove
(
realmHelper
,
methodCall
.
getMethodCallId
()).
continueWith
(
new
LogcatIfError
());
}
});
observer
.
sub
();
refMap
.
put
(
newId
,
observer
);
REF_MAP
.
put
(
newId
,
observer
);
if
(
context
!=
null
)
{
RocketChatService
.
keepalive
(
context
);
...
...
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