Create generic file binder to allow viewing any unhandled mms part type

This commit is contained in:
moezbhatti
2019-10-17 01:31:44 -04:00
parent d46193abba
commit 629e7a2d72
13 changed files with 229 additions and 60 deletions
@@ -245,9 +245,9 @@ class Navigator @Inject constructor(
startActivityExternal(intent)
}
fun saveVcard(uri: Uri) {
fun openFile(uri: Uri, contentType: String) {
val intent = Intent(Intent.ACTION_VIEW)
.setDataAndType(uri, "text/x-vcard")
.setDataAndType(uri, contentType)
startActivityExternal(intent)
}