diff --git a/README.md b/README.md index 47c8c24..f072d29 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ dependencies { - compile 'com.github.neurospeech:android-hypercube:v1.4.11' + compile 'com.github.neurospeech:android-hypercube:v1.4.12' } diff --git a/hypercube/build.gradle b/hypercube/build.gradle index 550d1f2..090a988 100644 --- a/hypercube/build.gradle +++ b/hypercube/build.gradle @@ -25,8 +25,8 @@ android { defaultConfig { minSdkVersion 15 targetSdkVersion 23 - versionCode 1411 - versionName "1.4.11" + versionCode 1412 + versionName "1.4.12" } buildTypes { release { diff --git a/hypercube/src/main/java/com/neurospeech/hypercube/ui/HeaderedAdapter.java b/hypercube/src/main/java/com/neurospeech/hypercube/ui/HeaderedAdapter.java index a2993fd..46e8a69 100644 --- a/hypercube/src/main/java/com/neurospeech/hypercube/ui/HeaderedAdapter.java +++ b/hypercube/src/main/java/com/neurospeech/hypercube/ui/HeaderedAdapter.java @@ -69,8 +69,8 @@ public void clear(){ } - public Comparator getComparator() { - return comparator; + public Comparator getSortComparator() { + return sortComparator; } /** @@ -78,11 +78,11 @@ public Comparator getComparator() { * @param comparator * Here we need to just store the Comparator i.e. fields on which we have to sort */ - public void setComparator(Comparator comparator) { - this.comparator = comparator; + public void setSortComparator(Comparator comparator) { + this.sortComparator = comparator; } - private Comparator comparator; + private Comparator sortComparator; /** * This method is used to identify whether it is header or item and accordingly will regroup items based on header @@ -104,10 +104,10 @@ protected void recreate() { int i =0; /** - * If comparator is set, then we sort the list before recreating it + * If sortComparator is set, then we sort the list before recreating it */ - if (comparator != null) { - Collections.sort(source,comparator); + if (sortComparator != null) { + Collections.sort(source, sortComparator); } for (T item : source){