Add utility method to help finding favicons
This commit is contained in:
parent
6269325a44
commit
04c4d202b2
@ -96,6 +96,11 @@ public final class Utils {
|
|||||||
else
|
else
|
||||||
return domain.startsWith("www.") ? domain.substring(4) : domain;
|
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) {
|
public static List<HistoryItem> getOldBookmarks(Context context) {
|
||||||
List<HistoryItem> bookmarks = new ArrayList<HistoryItem>();
|
List<HistoryItem> bookmarks = new ArrayList<HistoryItem>();
|
||||||
|
Loading…
Reference in New Issue
Block a user