1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-05 10:49:24 +02:00

fixed ClassCastException

Conflicts:

	AndroidManifest.xml
This commit is contained in:
Nikolay Pultsin 2011-07-23 00:01:58 +01:00
parent fdd5c4f526
commit ab0f51bda7
3 changed files with 11 additions and 2 deletions

View file

@ -119,4 +119,13 @@ public abstract class LibraryTree extends FBTree {
}
return !toRemove.isEmpty();
}
@Override
public int compareTo(FBTree tree) {
final int cmp = super.compareTo(tree);
if (cmp == 0) {
return getClass().getSimpleName().compareTo(tree.getClass().getSimpleName());
}
return cmp;
}
}