GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — * fix #405 · fei0316/AboutLibraries@e4079bf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main/java/com/mikepenz/aboutlibraries/sample
    • FragmentActivity.java
  • library/src/main/java/com/mikepenz/aboutlibraries
    • Libs.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/src/main/java/com/mikepenz/aboutlibraries/sample/FragmentActivity.java‎

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 numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public boolean onItemClick(View view, int i, IDrawerItem drawerItem) {
6767
startActivity(intent);
6868
} else if (id == R.id.action_manifestactivity) {
6969
new LibsBuilder()
70-
.withLibraries("crouton", "actionbarsherlock", "showcaseview", "android_job")
70+
.withLibraries("crouton", "actionbarsherlock", "showcaseview", "glide")
7171
.withAutoDetect(false)
7272
.withLicenseShown(true)
7373
.withVersionShown(true)
Collapse file

‎library/src/main/java/com/mikepenz/aboutlibraries/Libs.java‎

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 numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public static String[] toStringArray(Field[] fields) {
149149
*/
150150
public ArrayList<Library> prepareLibraries(Context ctx, String[] internalLibraries, String[] excludeLibraries, boolean autoDetect, boolean checkCachedDetection, boolean sort) {
151151
boolean isExcluding = excludeLibraries != null;
152-
HashMap<String, Library> libraries = isExcluding? new HashMap<String, Library>():null;
152+
HashMap<String, Library> libraries = new HashMap<>();
153153
ArrayList<Library> resultLibraries = new ArrayList<>();
154154

155155
if (autoDetect) {
@@ -177,8 +177,7 @@ public ArrayList<Library> prepareLibraries(Context ctx, String[] internalLibrari
177177
if (internalLibraries != null) {
178178
for (String internalLibrary : internalLibraries) {
179179
Library lib = getLibrary(internalLibrary);
180-
181-
if(isExcluding && lib != null) {
180+
if(lib != null) {
182181
resultLibraries.add(lib);
183182
libraries.put(lib.getDefinedName(), lib);
184183
}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.