diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8bcc4a03141b..231cddb2709d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,9 @@ section the body of the GitHub release, and refuses a version without one. `scri
## Unreleased
+- Word, Excel and PowerPoint files that a mail or file app labels the old way offer to open
+ in the app again.
+
## 4.21.0
- Spreadsheet cells can be formatted: fill, bold, italic, underline, strikethrough,
diff --git a/app/src/androidTest/java/app/opendocument/droid/test/SupportedFormatsTest.kt b/app/src/androidTest/java/app/opendocument/droid/test/SupportedFormatsTest.kt
index a72061c8d43c..74048bd83514 100644
--- a/app/src/androidTest/java/app/opendocument/droid/test/SupportedFormatsTest.kt
+++ b/app/src/androidTest/java/app/opendocument/droid/test/SupportedFormatsTest.kt
@@ -141,6 +141,28 @@ class SupportedFormatsTest {
}
}
+ /**
+ * A spelling the core does not name, but a mail or file app sends, reaches us on both sides.
+ */
+ @Test
+ fun anAliasSpellingReachesUs() {
+ for ((alias, named) in SupportedDocumentTypes.MIME_ALIASES) {
+ Assert.assertTrue(
+ "the app does not offer for $alias",
+ SupportedDocumentTypes.isSupported(alias, null),
+ )
+ Assert.assertTrue(
+ "the manifest does not offer for $alias",
+ resolvesToUs(alias, "document"),
+ )
+ Assert.assertEquals(
+ "$alias is not read as $named",
+ SupportedDocumentTypes.canonicalMimeType(named),
+ SupportedDocumentTypes.canonicalMimeType(alias),
+ )
+ }
+ }
+
/** And the same route stays shut for what the app does not claim. */
@Test
fun aFileWithNoMimeTypeAndAnUnrelatedExtensionReachesNobody() {
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 9ee3868510a5..7a31859abf93 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -282,6 +282,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+