From 24e3fc45a6bef400f0d676d8c2fe761fb07c9738 Mon Sep 17 00:00:00 2001 From: iunk Date: Sat, 23 Jan 2016 11:08:48 -0600 Subject: [PATCH] change in column name form ip to daddr --- app/src/main/java/eu/faircode/netguard/ActivityLog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/netguard/ActivityLog.java b/app/src/main/java/eu/faircode/netguard/ActivityLog.java index fa970072..36b9d1e7 100644 --- a/app/src/main/java/eu/faircode/netguard/ActivityLog.java +++ b/app/src/main/java/eu/faircode/netguard/ActivityLog.java @@ -94,7 +94,7 @@ public class ActivityLog extends AppCompatActivity { public void onItemClick(AdapterView parent, View view, int position, long id) { Cursor cursor = (Cursor) adapter.getItem(position); 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 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);