Searched refs:urlAsString (Results 1 – 2 of 2) sorted by relevance
161 public ShortcutInfo createShortcutForUrl(String urlAsString) { in createShortcutForUrl() argument162 Log.i(TAG, "createShortcutForUrl: " + urlAsString); in createShortcutForUrl()163 urlAsString = normalizeUrl(urlAsString); in createShortcutForUrl()165 final ShortcutInfo.Builder b = new ShortcutInfo.Builder(mContext, urlAsString); in createShortcutForUrl()167 final Uri uri = Uri.parse(urlAsString); in createShortcutForUrl()199 private String normalizeUrl(String urlAsString) { in normalizeUrl() argument200 if (urlAsString.startsWith("http://") || urlAsString.startsWith("https://")) { in normalizeUrl()201 return urlAsString; in normalizeUrl()203 return "http://" + urlAsString; in normalizeUrl()207 public void addWebSiteShortcut(String urlAsString, boolean forPin) { in addWebSiteShortcut() argument[all …]
159 private ShortcutInfo createShortcutForUrl(String urlAsString) { in createShortcutForUrl() argument160 Log.i(TAG, "createShortcutForUrl: " + urlAsString); in createShortcutForUrl()162 final ShortcutInfo.Builder b = new ShortcutInfo.Builder(mContext, urlAsString); in createShortcutForUrl()164 final Uri uri = Uri.parse(urlAsString); in createShortcutForUrl()196 private String normalizeUrl(String urlAsString) { in normalizeUrl() argument197 if (urlAsString.startsWith("http://") || urlAsString.startsWith("https://")) { in normalizeUrl()198 return urlAsString; in normalizeUrl()200 return "http://" + urlAsString; in normalizeUrl()204 public void addWebSiteShortcut(String urlAsString) { in addWebSiteShortcut() argument205 final String uriFinal = urlAsString; in addWebSiteShortcut()