Remove ErrorCatchingListView

pull/253/head
Alex Baker 11 years ago
parent 658c5e2871
commit 636288ca00

@ -31,12 +31,11 @@ import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.AdapterView;
import android.widget.ImageView;
import com.todoroo.astrid.ui.ErrorCatchingListView;
import android.widget.ListView;
import org.tasks.R;
public class TouchListView extends ErrorCatchingListView {
public class TouchListView extends ListView {
private ImageView mDragView;
private WindowManager mWindowManager;
private WindowManager.LayoutParams mWindowParams;

@ -1,37 +0,0 @@
package com.todoroo.astrid.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.ListView;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ErrorCatchingListView extends ListView {
private static final Logger log = LoggerFactory.getLogger(ErrorCatchingListView.class);
public ErrorCatchingListView(Context context) {
super(context);
}
public ErrorCatchingListView(Context context, AttributeSet attrs) {
super(context, attrs);
}
public ErrorCatchingListView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
@Override
public boolean onTouchEvent(MotionEvent ev) {
try {
return super.onTouchEvent(ev);
} catch (Exception e) {
log.error(e.getMessage(), e);
return true;
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

@ -26,7 +26,7 @@
android:layout_height="1px"
android:padding="5dip"
android:background="@android:drawable/divider_horizontal_dark"/>
<com.todoroo.astrid.ui.ErrorCatchingListView
<ListView
android:id="@+id/existingTags"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

@ -29,7 +29,7 @@
android:background="#e9e9e9"/>
<!-- List -->
<com.todoroo.astrid.ui.ErrorCatchingListView android:id="@android:id/list"
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="100"

@ -9,7 +9,7 @@
android:layout_height="fill_parent"
style="@style/Content">
<com.todoroo.astrid.ui.ErrorCatchingListView android:id="@android:id/list"
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>

@ -22,7 +22,7 @@
style="@style/TextAppearance.TLA_NoItems"/>
<!-- Task List -->
<com.todoroo.astrid.ui.ErrorCatchingListView android:id="@android:id/list"
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
style="@style/ListView" />

@ -17,7 +17,7 @@
style="TextAppearance.ActionBar_ListsHeader" />
<!-- List -->
<com.todoroo.astrid.ui.ErrorCatchingListView android:id="@android:id/list"
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="100"

Loading…
Cancel
Save