mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-30 11:40:23 +02:00
Merge getNameText() into getName()
This commit is contained in:
@@ -330,7 +330,7 @@ public class MeasurementPreferences extends PreferenceFragment implements Shared
|
||||
parentGroup = parent;
|
||||
measurement = measurementView;
|
||||
setIcon(measurement.getIcon());
|
||||
setTitle(measurement.getNameText());
|
||||
setTitle(measurement.getName());
|
||||
}
|
||||
|
||||
public PreferenceGroup getParent() {
|
||||
|
@@ -271,7 +271,8 @@ public abstract class FloatMeasurementView extends MeasurementView {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
@Override
|
||||
public CharSequence getName() {
|
||||
return nameText;
|
||||
}
|
||||
|
||||
|
@@ -247,7 +247,7 @@ public abstract class MeasurementView extends TableLayout {
|
||||
|
||||
public abstract void updatePreferences(SharedPreferences preferences);
|
||||
|
||||
public CharSequence getNameText() { return nameView.getText(); }
|
||||
public CharSequence getName() { return nameView.getText(); }
|
||||
public abstract String getValueAsString();
|
||||
public void appendDiffValue(SpannableStringBuilder builder) { }
|
||||
public Drawable getIcon() { return iconView.getDrawable(); }
|
||||
@@ -379,7 +379,7 @@ public abstract class MeasurementView extends TableLayout {
|
||||
|
||||
protected AlertDialog getInputDialog() {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
|
||||
builder.setTitle(getNameText());
|
||||
builder.setTitle(getName());
|
||||
builder.setIcon(getIcon());
|
||||
|
||||
final EditText input = new EditText(getContext());
|
||||
|
Reference in New Issue
Block a user