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
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/build.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -82,4 +82,4 @@ configurations.all { |
82 | 82 | resolutionStrategy.force "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}" |
83 | 83 | resolutionStrategy.force "com.android.support:design:${rootProject.ext.supportLibVersion}" |
84 | 84 | resolutionStrategy.force "com.android.support:support-annotations:${rootProject.ext.supportLibVersion}" |
85 | | -} |
| 85 | +} |
Collapse file
Copy file name to clipboardExpand all lines: gradle.properties +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -10,4 +10,4 @@ POM_LICENCE_NAME=The Apache Software License, Version 2.0 |
10 | 10 | POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt |
11 | 11 | POM_LICENCE_DIST=repo |
12 | 12 | POM_DEVELOPER_ID=mikepenz |
13 | | -POM_DEVELOPER_NAME=Mike Penz |
| 13 | +POM_DEVELOPER_NAME=Mike Penz |
Collapse file
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 number | Diff line number | Diff line change |
|---|
|
13 | 13 | import com.mikepenz.aboutlibraries.ui.LibsSupportFragment; |
14 | 14 | import com.mikepenz.aboutlibraries.ui.item.LibraryItem; |
15 | 15 | import com.mikepenz.aboutlibraries.util.Colors; |
16 | | -import com.mikepenz.fastadapter.AbstractAdapter; |
17 | 16 | import com.mikepenz.fastadapter.FastAdapter; |
18 | 17 | import com.mikepenz.fastadapter.adapters.ItemAdapter; |
19 | 18 |
|
@@ -500,7 +499,7 @@ private void preCheck() { |
500 | 499 | * @param context the current context |
501 | 500 | * @return a LibsRecyclerViewAdapter with the libraries |
502 | 501 | */ |
503 | | - public AbstractAdapter adapter(Context context) { |
| 502 | + public FastAdapter adapter(Context context) { |
504 | 503 | Libs libs; |
505 | 504 | if (fields == null) { |
506 | 505 | libs = new Libs(context); |
@@ -521,11 +520,11 @@ public AbstractAdapter adapter(Context context) { |
521 | 520 | libraryItems.add(new LibraryItem().withLibrary(library).withLibsBuilder(this)); |
522 | 521 | } |
523 | 522 |
|
| 523 | + FastAdapter fastAdapter = FastAdapter.with(itemAdapter); |
524 | 524 | //noinspection unchecked |
525 | | - itemAdapter.wrap(new FastAdapter()); |
526 | 525 | itemAdapter.add(libraryItems); |
527 | 526 |
|
528 | | - return itemAdapter; |
| 527 | + return fastAdapter; |
529 | 528 | } |
530 | 529 |
|
531 | 530 | /** |
|
Collapse file
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 number | Diff line number | Diff line change |
|---|
|
6 | 6 | import android.content.pm.PackageManager; |
7 | 7 | import android.graphics.drawable.Drawable; |
8 | 8 | import android.os.AsyncTask; |
9 | | -import android.os.Build; |
10 | 9 | import android.os.Bundle; |
11 | 10 | import android.support.v7.widget.DefaultItemAnimator; |
12 | 11 | import android.support.v7.widget.LinearLayoutManager; |
@@ -82,9 +81,9 @@ public View onCreateView(Context context, LayoutInflater inflater, ViewGroup con |
82 | 81 | } |
83 | 82 |
|
84 | 83 | if (builder != null) { |
85 | | - mAdapter = new FastAdapter(); |
86 | 84 | mItemAdapter = new ItemAdapter(); |
87 | | - mRecyclerView.setAdapter(mItemAdapter.wrap(mAdapter)); |
| 85 | + mAdapter = FastAdapter.with(mItemAdapter); |
| 86 | + mRecyclerView.setAdapter(mAdapter); |
88 | 87 |
|
89 | 88 | if (builder.showLoadingProgress) { |
90 | 89 | mItemAdapter.add(new LoaderItem()); |
|