Skip to content

Commit

Permalink
some small bug fixes
Browse files Browse the repository at this point in the history
upgrade gradle build file to version 1.5
  • Loading branch information
oliexdev committed Apr 11, 2017
1 parent cf27af7 commit bf3b5e4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions android_app/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "com.health.openscale"
minSdkVersion 18
targetSdkVersion 22 // don't set target sdk > 22 otherwise bluetooth le discovery need permission to ACCESS_COARSE_LOCATION
versionCode 12
versionName "1.4.3"
versionCode 13
versionName "1.5"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ private void generateLineData(Calendar calMonth)
diagramMuscle.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor("#d3d3d3")));
}

if(prefs.getBoolean("waistEnable", false) && prefs.getBoolean(String.valueOf(diagramWaist.getId()), false)) {
if(prefs.getBoolean("waistEnable", false) && prefs.getBoolean(String.valueOf(diagramWaist.getId()), true)) {
lines.add(lineWaist);
diagramWaist.setBackgroundTintList(ColorStateList.valueOf(Color.MAGENTA));
} else {
diagramWaist.setBackgroundTintList(ColorStateList.valueOf(Color.parseColor("#d3d3d3")));
}

if(prefs.getBoolean("hipEnable", false) && prefs.getBoolean(String.valueOf(diagramHip.getId()), false)) {
if(prefs.getBoolean("hipEnable", false) && prefs.getBoolean(String.valueOf(diagramHip.getId()), true)) {
lines.add(lineHip);
diagramHip.setBackgroundTintList(ColorStateList.valueOf(Color.YELLOW));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ protected ScaleUser getScaleUser() {
}

protected int getInputType() {
return InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED;
return InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED | InputType.TYPE_NUMBER_FLAG_DECIMAL;
}

protected String getHintText() {
Expand Down
4 changes: 2 additions & 2 deletions android_app/app/src/main/res/layout/fragment_graph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
android:layout_marginRight="10dp"
android:clickable="true"
android:src="@drawable/waist"
app:backgroundTint="#D3D3D3"
app:backgroundTint="#FF00FF"
app:fabSize="mini"
app:rippleColor="#FF00FF" />

Expand All @@ -76,7 +76,7 @@
android:layout_marginRight="10dp"
android:clickable="true"
android:src="@drawable/hip"
app:backgroundTint="#D3D3D3"
app:backgroundTint="#FFFF00"
app:fabSize="mini"
app:rippleColor="#FFFF00" />

Expand Down
5 changes: 5 additions & 0 deletions android_app/app/src/main/res/layout/fragment_statistics.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
android:layout_column="2"
android:layout_gravity="center_vertical"
android:layout_weight="20"
android:gravity="right"
android:text="-1 kg"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="15dp" />
Expand Down Expand Up @@ -112,6 +113,7 @@
android:layout_column="2"
android:layout_gravity="center_vertical"
android:layout_weight="20"
android:gravity="right"
android:text="-1 kg"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="15dp" />
Expand Down Expand Up @@ -154,6 +156,7 @@
android:layout_column="2"
android:layout_gravity="center_vertical"
android:layout_weight="20"
android:gravity="right"
android:text="-1 days"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="15dp" />
Expand Down Expand Up @@ -217,6 +220,7 @@
android:layout_column="2"
android:layout_gravity="center_vertical"
android:layout_weight="20"
android:gravity="right"
android:text="-1"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="15dp" />
Expand Down Expand Up @@ -259,6 +263,7 @@
android:layout_column="2"
android:layout_gravity="center_vertical"
android:layout_weight="20"
android:gravity="right"
android:text="-1"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="15dp" />
Expand Down

0 comments on commit bf3b5e4

Please sign in to comment.