Merge tag 'v1.7.4' into dev

1.7.4

# Conflicts:
#	app/src/main/java/org/isoron/uhabits/models/sqlite/SQLiteCheckmarkList.java
#	app/src/main/java/org/isoron/uhabits/models/sqlite/SQLiteScoreList.java
#	uhabits-core/src/main/java/org/isoron/uhabits/core/models/ScoreList.java
pull/87/merge
Alinson S. Xavier 8 years ago
commit 382b52e5b2

@ -20,8 +20,8 @@
<manifest <manifest
package="org.isoron.uhabits" package="org.isoron.uhabits"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="30" android:versionCode="31"
android:versionName="1.7.3"> android:versionName="1.7.4">
<uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.VIBRATE"/>

@ -267,9 +267,7 @@ public class SQLiteHabitList extends HabitList
for (HabitRecord record : recordList) for (HabitRecord record : recordList)
{ {
Habit habit = getById(record.getId()); Habit habit = getById(record.getId());
if (habit == null) if (habit == null) continue;
throw new RuntimeException("habit not in database");
if (!filter.matches(habit)) continue; if (!filter.matches(habit)) continue;
habits.add(habit); habits.add(habit);
} }

@ -81,7 +81,7 @@ public abstract class ScoreList implements Iterable<Score>
* @param timestamp the timestamp of a day * @param timestamp the timestamp of a day
* @return score value for that day * @return score value for that day
*/ */
public final double getValue(long timestamp) public final synchronized double getValue(long timestamp)
{ {
compute(timestamp, timestamp); compute(timestamp, timestamp);
Score s = getComputedByTimestamp(timestamp); Score s = getComputedByTimestamp(timestamp);

Loading…
Cancel
Save