Some cleanup

pull/600/head
NegatioN 5 years ago
parent 8bd1734f44
commit 9f2e4a8341

@ -156,9 +156,9 @@ public class CheckmarkWidgetView extends HabitWidgetView
ring.setVisibility(VISIBLE);
widthMeasureSpec =
MeasureSpec.makeMeasureSpec((int) w, MeasureSpec.EXACTLY);
MeasureSpec.makeMeasureSpec((int) w, MeasureSpec.EXACTLY);
heightMeasureSpec =
MeasureSpec.makeMeasureSpec((int) h, MeasureSpec.EXACTLY);
MeasureSpec.makeMeasureSpec((int) h, MeasureSpec.EXACTLY);
float textSize = 0.15f * h;
float maxTextSize = getDimension(getContext(), R.dimen.smallerTextSize);

@ -174,8 +174,6 @@
<string name="night_mode">Dark theme</string>
<string name="use_pure_black">Use pure black in dark theme</string>
<string name="pure_black_description">Replaces gray backgrounds with pure black in dark theme. Reduces battery usage in phones with AMOLED display.</string>
<string name="use_widget_numbers">Widget numbers instead of checkmarks</string>
<string name="use_widget_numbers_description">Replaces the checkmark in the 1x1 habit widget with the number of times you\'ve currently chained the habit.</string>
<string name="interface_preferences">Interface</string>
<string name="reverse_days">Reverse order of days</string>
<string name="reverse_days_description">Show days in reverse order on the main screen.</string>

@ -59,14 +59,6 @@
android:key="pref_first_weekday"
android:title="@string/first_day_of_the_week"
app:iconSpaceReserved="false" />
<CheckBoxPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:key="pref_widget_numbers"
android:summary="@string/use_widget_numbers_description"
android:title="@string/use_widget_numbers"
app:iconSpaceReserved="false" />
</PreferenceCategory>

@ -27,4 +27,4 @@
android:updatePeriodMillis="3600000"
android:configure="org.isoron.uhabits.widgets.HabitPickerDialog"
android:widgetCategory="home_screen">
</appwidget-provider>
</appwidget-provider>

@ -30,8 +30,6 @@ public final class Streak
private final Timestamp end;
//TODO define the "End" of a streak to follow the rules of the given streak?
//ex if 2 times in a week, define end at end of that week. or by other rules ofc
public Streak(Timestamp start, Timestamp end)
{
this.start = start;

@ -333,11 +333,6 @@ public class Preferences
return Integer.parseInt(storage.getString("pref_widget_opacity", "102"));
}
public boolean getWidgetNumberMode()
{
return storage.getBoolean("pref_widget_numbers", false);
}
/**
* @return An integer representing the first day of the week. Sunday
* corresponds to 1, Monday to 2, and so on, until Saturday, which is

Loading…
Cancel
Save