Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
6
600SeriesAndroidUploader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cgm
uploader
600SeriesAndroidUploader
Commits
7e354529
Commit
7e354529
authored
7 years ago
by
Volker Richert
Browse files
Options
Downloads
Patches
Plain Diff
create a copy of lastPumpStatus
parent
da204866
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/info/nightscout/android/utils/DataStore.java
+2
-5
2 additions, 5 deletions
...rc/main/java/info/nightscout/android/utils/DataStore.java
with
2 additions
and
5 deletions
app/src/main/java/info/nightscout/android/utils/DataStore.java
+
2
−
5
View file @
7e354529
...
...
@@ -14,16 +14,13 @@ import io.realm.Realm;
public
class
DataStore
{
private
static
DataStore
instance
;
private
final
Realm
mRealm
;
private
PumpStatusEvent
lastPumpStatus
;
private
int
uplooaderBatteryLevel
=
0
;
private
int
unavailableSGVCount
=
0
;
private
long
activePumpMac
=
0
;
private
DataStore
()
{
mRealm
=
Realm
.
getDefaultInstance
();
}
private
DataStore
()
{}
public
static
DataStore
getInstance
()
{
if
(
DataStore
.
instance
==
null
)
{
...
...
@@ -45,7 +42,7 @@ public class DataStore {
}
public
void
setLastPumpStatus
(
PumpStatusEvent
lastPumpStatus
)
{
this
.
lastPumpStatus
=
m
Realm
.
copyFromRealm
(
lastPumpStatus
);
this
.
lastPumpStatus
=
Realm
.
getDefaultInstance
().
copyFromRealm
(
lastPumpStatus
);
}
public
int
getUplooaderBatteryLevel
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment