Skip to content

Commit

Permalink
optimized email chooser and added extra file filters to filechooser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kengoon committed Apr 29, 2021
1 parent f4ecceb commit e5efc08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plyer/platforms/android/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _send(self, **kwargs):
)
else:
intent.setClassName('com.google.android.gm', 'com.google.android.gm.ComposeActivityGmailExternal')
activity.startActivity(intent)



def instance():
Expand Down
7 changes: 5 additions & 2 deletions plyer/platforms/android/filechooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,13 @@ class AndroidFileChooser(FileChooser):
"pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"xls": "application/vnd.ms-excel",
"xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"text": "text/plain",
"text": "text/*",
"pdf": "application/pdf",
"zip": "application/zip",
"image": "image/*"
"image": "image/*",
"video": "video/*",
"audio": "audio/*",
"application": "application/*"
}

selected_mime_type = None
Expand Down

0 comments on commit e5efc08

Please sign in to comment.