Changed message links

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

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

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

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

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

@ -118,9 +118,12 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
Intent intent = getIntent(); Intent intent = getIntent();
Uri data = (intent == null ? null : intent.getData()); Uri data = (intent == null ? null : intent.getData());
if (data != null && if (data != null &&
"message".equals(data.getScheme()) && (("message".equals(data.getScheme()) &&
("email.faircode.eu".equals(data.getHost()) || ("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); super.onCreate(savedInstanceState);
Bundle args = new Bundle(); Bundle args = new Bundle();

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

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

Loading…
Cancel
Save