mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 19:36:50 +01:00
Fossil Hybrid HR: Fix widget configuration bug
This commit is contained in:
parent
468a40c62e
commit
7d552ce41f
@ -680,13 +680,15 @@ public class HybridHRWatchfaceDesignerActivity extends AbstractGBActivity implem
|
||||
if (selectedPosY > 240) selectedPosY = 240;
|
||||
String selectedType = widgetTypesArray.get(typeSpinner.getSelectedItemPosition());
|
||||
String selectedTZ = tzSpinner.getSelectedItem().toString();
|
||||
int selectedUpdateTimeout;
|
||||
try {
|
||||
selectedUpdateTimeout = Integer.parseInt(updateTimeout.getText().toString());
|
||||
} catch (NumberFormatException e) {
|
||||
GB.toast(getString(R.string.watchface_toast_settings_incomplete), Toast.LENGTH_SHORT, GB.WARN);
|
||||
LOG.warn("Error parsing input", e);
|
||||
return;
|
||||
int selectedUpdateTimeout = 0;
|
||||
if (selectedType.equals("widgetCustom")) {
|
||||
try {
|
||||
selectedUpdateTimeout = Integer.parseInt(updateTimeout.getText().toString());
|
||||
} catch (NumberFormatException e) {
|
||||
GB.toast(getString(R.string.watchface_toast_settings_incomplete), Toast.LENGTH_SHORT, GB.WARN);
|
||||
LOG.warn("Error parsing input", e);
|
||||
return;
|
||||
}
|
||||
}
|
||||
boolean selectedTimeoutHideText = timeoutHideText.isChecked();
|
||||
boolean selectedTimeoutShowCircle = timeoutShowCircle.isChecked();
|
||||
|
Loading…
Reference in New Issue
Block a user