renamed arm to biceps
4
CREDITS
@@ -60,7 +60,9 @@ License: http://creativecommons.org/licenses/by/3.0/
|
|||||||
* Madebyoliver (https://www.flaticon.com/authors/madebyoliver)
|
* Madebyoliver (https://www.flaticon.com/authors/madebyoliver)
|
||||||
* Those Icons (https://www.flaticon.com/authors/those-icons)
|
* Those Icons (https://www.flaticon.com/authors/those-icons)
|
||||||
* Smashicons (https://www.flaticon.com/authors/smashicons)
|
* Smashicons (https://www.flaticon.com/authors/smashicons)
|
||||||
* Swifticons https://www.flaticon.com/authors/swifticons
|
* Swifticons (https://www.flaticon.com/authors/swifticons)
|
||||||
|
* Darius Dan (https://www.flaticon.com/authors/darius-dan)
|
||||||
|
* Pixelmeetup (https://www.flaticon.com/authors/pixelmeetup)
|
||||||
|
|
||||||
Contributors to openScale are listed on:
|
Contributors to openScale are listed on:
|
||||||
https://github.com/oliexdev/openScale/graphs/contributors
|
https://github.com/oliexdev/openScale/graphs/contributors
|
||||||
|
@@ -2,11 +2,11 @@
|
|||||||
"formatVersion": 1,
|
"formatVersion": 1,
|
||||||
"database": {
|
"database": {
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"identityHash": "8f43c71c1f13451e75ad315064990c9a",
|
"identityHash": "dcde328ede1fdeacf08edfb4d8b834ae",
|
||||||
"entities": [
|
"entities": [
|
||||||
{
|
{
|
||||||
"tableName": "scaleMeasurements",
|
"tableName": "scaleMeasurements",
|
||||||
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `userId` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `datetime` INTEGER, `weight` REAL NOT NULL, `fat` REAL NOT NULL, `water` REAL NOT NULL, `muscle` REAL NOT NULL, `lbw` REAL NOT NULL, `waist` REAL NOT NULL, `hip` REAL NOT NULL, `bone` REAL NOT NULL, `chest` REAL NOT NULL, `thigh` REAL NOT NULL, `arm` REAL NOT NULL, `neck` REAL NOT NULL, `comment` TEXT, FOREIGN KEY(`userId`) REFERENCES `scaleUsers`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `userId` INTEGER NOT NULL, `enabled` INTEGER NOT NULL, `datetime` INTEGER, `weight` REAL NOT NULL, `fat` REAL NOT NULL, `water` REAL NOT NULL, `muscle` REAL NOT NULL, `lbw` REAL NOT NULL, `waist` REAL NOT NULL, `hip` REAL NOT NULL, `bone` REAL NOT NULL, `chest` REAL NOT NULL, `thigh` REAL NOT NULL, `biceps` REAL NOT NULL, `neck` REAL NOT NULL, `comment` TEXT, FOREIGN KEY(`userId`) REFERENCES `scaleUsers`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"fieldPath": "id",
|
"fieldPath": "id",
|
||||||
@@ -93,8 +93,8 @@
|
|||||||
"notNull": true
|
"notNull": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldPath": "arm",
|
"fieldPath": "biceps",
|
||||||
"columnName": "arm",
|
"columnName": "biceps",
|
||||||
"affinity": "REAL",
|
"affinity": "REAL",
|
||||||
"notNull": true
|
"notNull": true
|
||||||
},
|
},
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
],
|
],
|
||||||
"setupQueries": [
|
"setupQueries": [
|
||||||
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
|
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
|
||||||
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"8f43c71c1f13451e75ad315064990c9a\")"
|
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"dcde328ede1fdeacf08edfb4d8b834ae\")"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -83,7 +83,7 @@ public abstract class AppDatabase extends RoomDatabase {
|
|||||||
try {
|
try {
|
||||||
database.execSQL("ALTER TABLE scaleMeasurements ADD COLUMN chest REAL NOT NULL DEFAULT 0");
|
database.execSQL("ALTER TABLE scaleMeasurements ADD COLUMN chest REAL NOT NULL DEFAULT 0");
|
||||||
database.execSQL("ALTER TABLE scaleMeasurements ADD COLUMN thigh REAL NOT NULL DEFAULT 0");
|
database.execSQL("ALTER TABLE scaleMeasurements ADD COLUMN thigh REAL NOT NULL DEFAULT 0");
|
||||||
database.execSQL("ALTER TABLE scaleMeasurements ADD COLUMN arm REAL NOT NULL DEFAULT 0");
|
database.execSQL("ALTER TABLE scaleMeasurements ADD COLUMN biceps REAL NOT NULL DEFAULT 0");
|
||||||
database.execSQL("ALTER TABLE scaleMeasurements ADD COLUMN neck REAL NOT NULL DEFAULT 0");
|
database.execSQL("ALTER TABLE scaleMeasurements ADD COLUMN neck REAL NOT NULL DEFAULT 0");
|
||||||
|
|
||||||
database.setTransactionSuccessful();
|
database.setTransactionSuccessful();
|
||||||
|
@@ -80,8 +80,8 @@ public class ScaleMeasurement implements Cloneable {
|
|||||||
@ColumnInfo(name = "thigh")
|
@ColumnInfo(name = "thigh")
|
||||||
private float thigh;
|
private float thigh;
|
||||||
@CsvColumn
|
@CsvColumn
|
||||||
@ColumnInfo(name = "arm")
|
@ColumnInfo(name = "biceps")
|
||||||
private float arm;
|
private float biceps;
|
||||||
@CsvColumn
|
@CsvColumn
|
||||||
@ColumnInfo(name = "neck")
|
@ColumnInfo(name = "neck")
|
||||||
private float neck;
|
private float neck;
|
||||||
@@ -104,7 +104,7 @@ public class ScaleMeasurement implements Cloneable {
|
|||||||
hip = 0.0f;
|
hip = 0.0f;
|
||||||
chest = 0.0f;
|
chest = 0.0f;
|
||||||
thigh = 0.0f;
|
thigh = 0.0f;
|
||||||
arm = 0.0f;
|
biceps = 0.0f;
|
||||||
neck = 0.0f;
|
neck = 0.0f;
|
||||||
comment = "";
|
comment = "";
|
||||||
}
|
}
|
||||||
@@ -292,12 +292,12 @@ public class ScaleMeasurement implements Cloneable {
|
|||||||
this.thigh = thigh;
|
this.thigh = thigh;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getArm() {
|
public float getBiceps() {
|
||||||
return arm;
|
return biceps;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setArm(float arm) {
|
public void setBiceps(float biceps) {
|
||||||
this.arm = arm;
|
this.biceps = biceps;
|
||||||
}
|
}
|
||||||
|
|
||||||
public float getNeck() {
|
public float getNeck() {
|
||||||
@@ -353,6 +353,6 @@ public class ScaleMeasurement implements Cloneable {
|
|||||||
"MUSCLE: %.2f, LBM: %.2f, WAIST: %.2f, HIP: %.2f, BONE: %.2f, CHEST: %.2f, " +
|
"MUSCLE: %.2f, LBM: %.2f, WAIST: %.2f, HIP: %.2f, BONE: %.2f, CHEST: %.2f, " +
|
||||||
"THIGH: %.2f, ARM: %.2f, NECK: %.2f, COMMENT: %s",
|
"THIGH: %.2f, ARM: %.2f, NECK: %.2f, COMMENT: %s",
|
||||||
id, userId, dateTime.toString(), weight, fat, water,
|
id, userId, dateTime.toString(), weight, fat, water,
|
||||||
muscle, lbm, waist, hip, bone, chest, thigh, arm, neck, comment);
|
muscle, lbm, waist, hip, bone, chest, thigh, biceps, neck, comment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -23,12 +23,12 @@ import com.health.openscale.core.datatypes.ScaleMeasurement;
|
|||||||
import com.health.openscale.core.evaluation.EvaluationResult;
|
import com.health.openscale.core.evaluation.EvaluationResult;
|
||||||
import com.health.openscale.core.evaluation.EvaluationSheet;
|
import com.health.openscale.core.evaluation.EvaluationSheet;
|
||||||
|
|
||||||
public class ArmMeasurementView extends FloatMeasurementView {
|
public class BicepsMeasurementView extends FloatMeasurementView {
|
||||||
// Don't change key value, it may be stored persistent in preferences
|
// Don't change key value, it may be stored persistent in preferences
|
||||||
public static final String KEY = "arm";
|
public static final String KEY = "biceps";
|
||||||
|
|
||||||
public ArmMeasurementView(Context context) {
|
public BicepsMeasurementView(Context context) {
|
||||||
super(context, R.string.label_arm, R.drawable.ic_arm);
|
super(context, R.string.label_biceps, R.drawable.ic_biceps);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -38,12 +38,12 @@ public class ArmMeasurementView extends FloatMeasurementView {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected float getMeasurementValue(ScaleMeasurement measurement) {
|
protected float getMeasurementValue(ScaleMeasurement measurement) {
|
||||||
return measurement.getArm();
|
return measurement.getBiceps();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void setMeasurementValue(float value, ScaleMeasurement measurement) {
|
protected void setMeasurementValue(float value, ScaleMeasurement measurement) {
|
||||||
measurement.setArm(value);
|
measurement.setBiceps(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
@@ -118,7 +118,7 @@ public abstract class MeasurementView extends TableLayout {
|
|||||||
unsorted.add(new WHRMeasurementView(context));
|
unsorted.add(new WHRMeasurementView(context));
|
||||||
unsorted.add(new ChestMeasurementView(context));
|
unsorted.add(new ChestMeasurementView(context));
|
||||||
unsorted.add(new ThighMeasurementView(context));
|
unsorted.add(new ThighMeasurementView(context));
|
||||||
unsorted.add(new ArmMeasurementView(context));
|
unsorted.add(new BicepsMeasurementView(context));
|
||||||
unsorted.add(new NeckMeasurementView(context));
|
unsorted.add(new NeckMeasurementView(context));
|
||||||
unsorted.add(new BMRMeasurementView(context));
|
unsorted.add(new BMRMeasurementView(context));
|
||||||
unsorted.add(new CommentMeasurementView(context));
|
unsorted.add(new CommentMeasurementView(context));
|
||||||
|
@@ -57,7 +57,7 @@ public class MeasurementViewSettings {
|
|||||||
case WaistMeasurementView.KEY:
|
case WaistMeasurementView.KEY:
|
||||||
case HipMeasurementView.KEY:
|
case HipMeasurementView.KEY:
|
||||||
case ChestMeasurementView.KEY:
|
case ChestMeasurementView.KEY:
|
||||||
case ArmMeasurementView.KEY:
|
case BicepsMeasurementView.KEY:
|
||||||
case ThighMeasurementView.KEY:
|
case ThighMeasurementView.KEY:
|
||||||
case NeckMeasurementView.KEY:
|
case NeckMeasurementView.KEY:
|
||||||
defaultValue = false;
|
defaultValue = false;
|
||||||
|
Before Width: | Height: | Size: 963 B After Width: | Height: | Size: 963 B |
Before Width: | Height: | Size: 448 B After Width: | Height: | Size: 448 B |
Before Width: | Height: | Size: 581 B After Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
@@ -225,6 +225,6 @@
|
|||||||
<string name="label_configure_widget">Configure widget</string>
|
<string name="label_configure_widget">Configure widget</string>
|
||||||
<string name="label_chest">Chest circumference</string>
|
<string name="label_chest">Chest circumference</string>
|
||||||
<string name="label_thigh">Thigh circumference</string>
|
<string name="label_thigh">Thigh circumference</string>
|
||||||
<string name="label_arm">Arm circumference</string>
|
<string name="label_biceps">Biceps circumference</string>
|
||||||
<string name="label_neck">Neck circumference</string>
|
<string name="label_neck">Neck circumference</string>
|
||||||
</resources>
|
</resources>
|
||||||
|