mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 17:18:52 -06:00
Merge branch 'hotfix/1.7.2'
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
### 1.7.2 (May 27, 2017)
|
||||
|
||||
* Fix crash at startup
|
||||
|
||||
### 1.7.1 (May 21, 2017)
|
||||
|
||||
* Fix crash (BadParcelableException)
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
<manifest
|
||||
package="org.isoron.uhabits"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:versionCode="28"
|
||||
android:versionName="1.7.1">
|
||||
android:versionCode="29"
|
||||
android:versionName="1.7.2">
|
||||
|
||||
<uses-permission android:name="android.permission.VIBRATE"/>
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ public class BundleSavedState extends android.support.v4.view.AbsSavedState
|
||||
@Override
|
||||
public BundleSavedState createFromParcel(Parcel source)
|
||||
{
|
||||
return new BundleSavedState(source);
|
||||
return new BundleSavedState(source, getClass().getClassLoader());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -47,9 +47,9 @@ public class BundleSavedState extends android.support.v4.view.AbsSavedState
|
||||
this.bundle = bundle;
|
||||
}
|
||||
|
||||
public BundleSavedState(Parcel source)
|
||||
public BundleSavedState(Parcel source, ClassLoader loader)
|
||||
{
|
||||
super(source);
|
||||
super(source, loader);
|
||||
this.bundle = source.readBundle(getClass().getClassLoader());
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,8 @@ import java.util.*;
|
||||
|
||||
import butterknife.*;
|
||||
|
||||
import static org.isoron.uhabits.activities.ThemeSwitcher.*;
|
||||
|
||||
public abstract class BaseDialog extends AppCompatDialogFragment
|
||||
{
|
||||
@Nullable
|
||||
@@ -65,7 +67,13 @@ public abstract class BaseDialog extends AppCompatDialogFragment
|
||||
@Override
|
||||
public int getTheme()
|
||||
{
|
||||
return R.style.DialogWithTitle;
|
||||
AppComponent component =
|
||||
((HabitsApplication) getContext().getApplicationContext()).getComponent();
|
||||
|
||||
if(component.getPreferences().getTheme() == THEME_LIGHT)
|
||||
return R.style.DialogWithTitle;
|
||||
else
|
||||
return R.style.DarkDialogWithTitle;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -261,7 +261,7 @@ public class SQLiteHabitList extends HabitList
|
||||
}
|
||||
}
|
||||
|
||||
protected List<Habit> toList()
|
||||
protected synchronized List<Habit> toList()
|
||||
{
|
||||
String query = buildSelectQuery();
|
||||
List<HabitRecord> recordList = sqlite.query(query, null);
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
<string name="reminder_sound">Zvuk podsjetnika</string>
|
||||
<string name="none">Nijedan</string>
|
||||
<string name="filter">Filtar</string>
|
||||
<string name="hide_completed">Skrivanje je uspjelo</string>
|
||||
<string name="hide_completed">Sakrij završeno</string>
|
||||
<string name="hide_archived">Sakrij arhivirano</string>
|
||||
<string name="sticky_notifications">Učini obavijesti trajnima</string>
|
||||
<string name="sticky_notifications_description">Spriječava da se obavijesti zanemare.</string>
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
<string name="interval_4_hour">4 שעות</string>
|
||||
<string name="interval_8_hour">8 שעות</string>
|
||||
<string name="interval_24_hour">24 שעות</string>
|
||||
<string name="pref_toggle_title">החלפה להפעלה עם לחיצה קצרה</string>
|
||||
<string name="pref_toggle_title">סימון הרגלים בלחיצה קצרה</string>
|
||||
<string name="pref_toggle_description">סמנו יעדים בהקשה קצרה במקום לחיצה ממושכת. נוח יותר, אך יכול להוביל ללחיצות לא מכוונות.</string>
|
||||
<string name="pref_snooze_interval_title">מרווח נדנוד לתזכורות</string>
|
||||
<string name="pref_rate_this_app">דרג/י אותנו ב- Google Play</string>
|
||||
@@ -107,7 +107,7 @@
|
||||
<string name="developers">מפתחים</string>
|
||||
<string name="version_n">גרסה %s</string>
|
||||
<string name="frequency">תדירות</string>
|
||||
<string name="checkmark">סימן</string>
|
||||
<string name="checkmark">סימון הרגל</string>
|
||||
<string name="strength">חוזק</string>
|
||||
<string name="best_streaks">רצף שיא</string>
|
||||
<string name="current_streaks">רצף נוכחי</string>
|
||||
|
||||
@@ -260,4 +260,9 @@
|
||||
<style name="DialogWithTitle" parent="@style/Theme.AppCompat.Light.Dialog">
|
||||
<item name="windowNoTitle">false</item>
|
||||
</style>
|
||||
|
||||
<style name="DarkDialogWithTitle"
|
||||
parent="@style/Theme.AppCompat.Dialog">
|
||||
<item name="windowNoTitle">false</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user