Files
android_translation_layer/src/api-impl/android/widget/CursorAdapter.java

31 lines
585 B
Java
Raw Normal View History

2023-11-08 21:40:39 +01:00
package android.widget;
import android.content.Context;
import android.database.Cursor;
2023-11-08 21:40:39 +01:00
public abstract class CursorAdapter extends BaseAdapter {
private Cursor cursor;
public CursorAdapter(Context context, Cursor cursor, boolean autoRequery) {
this.cursor = cursor;
}
public CursorAdapter(Context context, Cursor cursor, int flags) {
this.cursor = cursor;
}
public void changeCursor(Cursor cursor) {
this.cursor = cursor;
}
public Cursor getCursor() {
return cursor;
}
@Override
public int getCount() {
return cursor == null ? 0 : cursor.getCount();
}
2023-11-08 21:40:39 +01:00
}