mirrored from https://gitlab.com/fdroid/fdroidclient
/
CanUpdateAppListAdapter.java
38 lines (30 loc) · 1018 Bytes
/
CanUpdateAppListAdapter.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package org.fdroid.fdroid.views;
import android.content.Context;
import android.database.Cursor;
import android.os.Build;
public class CanUpdateAppListAdapter extends AppListAdapter {
public static CanUpdateAppListAdapter create(Context context, Cursor cursor, int flags) {
if (Build.VERSION.SDK_INT >= 11) {
return new CanUpdateAppListAdapter(context, cursor, flags);
} else {
return new CanUpdateAppListAdapter(context, cursor);
}
}
private CanUpdateAppListAdapter(Context context, Cursor c) {
super(context, c);
}
public CanUpdateAppListAdapter(Context context, Cursor c, boolean autoRequery) {
super(context, c, autoRequery);
}
private CanUpdateAppListAdapter(Context context, Cursor c, int flags) {
super(context, c, flags);
}
@Override
protected boolean showStatusUpdate() {
return true;
}
@Override
protected boolean showStatusInstalled() {
return false;
}
}