mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-01 14:32:54 +01:00
Fossil Hybrid HR: Fix widget configuration bug
This commit is contained in:
parent
468a40c62e
commit
7d552ce41f
@ -680,7 +680,8 @@ public class HybridHRWatchfaceDesignerActivity extends AbstractGBActivity implem
|
|||||||
if (selectedPosY > 240) selectedPosY = 240;
|
if (selectedPosY > 240) selectedPosY = 240;
|
||||||
String selectedType = widgetTypesArray.get(typeSpinner.getSelectedItemPosition());
|
String selectedType = widgetTypesArray.get(typeSpinner.getSelectedItemPosition());
|
||||||
String selectedTZ = tzSpinner.getSelectedItem().toString();
|
String selectedTZ = tzSpinner.getSelectedItem().toString();
|
||||||
int selectedUpdateTimeout;
|
int selectedUpdateTimeout = 0;
|
||||||
|
if (selectedType.equals("widgetCustom")) {
|
||||||
try {
|
try {
|
||||||
selectedUpdateTimeout = Integer.parseInt(updateTimeout.getText().toString());
|
selectedUpdateTimeout = Integer.parseInt(updateTimeout.getText().toString());
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
@ -688,6 +689,7 @@ public class HybridHRWatchfaceDesignerActivity extends AbstractGBActivity implem
|
|||||||
LOG.warn("Error parsing input", e);
|
LOG.warn("Error parsing input", e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
boolean selectedTimeoutHideText = timeoutHideText.isChecked();
|
boolean selectedTimeoutHideText = timeoutHideText.isChecked();
|
||||||
boolean selectedTimeoutShowCircle = timeoutShowCircle.isChecked();
|
boolean selectedTimeoutShowCircle = timeoutShowCircle.isChecked();
|
||||||
HybridHRWatchfaceWidget widgetConfig;
|
HybridHRWatchfaceWidget widgetConfig;
|
||||||
|
Loading…
Reference in New Issue
Block a user