You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add Java APIs needed for WhatsApp MainActivity and ConversationActivity
This commit is contained in:
@@ -1,4 +1,30 @@
|
||||
package android.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.Cursor;
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user