Revert "Changed message links"

This reverts commit e103f168c4.
pull/212/head
M66B 2 years ago
parent e103f168c4
commit 321e832122

@ -187,17 +187,6 @@
<data android:scheme="message" />
<data android:host="email.faircode.eu" />
</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:scheme="https" />
<data android:path="/link" />
<data android:host="email.faircode.eu" />
</intent-filter>
</activity>
<activity

@ -193,17 +193,6 @@
<data android:scheme="message" />
<data android:host="email.faircode.eu" />
</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:scheme="https" />
<data android:path="/link" />
<data android:host="email.faircode.eu" />
</intent-filter>
</activity>
<activity

@ -193,17 +193,6 @@
<data android:scheme="message" />
<data android:host="email.faircode.eu" />
</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:scheme="https" />
<data android:path="/link" />
<data android:host="email.faircode.eu" />
</intent-filter>
</activity>
<activity

@ -186,17 +186,6 @@
<data android:scheme="message" />
<data android:host="email.faircode.eu" />
</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:scheme="https" />
<data android:path="/link" />
<data android:host="email.faircode.eu" />
</intent-filter>
</activity>
<activity

@ -118,12 +118,9 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
Intent intent = getIntent();
Uri data = (intent == null ? null : intent.getData());
if (data != null &&
(("message".equals(data.getScheme()) &&
("email.faircode.eu".equals(data.getHost()) ||
BuildConfig.APPLICATION_ID.equals(data.getHost()))) ||
("https".equals(data.getScheme()) &&
"email.faircode.eu".equals(data.getHost()) &&
"link".equals(data.getPath())))) {
"message".equals(data.getScheme()) &&
("email.faircode.eu".equals(data.getHost()) ||
BuildConfig.APPLICATION_ID.equals(data.getHost()))) {
super.onCreate(savedInstanceState);
Bundle args = new Bundle();

@ -269,7 +269,7 @@ public class EntityMessage implements Serializable {
}
String getLink() {
return "https://email.faircode.eu/link/#" + id;
return "message://email.faircode.eu/link/#" + id;
}
boolean isPlainOnly() {

@ -187,17 +187,6 @@
<data android:scheme="message" />
<data android:host="email.faircode.eu" />
</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:scheme="https" />
<data android:path="/link" />
<data android:host="email.faircode.eu" />
</intent-filter>
</activity>
<activity

Loading…
Cancel
Save