Changed message links

pull/212/head
M66B 2 years ago
parent aadd95595f
commit e103f168c4

@ -187,6 +187,17 @@
<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,6 +193,17 @@
<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,6 +193,17 @@
<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,6 +186,17 @@
<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,9 +118,12 @@ 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()) &&
(("message".equals(data.getScheme()) &&
("email.faircode.eu".equals(data.getHost()) ||
BuildConfig.APPLICATION_ID.equals(data.getHost()))) {
BuildConfig.APPLICATION_ID.equals(data.getHost()))) ||
("https".equals(data.getScheme()) &&
"email.faircode.eu".equals(data.getHost()) &&
"link".equals(data.getPath())))) {
super.onCreate(savedInstanceState);
Bundle args = new Bundle();

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

@ -187,6 +187,17 @@
<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