Cleanup using AndroidStudio analyze.

This commit is contained in:
Dennis Guse
2024-07-11 07:38:45 +02:00
parent f5190aef06
commit d8eed2ccc9
11 changed files with 19 additions and 29 deletions
@@ -229,7 +229,7 @@ public class PreferencesUtils {
//TODO Check if actually needed or can be superseeded by a flexible default in getUnit()
public static void applyDefaultUnit() {
if (getString(R.string.stats_units_key, "").equals("")) {
if (getString(R.string.stats_units_key, "").isEmpty()) {
if (!Locale.US.equals(Locale.getDefault())) {
setUnit(UnitSystem.METRIC);
} else {