Remove intent-filter for external links.

This commit is contained in:
B. Petersen
2016-11-21 23:10:13 +01:00
parent ebc1156ac7
commit a020aa8784
2 changed files with 3 additions and 10 deletions
@@ -98,15 +98,6 @@
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="vnd.android.cursor.item/vnd.com.b44t.messenger.android.profile"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="telegram.me" android:scheme="http" />
<data android:host="telegram.me" android:scheme="https" />
<data android:host="telegram.dog" android:scheme="http" />
<data android:host="telegram.dog" android:scheme="https" />
</intent-filter>
<intent-filter android:icon="@drawable/ic_launcher" android:priority="1">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
@@ -780,8 +780,9 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
String scheme = data.getScheme();
if (scheme != null) {
if ((scheme.equals("http") || scheme.equals("https"))) {
/*
String host = data.getHost().toLowerCase();
if (host.equals("telegram.me") || host.equals("telegram.dog")) {
if (host.equals("t'gram.me") || host.equals("t'gram.dog")) {
String path = data.getPath();
if (path != null && path.length() > 1) {
path = path.substring(1);
@@ -817,6 +818,7 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa
}
}
}
*/
} else if (scheme.equals("tg")) {
String url = data.toString();
if (url.startsWith("tg:resolve") || url.startsWith("tg://resolve")) {