| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5391a00 commit 5b65326
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1699,6 +1699,15 @@ protected boolean addSketches(JMenu menu, File folder, | |||
| 1699 | 1699 | return false; // let's not go there | |
| 1700 | 1700 | } | |
| 1701 | 1701 | ||
| 1702 | + if (folder.getName().equals("sdk")) { | ||
| 1703 | + // This could be Android's SDK folder. Let's double check: | ||
| 1704 | + File suspectSDKPath = new File(folder.getParent(), folder.getName()); | ||
| 1705 | + File expectedSDKPath = new File(sketchbookFolder, "android" + File.separator + "sdk"); | ||
| 1706 | + if (expectedSDKPath.getAbsolutePath().equals(suspectSDKPath.getAbsolutePath())) { | ||
| 1707 | + return false; // Most likely the SDK folder, skip it | ||
| 1708 | + } | ||
| 1709 | + } | ||
| 1710 | + | ||
| 1702 | 1711 | String[] list = folder.list(); | |
| 1703 | 1712 | // If a bad folder or unreadable or whatever, this will come back null | |
| 1704 | 1713 | if (list == null) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments