Browse Source

Add utility method to help finding favicons

master
Anthony Restaino 10 years ago
parent
commit
04c4d202b2
  1. 5
      src/acr/browser/lightning/Utils.java

5
src/acr/browser/lightning/Utils.java

@ -96,6 +96,11 @@ public final class Utils { @@ -96,6 +96,11 @@ public final class Utils {
else
return domain.startsWith("www.") ? domain.substring(4) : domain;
}
public static String getProtocol(String url) {
int index = url.indexOf('/');
return url.substring(0, index + 2);
}
public static List<HistoryItem> getOldBookmarks(Context context) {
List<HistoryItem> bookmarks = new ArrayList<HistoryItem>();

Loading…
Cancel
Save