diff --git a/astrid/res/layout/control_set_gcal.xml b/astrid/res/layout/control_set_gcal.xml index 1d079eb64..43b913cf6 100644 --- a/astrid/res/layout/control_set_gcal.xml +++ b/astrid/res/layout/control_set_gcal.xml @@ -12,7 +12,7 @@ android:layout_width="fill_parent" android:layout_height="wrap_content"> - diff --git a/astrid/res/layout/control_set_hide.xml b/astrid/res/layout/control_set_hide.xml index 4d4e78c46..62e52e7fe 100644 --- a/astrid/res/layout/control_set_hide.xml +++ b/astrid/res/layout/control_set_hide.xml @@ -4,7 +4,7 @@ android:orientation="vertical" android:layout_width="0dip" android:layout_height="0dip"> - diff --git a/astrid/res/layout/control_set_reminders.xml b/astrid/res/layout/control_set_reminders.xml index 67669b084..42f245a29 100644 --- a/astrid/res/layout/control_set_reminders.xml +++ b/astrid/res/layout/control_set_reminders.xml @@ -51,7 +51,7 @@ android:layout_marginLeft="5dip" android:button="@drawable/btn_check_small" android:text="@string/TEA_reminder_randomly" /> - @@ -61,7 +61,7 @@ android:layout_height="wrap_content" android:text="@string/TEA_reminder_alarm_label" style="@style/TextAppearance.GEN_EditLabel.DLG_EditLabel" /> - diff --git a/astrid/res/layout/control_set_repeat.xml b/astrid/res/layout/control_set_repeat.xml index 46e03e9c2..296997105 100644 --- a/astrid/res/layout/control_set_repeat.xml +++ b/astrid/res/layout/control_set_repeat.xml @@ -34,7 +34,7 @@ - diff --git a/astrid/src/com/todoroo/astrid/ui/ErrorCatchingSpinner.java b/astrid/src/com/todoroo/astrid/ui/ErrorCatchingSpinner.java new file mode 100644 index 000000000..4f1ef301e --- /dev/null +++ b/astrid/src/com/todoroo/astrid/ui/ErrorCatchingSpinner.java @@ -0,0 +1,22 @@ +package com.todoroo.astrid.ui; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.Spinner; + +public class ErrorCatchingSpinner extends Spinner { + + public ErrorCatchingSpinner(Context context, AttributeSet attrs) { + super(context, attrs); + } + + @Override + protected void onDetachedFromWindow() { + try { + super.onDetachedFromWindow(); + } catch (IllegalArgumentException e) { + // Bad times + } + } + +}