{"action":"created","issue":{"url":"https://api.github.com/repos/jeasonlzy0216/ImagePicker/issues/28","repository_url":"https://api.github.com/repos/jeasonlzy0216/ImagePicker","labels_url":"https://api.github.com/repos/jeasonlzy0216/ImagePicker/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/jeasonlzy0216/ImagePicker/issues/28/comments","events_url":"https://api.github.com/repos/jeasonlzy0216/ImagePicker/issues/28/events","html_url":"https://github.com/jeasonlzy0216/ImagePicker/issues/28","id":169297556,"number":28,"title":"能否添加一个图片格式的过滤呢？比如不显示GIF","user":{"login":"andansky","id":13568427,"avatar_url":"https://avatars.githubusercontent.com/u/13568427?v=3","gravatar_id":"","url":"https://api.github.com/users/andansky","html_url":"https://github.com/andansky","followers_url":"https://api.github.com/users/andansky/followers","following_url":"https://api.github.com/users/andansky/following{/other_user}","gists_url":"https://api.github.com/users/andansky/gists{/gist_id}","starred_url":"https://api.github.com/users/andansky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andansky/subscriptions","organizations_url":"https://api.github.com/users/andansky/orgs","repos_url":"https://api.github.com/users/andansky/repos","events_url":"https://api.github.com/users/andansky/events{/privacy}","received_events_url":"https://api.github.com/users/andansky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-04T06:01:29Z","updated_at":"2016-08-04T09:01:32Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/jeasonlzy0216/ImagePicker/issues/comments/237495222","html_url":"https://github.com/jeasonlzy0216/ImagePicker/issues/28#issuecomment-237495222","issue_url":"https://api.github.com/repos/jeasonlzy0216/ImagePicker/issues/28","id":237495222,"user":{"login":"hust201010701","id":8766906,"avatar_url":"https://avatars.githubusercontent.com/u/8766906?v=3","gravatar_id":"","url":"https://api.github.com/users/hust201010701","html_url":"https://github.com/hust201010701","followers_url":"https://api.github.com/users/hust201010701/followers","following_url":"https://api.github.com/users/hust201010701/following{/other_user}","gists_url":"https://api.github.com/users/hust201010701/gists{/gist_id}","starred_url":"https://api.github.com/users/hust201010701/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hust201010701/subscriptions","organizations_url":"https://api.github.com/users/hust201010701/orgs","repos_url":"https://api.github.com/users/hust201010701/repos","events_url":"https://api.github.com/users/hust201010701/events{/privacy}","received_events_url":"https://api.github.com/users/hust201010701/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T09:01:32Z","updated_at":"2016-08-04T09:01:32Z","body":"你可以修改ImageDataSource.java中的onCreateLoader方法。\r\n\r\n\r\n    @Override\r\n    public Loader<Cursor> onCreateLoader(int id, Bundle args) {\r\n        CursorLoader cursorLoader = null;\r\n        //扫描所有图片\r\n        if (id == LOADER_ALL)\r\n\t\t\t//cursorLoader = new CursorLoader(activity, MediaStore.Images.Media.EXTERNAL_CONTENT_URI, \r\n\t\t\tIMAGE_PROJECTION, null, null, IMAGE_PROJECTION[6] + \" DESC\");//修改为下面这句话\r\n            cursorLoader = new CursorLoader(activity, MediaStore.Images.Media.EXTERNAL_CONTENT_URI, \r\n\t\t\tIMAGE_PROJECTION, MediaStore.Images.Media.DISPLAY_NAME + \" NOT LIKE ?\", new String[] { \"%gif\" }, IMAGE_PROJECTION[6] + \" DESC\");\r\n        //扫描某个图片文件夹\r\n        if (id == LOADER_CATEGORY)\r\n            cursorLoader = new CursorLoader(activity, MediaStore.Images.Media.EXTERNAL_CONTENT_URI, IMAGE_PROJECTION, IMAGE_PROJECTION[1] + \" like '%\" + args.getString(\"path\") + \"%'\", null, IMAGE_PROJECTION[6] + \" DESC\");\r\n\r\n        return cursorLoader;\r\n    }\r\n\r\n这样就可以选择不含gif格式的图片。"}}
{"actor":{"display_login":"hust201010701"}}