Skip to content

Commit

Permalink
Fix sorting not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Schwarz committed Jan 30, 2017
1 parent 265b839 commit 1267bd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private class SortingController implements TableHeaderClickListener {

@Override
public void onHeaderClicked(final int columnIndex) {
if (comparators.get(columnIndex) != null) {
if (comparators.get(columnIndex) == null) {
Log.i(LOG_TAG, "Unable to sort column with index " + columnIndex + ". Reason: no comparator set for this column.");
return;
}
Expand All @@ -203,7 +203,7 @@ public void onHeaderClicked(final int columnIndex) {
}

public void sort(final int columnIndex, final boolean sortUp) {
if (comparators.get(columnIndex) != null) {
if (comparators.get(columnIndex) == null) {
Log.i(LOG_TAG, "Unable to sort column with index " + columnIndex + ". Reason: no comparator set for this column.");
return;
}
Expand Down

0 comments on commit 1267bd5

Please sign in to comment.