|
|
|
@ -97,6 +97,11 @@ public final class Utils {
@@ -97,6 +97,11 @@ public final class Utils {
|
|
|
|
|
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>(); |
|
|
|
|
File bookUrl = new File(context.getFilesDir(), "bookurl"); |
|
|
|
|