Skip to content

Commit 1498909

Browse files
committed
Updated dependencies
Fixed RecyclerHeader*Adapter to have matching field and method availabilities
1 parent 712bb21 commit 1498909

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The latest AAR (Android Archive) files can be downloaded from JCenter [RecyclerE
2323
Or included in your gradle dependencies
2424

2525
```groovy
26-
compile 'com.devbrackets.android:recyclerext:0.10.3'
26+
compile 'com.devbrackets.android:recyclerext:0.10.4'
2727
```
2828

2929

demo/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ repositories {
77

88
dependencies {
99
compile project(':library')
10-
compile 'com.android.support:appcompat-v7:22.2.1'
10+
compile 'com.android.support:appcompat-v7:23.0.1'
1111
}
1212

1313
android {
14-
compileSdkVersion 22
15-
buildToolsVersion "22.0.1"
14+
compileSdkVersion 23
15+
buildToolsVersion "23.0.1"
1616

1717
lintOptions {
1818
abortOnError false
@@ -21,7 +21,7 @@ android {
2121
defaultConfig {
2222
applicationId "com.devbrackets.android.recyclerextdemo"
2323
minSdkVersion 7
24-
targetSdkVersion 22
24+
targetSdkVersion 23
2525
versionCode 1
2626
versionName "1.0"
2727
}

library/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'bintray-release'
44

55
def versionMajor = 0
66
def versionMinor = 10
7-
def versionPatch = 3
7+
def versionPatch = 4
88

99
// Maven GAV
1010
def libraryGroupId = 'com.devbrackets.android'
@@ -17,21 +17,21 @@ repositories {
1717
}
1818

1919
dependencies {
20-
compile 'com.android.support:appcompat-v7:22.2.1'
21-
compile 'com.android.support:recyclerview-v7:22.2.1'
20+
compile 'com.android.support:appcompat-v7:23.0.1'
21+
compile 'com.android.support:recyclerview-v7:23.0.1'
2222
}
2323

2424
android {
25-
compileSdkVersion 22
26-
buildToolsVersion '22.0.1'
25+
compileSdkVersion 23
26+
buildToolsVersion '23.0.1'
2727

2828
lintOptions {
2929
abortOnError false
3030
}
3131

3232
defaultConfig {
3333
minSdkVersion 7
34-
targetSdkVersion 22
34+
targetSdkVersion 23
3535

3636
versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100
3737
versionName "${versionMajor}.${versionMinor}.${versionPatch}"

library/src/main/java/com/devbrackets/android/recyclerext/adapter/RecyclerHeaderAdapter.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public abstract class RecyclerHeaderAdapter<H extends ViewHolder, C extends View
3838
public static final int VIEW_TYPE_HEADER = 10;
3939

4040
private Observer observer = new Observer();
41-
private List<HeaderItem> headerItems = new ArrayList<>();
41+
protected List<HeaderItem> headerItems = new ArrayList<>();
4242

4343
@Override
4444
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
@@ -162,7 +162,7 @@ public long getHeaderId(int childPosition) {
162162
* @param viewPosition The position in the RecyclerView (includes Headers and Children)
163163
* @return The child index
164164
*/
165-
private int determineChildPosition(int viewPosition) {
165+
public int determineChildPosition(int viewPosition) {
166166
int headerCount = 0;
167167
for (HeaderItem item: headerItems) {
168168
if (item.getViewPosition() < viewPosition) {

library/src/main/java/com/devbrackets/android/recyclerext/adapter/RecyclerHeaderCursorAdapter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public int getChildCount() {
186186
* @param viewPosition The position in the RecyclerView (includes Headers and Children)
187187
* @return The child index
188188
*/
189-
private int determineChildPosition(int viewPosition) {
189+
public int determineChildPosition(int viewPosition) {
190190
int headerCount = 0;
191191
for (HeaderItem item: headerItems) {
192192
if (item.getViewPosition() < viewPosition) {

0 commit comments

Comments
 (0)