Added animation when opening a file in native app from chat message

This commit is contained in:
Sylvain Berfini 2021-01-28 17:31:08 +01:00
parent 7545961ffb
commit 3159ed7ab3

View file

@ -537,6 +537,10 @@ class DetailChatRoomFragment : MasterFragment<ChatRoomDetailFragmentBinding, Cha
try { try {
startActivity(intent) startActivity(intent)
if (corePreferences.enableAnimations) {
requireActivity().overridePendingTransition(R.anim.enter_right, R.anim.exit_left)
}
} catch (anfe: ActivityNotFoundException) { } catch (anfe: ActivityNotFoundException) {
Log.e("[Chat Message] Couldn't find an activity to handle MIME type: $type") Log.e("[Chat Message] Couldn't find an activity to handle MIME type: $type")