mirror of https://github.com/M66B/NetGuard.git
change in column name form ip to daddr
This commit is contained in:
parent
26e5978068
commit
24e3fc45a6
|
@ -94,7 +94,7 @@ public class ActivityLog extends AppCompatActivity {
|
||||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||||
Cursor cursor = (Cursor) adapter.getItem(position);
|
Cursor cursor = (Cursor) adapter.getItem(position);
|
||||||
long time = cursor.getLong(cursor.getColumnIndex("time"));
|
long time = cursor.getLong(cursor.getColumnIndex("time"));
|
||||||
String ip = cursor.getString(cursor.getColumnIndex("ip"));
|
String ip = cursor.getString(cursor.getColumnIndex("daddr"));
|
||||||
final int port = (cursor.isNull(cursor.getColumnIndex("port")) ? -1 : cursor.getInt(cursor.getColumnIndex("port")));
|
final int port = (cursor.isNull(cursor.getColumnIndex("port")) ? -1 : cursor.getInt(cursor.getColumnIndex("port")));
|
||||||
final int uid = (cursor.isNull(cursor.getColumnIndex("uid")) ? -1 : cursor.getInt(cursor.getColumnIndex("uid")));
|
final int uid = (cursor.isNull(cursor.getColumnIndex("uid")) ? -1 : cursor.getInt(cursor.getColumnIndex("uid")));
|
||||||
final String whois = (ip.length() > 1 && ip.charAt(0) == '/' ? ip.substring(1) : ip);
|
final String whois = (ip.length() > 1 && ip.charAt(0) == '/' ? ip.substring(1) : ip);
|
||||||
|
|
Loading…
Reference in New Issue