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
621937c6
Commit
621937c6
authored
Dec 10, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename variable
parent
03174051
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
MethodCallObserver.java
...t/rocket/android/service/observer/MethodCallObserver.java
+7
-7
No files found.
app/src/main/java/chat/rocket/android/service/observer/MethodCallObserver.java
View file @
621937c6
...
@@ -18,7 +18,7 @@ import org.json.JSONObject;
...
@@ -18,7 +18,7 @@ import org.json.JSONObject;
*/
*/
public
class
MethodCallObserver
extends
AbstractModelObserver
<
MethodCall
>
{
public
class
MethodCallObserver
extends
AbstractModelObserver
<
MethodCall
>
{
private
String
prev
Hash
;
private
String
prev
Digest
;
/**
/**
* constructor.
* constructor.
...
@@ -53,7 +53,7 @@ public class MethodCallObserver extends AbstractModelObserver<MethodCall> {
...
@@ -53,7 +53,7 @@ public class MethodCallObserver extends AbstractModelObserver<MethodCall> {
.
findAll
();
.
findAll
();
}
}
private
String
get
Hash
For
(
List
<
MethodCall
>
results
)
{
private
String
get
Digest
For
(
List
<
MethodCall
>
results
)
{
if
(
results
==
null
)
{
if
(
results
==
null
)
{
return
"-"
;
return
"-"
;
}
}
...
@@ -68,17 +68,17 @@ public class MethodCallObserver extends AbstractModelObserver<MethodCall> {
...
@@ -68,17 +68,17 @@ public class MethodCallObserver extends AbstractModelObserver<MethodCall> {
}
}
@Override
public
void
onUpdateResults
(
List
<
MethodCall
>
results
)
{
@Override
public
void
onUpdateResults
(
List
<
MethodCall
>
results
)
{
String
hash
=
getHash
For
(
results
);
String
digest
=
getDigest
For
(
results
);
if
(
prev
Hash
==
null
)
{
if
(
prev
Digest
==
null
)
{
if
(
hash
==
null
)
{
if
(
digest
==
null
)
{
return
;
return
;
}
}
}
else
{
}
else
{
if
(
prev
Hash
.
equals
(
hash
))
{
if
(
prev
Digest
.
equals
(
digest
))
{
return
;
return
;
}
}
}
}
prev
Hash
=
hash
;
prev
Digest
=
digest
;
if
(
results
==
null
||
results
.
isEmpty
())
{
if
(
results
==
null
||
results
.
isEmpty
())
{
return
;
return
;
}
}
...
...
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