GeezerVison is showing github.com — * fix #405 · fei0316/AboutLibraries@e4079bf
File tree
Expand file treeCollapse file tree
Open diff view settings
app/src/main/java/com/mikepenz/aboutlibraries/sample library/src/main/java/com/mikepenz/aboutlibraries
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: app/src/main/java/com/mikepenz/aboutlibraries/sample/FragmentActivity.java +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -67,7 +67,7 @@ public boolean onItemClick(View view, int i, IDrawerItem drawerItem) { |
67 | 67 | startActivity(intent); |
68 | 68 | } else if (id == R.id.action_manifestactivity) { |
69 | 69 | new LibsBuilder() |
70 | | - .withLibraries("crouton", "actionbarsherlock", "showcaseview", "android_job") |
| 70 | + .withLibraries("crouton", "actionbarsherlock", "showcaseview", "glide") |
71 | 71 | .withAutoDetect(false) |
72 | 72 | .withLicenseShown(true) |
73 | 73 | .withVersionShown(true) |
|
Collapse file
Copy file name to clipboardExpand all lines: library/src/main/java/com/mikepenz/aboutlibraries/Libs.java +2-3Lines changed: 2 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -149,7 +149,7 @@ public static String[] toStringArray(Field[] fields) { |
149 | 149 | */ |
150 | 150 | public ArrayList<Library> prepareLibraries(Context ctx, String[] internalLibraries, String[] excludeLibraries, boolean autoDetect, boolean checkCachedDetection, boolean sort) { |
151 | 151 | boolean isExcluding = excludeLibraries != null; |
152 | | - HashMap<String, Library> libraries = isExcluding? new HashMap<String, Library>():null; |
| 152 | + HashMap<String, Library> libraries = new HashMap<>(); |
153 | 153 | ArrayList<Library> resultLibraries = new ArrayList<>(); |
154 | 154 |
|
155 | 155 | if (autoDetect) { |
@@ -177,8 +177,7 @@ public ArrayList<Library> prepareLibraries(Context ctx, String[] internalLibrari |
177 | 177 | if (internalLibraries != null) { |
178 | 178 | for (String internalLibrary : internalLibraries) { |
179 | 179 | Library lib = getLibrary(internalLibrary); |
180 | | - |
181 | | - if(isExcluding && lib != null) { |
| 180 | + if(lib != null) { |
182 | 181 | resultLibraries.add(lib); |
183 | 182 | libraries.put(lib.getDefinedName(), lib); |
184 | 183 | } |
|