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 — Merge branch 'feature/v3_new' into develop · fei0316/AboutLibraries@79f5bea

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app
    • build.gradle
  • gradle.properties
  • library/src/main/java/com/mikepenz/aboutlibraries
    • LibsBuilder.java
    • LibsFragmentCompat.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/build.gradle‎

Copy file name to clipboardExpand all lines: app/build.gradle
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ configurations.all {
8282
resolutionStrategy.force "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
8383
resolutionStrategy.force "com.android.support:design:${rootProject.ext.supportLibVersion}"
8484
resolutionStrategy.force "com.android.support:support-annotations:${rootProject.ext.supportLibVersion}"
85-
}
85+
}
Collapse file

‎gradle.properties‎

Copy file name to clipboardExpand all lines: gradle.properties
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ POM_LICENCE_NAME=The Apache Software License, Version 2.0
1010
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
1111
POM_LICENCE_DIST=repo
1212
POM_DEVELOPER_ID=mikepenz
13-
POM_DEVELOPER_NAME=Mike Penz
13+
POM_DEVELOPER_NAME=Mike Penz
Collapse file

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

Copy file name to clipboardExpand all lines: library/src/main/java/com/mikepenz/aboutlibraries/LibsBuilder.java
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.mikepenz.aboutlibraries.ui.LibsSupportFragment;
1414
import com.mikepenz.aboutlibraries.ui.item.LibraryItem;
1515
import com.mikepenz.aboutlibraries.util.Colors;
16-
import com.mikepenz.fastadapter.AbstractAdapter;
1716
import com.mikepenz.fastadapter.FastAdapter;
1817
import com.mikepenz.fastadapter.adapters.ItemAdapter;
1918

@@ -500,7 +499,7 @@ private void preCheck() {
500499
* @param context the current context
501500
* @return a LibsRecyclerViewAdapter with the libraries
502501
*/
503-
public AbstractAdapter adapter(Context context) {
502+
public FastAdapter adapter(Context context) {
504503
Libs libs;
505504
if (fields == null) {
506505
libs = new Libs(context);
@@ -521,11 +520,11 @@ public AbstractAdapter adapter(Context context) {
521520
libraryItems.add(new LibraryItem().withLibrary(library).withLibsBuilder(this));
522521
}
523522

523+
FastAdapter fastAdapter = FastAdapter.with(itemAdapter);
524524
//noinspection unchecked
525-
itemAdapter.wrap(new FastAdapter());
526525
itemAdapter.add(libraryItems);
527526

528-
return itemAdapter;
527+
return fastAdapter;
529528
}
530529

531530
/**
Collapse file

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

Copy file name to clipboardExpand all lines: library/src/main/java/com/mikepenz/aboutlibraries/LibsFragmentCompat.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import android.content.pm.PackageManager;
77
import android.graphics.drawable.Drawable;
88
import android.os.AsyncTask;
9-
import android.os.Build;
109
import android.os.Bundle;
1110
import android.support.v7.widget.DefaultItemAnimator;
1211
import android.support.v7.widget.LinearLayoutManager;
@@ -82,9 +81,9 @@ public View onCreateView(Context context, LayoutInflater inflater, ViewGroup con
8281
}
8382

8483
if (builder != null) {
85-
mAdapter = new FastAdapter();
8684
mItemAdapter = new ItemAdapter();
87-
mRecyclerView.setAdapter(mItemAdapter.wrap(mAdapter));
85+
mAdapter = FastAdapter.with(mItemAdapter);
86+
mRecyclerView.setAdapter(mAdapter);
8887

8988
if (builder.showLoadingProgress) {
9089
mItemAdapter.add(new LoaderItem());

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.