Changed message links

This commit is contained in:
M66B
2023-03-01 09:23:42 +01:00
parent aadd95595f
commit e103f168c4
7 changed files with 62 additions and 4 deletions

View File

@@ -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()) &&
("email.faircode.eu".equals(data.getHost()) ||
BuildConfig.APPLICATION_ID.equals(data.getHost()))) {
(("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())))) {
super.onCreate(savedInstanceState);
Bundle args = new Bundle();