Working with other apps where are not types = file

Problem: If you add an activity from calendar or other app you have always the folder shown!
With this it only shows the preview or folder if type is file!