From f4e5fb7ddc3ea9ff2f0d74e6b5485ab95b1ad349 Mon Sep 17 00:00:00 2001 From: ayoubidrissi Date: Fri, 10 May 2013 09:58:26 +0200 Subject: [PATCH] Update ActivityItem.java --- demo/src/com/androidquery/test/ActivityItem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/src/com/androidquery/test/ActivityItem.java b/demo/src/com/androidquery/test/ActivityItem.java index cb4388a7..1926b356 100644 --- a/demo/src/com/androidquery/test/ActivityItem.java +++ b/demo/src/com/androidquery/test/ActivityItem.java @@ -7,8 +7,9 @@ public class ActivityItem { private String type; private String meta; + //this function is not perfect a link like "httpshkdh://www.google.com" can be considered as link !!! try the correction below public boolean isLink(){ - return type.startsWith("http"); + return type.startsWith("http://") || type.startsWith("https://"); }