Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Faltenreich committed May 15, 2017
1 parent ff65b5d commit 45a63a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Diaguard/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.faltenreich.diaguard"
android:versionCode="19"
android:versionName="2.4">
android:versionName="2.3.3">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,5 @@ protected Void doInBackground(Void... voids) {
}
return null;
}

@Override
protected void onPostExecute(Void aVoid) {
super.onPostExecute(aVoid);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected LineData doInBackground(Void... params) {
for (Float avg : measurement.getValues()) {
if (NumberUtils.isValid(avg) && avg > 0) {
float customAvg = PreferenceHelper.getInstance().formatDefaultToCustomUnit(category, avg);
entries.add(new com.github.mikephil.charting.data.Entry(customAvg, index));
entries.add(new Entry(customAvg, index));
if (customAvg > highestValue) {
highestValue = customAvg;
}
Expand Down

0 comments on commit 45a63a1

Please sign in to comment.