{"action":"created","issue":{"url":"https://api.github.com/repos/codekidX/storage-chooser/issues/99","repository_url":"https://api.github.com/repos/codekidX/storage-chooser","labels_url":"https://api.github.com/repos/codekidX/storage-chooser/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/codekidX/storage-chooser/issues/99/comments","events_url":"https://api.github.com/repos/codekidX/storage-chooser/issues/99/events","html_url":"https://github.com/codekidX/storage-chooser/issues/99","id":379454612,"node_id":"MDU6SXNzdWUzNzk0NTQ2MTI=","number":99,"title":"com.codekidlabs.storagechooser.utils.ResourceUtil","user":{"login":"1stmetro","id":21983778,"node_id":"MDQ6VXNlcjIxOTgzNzc4","avatar_url":"https://avatars1.githubusercontent.com/u/21983778?v=4","gravatar_id":"","url":"https://api.github.com/users/1stmetro","html_url":"https://github.com/1stmetro","followers_url":"https://api.github.com/users/1stmetro/followers","following_url":"https://api.github.com/users/1stmetro/following{/other_user}","gists_url":"https://api.github.com/users/1stmetro/gists{/gist_id}","starred_url":"https://api.github.com/users/1stmetro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1stmetro/subscriptions","organizations_url":"https://api.github.com/users/1stmetro/orgs","repos_url":"https://api.github.com/users/1stmetro/repos","events_url":"https://api.github.com/users/1stmetro/events{/privacy}","received_events_url":"https://api.github.com/users/1stmetro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-10T19:43:15Z","updated_at":"2018-11-13T22:59:05Z","closed_at":null,"author_association":"NONE","body":"Cant import this release, i get the following error, \r\n\r\nerror: cannot find symbol class ResourceUtil\r\n\r\nAlso this fault also,\r\n \r\nMemoryUtil.java:\r\nuses or overrides a deprecated API.\r\nRecompile with -Xlint:deprecation for details."},"comment":{"url":"https://api.github.com/repos/codekidX/storage-chooser/issues/comments/438470884","html_url":"https://github.com/codekidX/storage-chooser/issues/99#issuecomment-438470884","issue_url":"https://api.github.com/repos/codekidX/storage-chooser/issues/99","id":438470884,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODQ3MDg4NA==","user":{"login":"1stmetro","id":21983778,"node_id":"MDQ6VXNlcjIxOTgzNzc4","avatar_url":"https://avatars1.githubusercontent.com/u/21983778?v=4","gravatar_id":"","url":"https://api.github.com/users/1stmetro","html_url":"https://github.com/1stmetro","followers_url":"https://api.github.com/users/1stmetro/followers","following_url":"https://api.github.com/users/1stmetro/following{/other_user}","gists_url":"https://api.github.com/users/1stmetro/gists{/gist_id}","starred_url":"https://api.github.com/users/1stmetro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1stmetro/subscriptions","organizations_url":"https://api.github.com/users/1stmetro/orgs","repos_url":"https://api.github.com/users/1stmetro/repos","events_url":"https://api.github.com/users/1stmetro/events{/privacy}","received_events_url":"https://api.github.com/users/1stmetro/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T22:59:05Z","updated_at":"2018-11-13T22:59:05Z","author_association":"NONE","body":"My build.gradle is packed so hard to say why i have the error, maybe easier if i know what version of gradle you are using\r\n\r\nWith regards to the code i have added, im trying to locate the code, \r\n\r\nBasically i have added an exclusion which will probably make sense when you see it, basically i have excluded \"enc_emulated\" from showing as a drive, in theory you could add an array of names not to show using the same code, then its simply a case of passing the array of exclusions \r\n\r\npublic class MemoryUtil {\r\n\r\n    public static final String SELF_DIR_NAME = \"self\";\r\n    public static final String EMULATED_DIR_NAME = \"emulated\";\r\n    public static final String EMULATED_DIR_KNOX = \"knox-emulated\";\r\n    public static final String EMULATED_ENC = \"enc_emulated\";\r\n    public static final String SDCARD0_DIR_NAME = \"sdcard0\";\r\n    public static final String CONTAINER = \"container\";\r\n    private static final String ERROR = \"error\";\r\n\r\n    public boolean isExternalStoragePresent() {\r\n        return getStorageListSize() != 1;\r\n    }\r\n\r\n    /**\r\n     * Returns an the number of the files inside '/storage' directory\r\n     *\r\n     * @return int - number of storages present except the redundant once\r\n     */\r\n    public int getStorageListSize() {\r\n        File storageDir = new File(\"/storage\");\r\n        List<File> volumeList = new ArrayList<>();\r\n        Collections.addAll(volumeList, storageDir.listFiles());\r\n        // segregate the list\r\n        for (int i = 0; i < volumeList.size(); i++) {\r\n            String storageName = volumeList.get(i).getName();\r\n            if (storageName.equals(SELF_DIR_NAME) ||\r\n                    storageName.equals(EMULATED_DIR_KNOX) ||\r\n                    storageName.equals(EMULATED_ENC) ||\r\n                    storageName.equals(SDCARD0_DIR_NAME) ||\r\n                    storageName.equals(CONTAINER)) {\r\n                volumeList.remove(i);\r\n            }\r\n        }\r\n\r\n        return volumeList.size();\r\n    }\r\n\r\nfor (File f : volumeList) {\r\n            if (f.isDirectory()\r\n                    && !f.getName().equals(MemoryUtil.SELF_DIR_NAME)\r\n                    && !f.getName().equals(MemoryUtil.EMULATED_DIR_KNOX)\r\n                    && !f.getName().equals(MemoryUtil.EMULATED_DIR_NAME)\r\n                    && !f.getName().equals(MemoryUtil.EMULATED_ENC)\r\n                    && !f.getName().equals(MemoryUtil.SDCARD0_DIR_NAME)\r\n                    && !f.getName().equals(MemoryUtil.CONTAINER)) {\r\n\r\n"}}
{"actor":{"display_login":"1stmetro"}}