Added animation when opening a file in native app from chat message
This commit is contained in:
parent
7545961ffb
commit
3159ed7ab3
1 changed files with 4 additions and 0 deletions
|
@ -537,6 +537,10 @@ class DetailChatRoomFragment : MasterFragment<ChatRoomDetailFragmentBinding, Cha
|
|||
|
||||
try {
|
||||
startActivity(intent)
|
||||
|
||||
if (corePreferences.enableAnimations) {
|
||||
requireActivity().overridePendingTransition(R.anim.enter_right, R.anim.exit_left)
|
||||
}
|
||||
} catch (anfe: ActivityNotFoundException) {
|
||||
Log.e("[Chat Message] Couldn't find an activity to handle MIME type: $type")
|
||||
|
||||
|
|
Loading…
Reference in a new issue