mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Remove intent-filter for external links.
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user