mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-20 23:41:45 +02:00
Fix spelling
This commit is contained in:
@@ -68,7 +68,7 @@ public class UserAddTest {
|
||||
@Rule
|
||||
public ActivityTestRule<MainActivity> mActivityTestRule = new ActivityTestRule<>(MainActivity.class, false, false);
|
||||
|
||||
private void setLangauge(String language, String country) {
|
||||
private void setLanguage(String language, String country) {
|
||||
Locale locale = new Locale(language, country);
|
||||
Locale.setDefault(locale);
|
||||
Resources res = context.getResources();
|
||||
@@ -82,7 +82,7 @@ public class UserAddTest {
|
||||
context = InstrumentationRegistry.getTargetContext();
|
||||
|
||||
// set app language to English
|
||||
setLangauge("en", "EN");
|
||||
setLanguage("en", "EN");
|
||||
|
||||
// Set first start to true to get the user add dialog
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
|
@@ -315,7 +315,7 @@ public abstract class BluetoothCommunication {
|
||||
*
|
||||
* @param value byte which is tested
|
||||
* @param bit bit position which is tested
|
||||
* @return true if bit is set (1) ohterwise false (0)
|
||||
* @return true if bit is set (1) otherwise false (0)
|
||||
*/
|
||||
protected boolean isBitSet(byte value, int bit) {
|
||||
return (value & (1 << bit)) != 0;
|
||||
|
@@ -201,7 +201,7 @@ public class BluetoothMGB extends BluetoothCommunication {
|
||||
addScaleData(measurement);
|
||||
|
||||
// Visceral fat?
|
||||
// Standart weight?
|
||||
// Standard weight?
|
||||
// WeightControl?
|
||||
// Body fat?
|
||||
// Muscle weight?
|
||||
|
@@ -143,7 +143,7 @@ public class ScaleDatabase extends SQLiteOpenHelper {
|
||||
|
||||
cursorScaleDB.close();
|
||||
} catch (SQLException ex) {
|
||||
Log.e("ScaleDatabase", "SQL exception occured while getting scale data list: " + ex.getMessage());
|
||||
Log.e("ScaleDatabase", "SQL exception occurred while getting scale data list: " + ex.getMessage());
|
||||
}
|
||||
|
||||
return scaleMeasurementList;
|
||||
|
@@ -209,7 +209,7 @@ public class MainActivity extends BaseAppCompatActivity
|
||||
dialog.dismiss();
|
||||
Uri uri = Uri.parse("market://details?id=" + getPackageName());
|
||||
Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
|
||||
// To count with Play market backstack, After pressing back button,
|
||||
// To count with Play market back stack, After pressing back button,
|
||||
// to taken back to our application, we need to add following flags to intent.
|
||||
goToMarket.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY |
|
||||
Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET |
|
||||
@@ -526,8 +526,8 @@ public class MainActivity extends BaseAppCompatActivity
|
||||
}
|
||||
};
|
||||
|
||||
private void setBluetoothStatusIcon(int iconRessource) {
|
||||
bluetoothStatusIcon = iconRessource;
|
||||
private void setBluetoothStatusIcon(int iconResource) {
|
||||
bluetoothStatusIcon = iconResource;
|
||||
bluetoothStatus.setIcon(getResources().getDrawable(bluetoothStatusIcon));
|
||||
}
|
||||
|
||||
|
@@ -424,12 +424,12 @@ public class GraphFragment extends Fragment implements FragmentUpdateListener {
|
||||
}
|
||||
|
||||
if (prefs.getBoolean("regressionLine", false)) {
|
||||
PolynomialFitter.Polynomial polynom = polyFitter.getBestFit();
|
||||
PolynomialFitter.Polynomial polynomial = polyFitter.getBestFit();
|
||||
|
||||
Stack<PointValue> valuesLinearRegression = new Stack<>();
|
||||
|
||||
for (int i = 0; i < maxDays; i++) {
|
||||
double y_value = polynom.getY(i);
|
||||
double y_value = polynomial.getY(i);
|
||||
valuesLinearRegression.push(new PointValue((float) i, (float) y_value));
|
||||
}
|
||||
|
||||
|
@@ -103,7 +103,7 @@ public class OverviewFragment extends Fragment implements FragmentUpdateListener
|
||||
context = overviewView.getContext();
|
||||
|
||||
txtTitleUser = overviewView.findViewById(R.id.txtTitleUser);
|
||||
txtTitleLastMeasurement = overviewView.findViewById(R.id.txtTitleLastMeasurment);
|
||||
txtTitleLastMeasurement = overviewView.findViewById(R.id.txtTitleLastMeasurement);
|
||||
|
||||
pieChartLast = overviewView.findViewById(R.id.pieChartLast);
|
||||
lineChartLast = overviewView.findViewById(R.id.lineChartLast);
|
||||
|
@@ -31,16 +31,16 @@ public class TimePreferenceDialog extends DialogPreference {
|
||||
private Calendar calendar;
|
||||
private TimePicker picker = null;
|
||||
|
||||
public TimePreferenceDialog(Context ctxt) {
|
||||
this(ctxt, null);
|
||||
public TimePreferenceDialog(Context context) {
|
||||
this(context, null);
|
||||
}
|
||||
|
||||
public TimePreferenceDialog(Context ctxt, AttributeSet attrs) {
|
||||
this(ctxt, attrs, android.R.attr.dialogPreferenceStyle);
|
||||
public TimePreferenceDialog(Context context, AttributeSet attrs) {
|
||||
this(context, attrs, android.R.attr.dialogPreferenceStyle);
|
||||
}
|
||||
|
||||
public TimePreferenceDialog(Context ctxt, AttributeSet attrs, int defStyle) {
|
||||
super(ctxt, attrs, defStyle);
|
||||
public TimePreferenceDialog(Context context, AttributeSet attrs, int defStyle) {
|
||||
super(context, attrs, defStyle);
|
||||
|
||||
setPositiveButtonText(R.string.label_ok);
|
||||
setNegativeButtonText(R.string.label_cancel);
|
||||
|
@@ -75,7 +75,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/label_title_last_measurement"
|
||||
android:id="@+id/txtTitleLastMeasurment"
|
||||
android:id="@+id/txtTitleLastMeasurement"
|
||||
android:autoText="false"
|
||||
android:textSize="20dp"
|
||||
android:typeface="monospace" />
|
||||
|
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txtTitleLastMeasurment"
|
||||
android:id="@+id/txtTitleLastMeasurement"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:autoText="false"
|
||||
|
@@ -156,7 +156,7 @@
|
||||
<string name="label_ignoreOutOfRange">Ignore data that are out of range</string>
|
||||
<string name="label_initial_weight">Initial weight</string>
|
||||
<string name="label_regression_line">Regression weight line</string>
|
||||
<string name="label_regression_line_degree">Regression polynom degree</string>
|
||||
<string name="label_regression_line_degree">Regression polynomial degree</string>
|
||||
<string name="label_goal_line">Goal line</string>
|
||||
<string name="label_help">Help</string>
|
||||
|
||||
|
Reference in New Issue
Block a user