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
1ec79026
Commit
1ec79026
authored
Jan 05, 2017
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"null" is no good XD... replace it to ""
parent
17057cde
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
RealmListObserver.java
...a/chat/rocket/android/realm_helper/RealmListObserver.java
+1
-1
RealmObjectObserver.java
...chat/rocket/android/realm_helper/RealmObjectObserver.java
+1
-1
No files found.
realm-helpers/src/main/java/chat/rocket/android/realm_helper/RealmListObserver.java
View file @
1ec79026
...
@@ -30,7 +30,7 @@ public class RealmListObserver<T extends RealmObject> extends AbstractRealmResul
...
@@ -30,7 +30,7 @@ public class RealmListObserver<T extends RealmObject> extends AbstractRealmResul
@Override
@Override
public
final
RealmChangeListener
<
RealmResults
<
T
>>
getListener
()
{
public
final
RealmChangeListener
<
RealmResults
<
T
>>
getListener
()
{
return
results
->
{
return
results
->
{
String
currentResultString
=
results
!=
null
?
results
.
toString
()
:
"
null
"
;
String
currentResultString
=
results
!=
null
?
results
.
toString
()
:
""
;
if
(
previousResultsString
!=
null
&&
previousResultsString
.
equals
(
currentResultString
))
{
if
(
previousResultsString
!=
null
&&
previousResultsString
.
equals
(
currentResultString
))
{
return
;
return
;
}
}
...
...
realm-helpers/src/main/java/chat/rocket/android/realm_helper/RealmObjectObserver.java
View file @
1ec79026
...
@@ -37,7 +37,7 @@ public class RealmObjectObserver<T extends RealmObject> extends AbstractRealmRes
...
@@ -37,7 +37,7 @@ public class RealmObjectObserver<T extends RealmObject> extends AbstractRealmRes
protected
final
RealmChangeListener
<
RealmResults
<
T
>>
getListener
()
{
protected
final
RealmChangeListener
<
RealmResults
<
T
>>
getListener
()
{
return
element
->
{
return
element
->
{
T
currentResult
=
impl
.
extractObjectFromResults
(
element
);
T
currentResult
=
impl
.
extractObjectFromResults
(
element
);
String
currentResultString
=
currentResult
!=
null
?
currentResult
.
toString
()
:
"
null
"
;
String
currentResultString
=
currentResult
!=
null
?
currentResult
.
toString
()
:
""
;
if
(
previousResultString
!=
null
&&
previousResultString
.
equals
(
currentResultString
))
{
if
(
previousResultString
!=
null
&&
previousResultString
.
equals
(
currentResultString
))
{
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