Merge pull request #240 from rgarza/master

change in column name form ip to daddr
This commit is contained in:
Marcel Bokhorst 2016-01-23 18:10:39 +01:00
commit 9a192067f7
1 changed files with 1 additions and 1 deletions

View File

@ -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);