{"action":"closed","issue":{"url":"https://api.github.com/repos/zhihu/Matisse/issues/516","repository_url":"https://api.github.com/repos/zhihu/Matisse","labels_url":"https://api.github.com/repos/zhihu/Matisse/issues/516/labels{/name}","comments_url":"https://api.github.com/repos/zhihu/Matisse/issues/516/comments","events_url":"https://api.github.com/repos/zhihu/Matisse/issues/516/events","html_url":"https://github.com/zhihu/Matisse/issues/516","id":374285061,"node_id":"MDU6SXNzdWUzNzQyODUwNjE=","number":516,"title":"MimeType.ofImage() doesn't work as expected","user":{"login":"yccheok","id":308276,"node_id":"MDQ6VXNlcjMwODI3Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/308276?v=4","gravatar_id":"","url":"https://api.github.com/users/yccheok","html_url":"https://github.com/yccheok","followers_url":"https://api.github.com/users/yccheok/followers","following_url":"https://api.github.com/users/yccheok/following{/other_user}","gists_url":"https://api.github.com/users/yccheok/gists{/gist_id}","starred_url":"https://api.github.com/users/yccheok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yccheok/subscriptions","organizations_url":"https://api.github.com/users/yccheok/orgs","repos_url":"https://api.github.com/users/yccheok/repos","events_url":"https://api.github.com/users/yccheok/events{/privacy}","received_events_url":"https://api.github.com/users/yccheok/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-26T08:47:18Z","updated_at":"2018-11-30T17:57:11Z","closed_at":"2018-11-30T17:57:11Z","author_association":"NONE","body":"**Describe the bug**\r\nWhen we use `MimeType.ofImage()`, we expect only image files will be shown. However, we notice that, video files are also shown\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\nI'm using the following code\r\n\r\n        Matisse.from(this)\r\n                .choose(MimeType.ofImage())\r\n                .countable(true)\r\n                .maxSelectable(Integer.MAX_VALUE)\r\n                .imageEngine(new Glide4Engine())\r\n                .thumbnailScale(1.0f)\r\n                .forResult(REQUEST_CHOOSE_IMAGE);\r\n\r\n**Expected behavior**\r\nWe expect only image files is shown. \r\n\r\nHowever, as in screenshots, you can see video files is displayed as well.\r\n\r\nIf I select the video files, toast message \"不支援的文件类型\" will be shown.\r\n\r\n**Screenshots**\r\n<img width=\"540\" alt=\"device-2018-10-26-163941\" src=\"https://user-images.githubusercontent.com/308276/47555543-aa1c9600-d93e-11e8-967e-24812c1f92b3.png\">\r\n\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n\r\n**Smartphone (please complete the following information):**\r\nXiaoMi A1, Android 8.1.0\r\n\r\n**Additional context**\r\nAdd any other context about the problem here.\r\n"}}
{"actor":{"display_login":"yccheok"}}