Skip to content

Commit 501bb2b

Browse files
author
Paolo Rotolo
committed
Merge branch 'develop'
2 parents 8a8ec7f + b1decdb commit 501bb2b

File tree

284 files changed

+2622
-522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+2622
-522
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jdk:
66
android:
77
components:
88
- tools
9-
- build-tools-25.0.0
9+
- build-tools-25.0.1
1010
- android-25
1111
- extra-android-support
1212
- extra-google-google_play_services
@@ -39,4 +39,4 @@ before_cache:
3939
cache:
4040
directories:
4141
- $HOME/.gradle/caches/
42-
- $HOME/.gradle/wrapper/
42+
- $HOME/.gradle/wrapper/

app/build.gradle

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ android {
3434
defaultConfig {
3535
minSdkVersion 16
3636
targetSdkVersion 25
37-
versionCode 38
38-
versionName '1.3.0'
37+
versionCode 39
38+
versionName '1.3.1'
3939
applicationId 'org.glucosio.android'
4040

4141
vectorDrawables.useSupportLibrary = true
@@ -124,13 +124,13 @@ dependencies {
124124
compile 'com.wdullaer:materialdatetimepicker:2.4.0'
125125
compile 'com.github.PhilJay:MPAndroidChart:v2.2.5'
126126
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
127-
compile 'net.danlew:android.joda:2.9.4.1'
128-
compile('com.mikepenz:materialdrawer:5.4.0@aar') {
127+
compile 'net.danlew:android.joda:2.9.5.1'
128+
compile('com.mikepenz:materialdrawer:5.8.1@aar') {
129129
transitive = true
130130
}
131131

132132
// https://mvnrepository.com/artifact/org.apache.commons/commons-math3
133-
compile files('libs/commons-math3-3.6.jar')
133+
compile files('libs/commons-math3-3.6.1.jar')
134134

135135
// Butterknife
136136
compile "com.jakewharton:butterknife:${butterKnifeVer}"
@@ -147,7 +147,12 @@ dependencies {
147147
exclude group: 'commons-logging', module: 'commons-logging'
148148
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
149149
}
150-
testCompile 'io.reactivex:rxjava:1.1.8'
150+
testCompile 'io.reactivex:rxjava:1.2.4'
151+
152+
testCompile "org.powermock:powermock-module-junit4:1.6.4"
153+
testCompile "org.powermock:powermock-module-junit4-rule:1.6.4"
154+
testCompile "org.powermock:powermock-api-mockito:1.6.4"
155+
testCompile "org.powermock:powermock-classloading-xstream:1.6.4"
151156

152157
// Testing libraries
153158
androidTestCompile 'com.android.support.test:rules:0.4.1'

app/src/main/java/org/glucosio/android/activity/AddA1CActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ protected void onCreate(Bundle savedInstanceState) {
8181
this.getAddTimeTextView().setText(formatDateTime.getCurrentTime());
8282
}
8383

84-
this.getDoneFAB().postDelayed(this.getFabAnimationRunnable(), 600);
8584
}
8685

8786
@Override

app/src/main/java/org/glucosio/android/activity/AddCholesterolActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ protected void onCreate(Bundle savedInstanceState) {
8383
this.getAddTimeTextView().setText(formatDateTime.getCurrentTime());
8484
}
8585

86-
this.getDoneFAB().postDelayed(this.getFabAnimationRunnable(), 600);
8786
}
8887

8988
@Override

app/src/main/java/org/glucosio/android/activity/AddGlucoseActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.glucosio.android.db.GlucoseReading;
4040
import org.glucosio.android.presenter.AddGlucosePresenter;
4141
import org.glucosio.android.tools.FormatDateTime;
42+
import org.glucosio.android.tools.GlucosioConverter;
4243
import org.glucosio.android.tools.LabelledSpinner;
4344

4445
import java.text.DecimalFormat;
@@ -124,7 +125,7 @@ public void onNothingChosen(View labelledSpinner, AdapterView<?> adapterView) {
124125
if (presenter.getUnitMeasuerement().equals("mg/dL")) {
125126
readingString = String.valueOf(readingToEdit.getReading());
126127
} else {
127-
readingString = String.valueOf(presenter.convertToMmol(readingToEdit.getReading()));
128+
readingString = String.valueOf(GlucosioConverter.glucoseToMmolL(readingToEdit.getReading()));
128129
}
129130

130131
readingTextView.setText(readingString);
@@ -151,7 +152,6 @@ public void onNothingChosen(View labelledSpinner, AdapterView<?> adapterView) {
151152
presenter.updateSpinnerTypeTime();
152153
}
153154

154-
this.getDoneFAB().postDelayed(this.getFabAnimationRunnable(), 600);
155155

156156
// Check if activity was started from a NFC sensor
157157
if (getIntent().getExtras() != null) {

app/src/main/java/org/glucosio/android/activity/AddKetoneActivity.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ protected void onCreate(Bundle savedInstanceState) {
7474
this.getAddDateTextView().setText(formatDateTime.getCurrentDate());
7575
this.getAddTimeTextView().setText(formatDateTime.getCurrentTime());
7676
}
77-
78-
//TODO try to do this in AddReadingActivity.createFANViewAndListener
79-
this.getDoneFAB().postDelayed(this.getFabAnimationRunnable(), 600);
8077
}
8178

8279
@Override

app/src/main/java/org/glucosio/android/activity/AddPressureActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ protected void onCreate(Bundle savedInstanceState) {
8383
this.getAddTimeTextView().setText(formatDateTime.getCurrentTime());
8484
}
8585

86-
this.getDoneFAB().postDelayed(this.getFabAnimationRunnable(), 600);
8786
}
8887

8988
@Override

app/src/main/java/org/glucosio/android/activity/AddReadingActivity.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public void run() {
134134
AnimationTools.startCircularReveal(doneFAB);
135135
}
136136
};
137+
doneFAB.postDelayed(fabAnimationRunnable, 600);
137138
}
138139

139140
protected abstract void dialogOnAddButtonPressed();
@@ -228,11 +229,4 @@ public void setAddDateTextView(TextView addDateTextView) {
228229
this.addDateTextView = addDateTextView;
229230
}
230231

231-
public FloatingActionButton getDoneFAB() {
232-
return doneFAB;
233-
}
234-
235-
public Runnable getFabAnimationRunnable() {
236-
return fabAnimationRunnable;
237-
}
238232
}

app/src/main/java/org/glucosio/android/activity/AddWeightActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ protected void onCreate(Bundle savedInstanceState) {
8080
this.getAddTimeTextView().setText(formatDateTime.getCurrentTime());
8181
}
8282

83-
this.getDoneFAB().postDelayed(this.getFabAnimationRunnable(), 600);
8483
}
8584

8685
@Override

app/src/main/java/org/glucosio/android/activity/BackupActivity.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,8 @@ public void onResult(@NonNull DriveApi.MetadataBufferResult result) {
246246
Date modifiedDate = metadata.getModifiedDate();
247247
long backupSize = metadata.getFileSize();
248248
backupsArray.add(new GlucosioBackup(driveId, modifiedDate, backupSize));
249-
backupListView.setAdapter(new BackupAdapter(activity, R.layout.preferences_backup, backupsArray));
250249
}
251-
250+
backupListView.setAdapter(new BackupAdapter(activity, R.layout.activity_backup_drive_restore_item, backupsArray));
252251
}
253252
});
254253
}
@@ -499,4 +498,4 @@ public boolean onOptionsItemSelected(MenuItem item) {
499498
protected void attachBaseContext(Context newBase) {
500499
super.attachBaseContext(CalligraphyContextWrapper.wrap(newBase));
501500
}
502-
}
501+
}

0 commit comments

Comments
 (0)