mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 14:47:29 +00:00
commit
df7644f0df
@ -54,6 +54,8 @@
|
|||||||
<data android:scheme="https" />
|
<data android:scheme="https" />
|
||||||
<data android:host="ig.me" />
|
<data android:host="ig.me" />
|
||||||
<data android:host="www.ig.me" />
|
<data android:host="www.ig.me" />
|
||||||
|
<data android:host="instagr.am" />
|
||||||
|
<data android:host="www.instagr.am" />
|
||||||
<data android:host="instagram.com" />
|
<data android:host="instagram.com" />
|
||||||
<data android:host="www.instagram.com" />
|
<data android:host="www.instagram.com" />
|
||||||
<data android:pathPrefix="/" />
|
<data android:pathPrefix="/" />
|
||||||
|
@ -12,6 +12,9 @@ public final class IntentUtils {
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public static IntentModel parseUrl(@NonNull String url) {
|
public static IntentModel parseUrl(@NonNull String url) {
|
||||||
|
if (url.contains("instagr.am/")) {
|
||||||
|
url = url.replaceFirst("s?://(?:www\\.)?instagr\\.am/", "s://www.instagram.com/");
|
||||||
|
}
|
||||||
final int wwwDel = url.contains("www.") ? 4 : 0;
|
final int wwwDel = url.contains("www.") ? 4 : 0;
|
||||||
final boolean isHttps = url.startsWith("https");
|
final boolean isHttps = url.startsWith("https");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user