mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Fix crash when saving habit (some languages only)
This commit is contained in:
@@ -57,7 +57,13 @@ public class TargetPanel extends FrameLayout
|
||||
public double getTargetValue()
|
||||
{
|
||||
String sValue = tvTargetValue.getText().toString();
|
||||
return Double.parseDouble(sValue);
|
||||
double value = 0;
|
||||
try {
|
||||
value = Double.parseDouble(sValue);
|
||||
} catch (NumberFormatException e) {
|
||||
// NOP
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setTargetValue(double targetValue)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
1.8.8
|
||||
* Small tweaks to the habit scheduling algorithm
|
||||
* Fix some crashes
|
||||
1.8:
|
||||
* New bar chart showing number of repetitions performed each week, month or year
|
||||
* Performing habits on irregular weekdays will no longer break your streak
|
||||
|
||||
Reference in New Issue
Block a user