1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Revert "Changed message links"

This reverts commit e103f168c4.
This commit is contained in:
M66B 2023-03-02 07:47:06 +01:00
parent e103f168c4
commit 321e832122
7 changed files with 4 additions and 62 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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();

View file

@ -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() {

View file

@ -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