Skip to content

Commit

Permalink
Resolved #381 - Better Log system
Browse files Browse the repository at this point in the history
  • Loading branch information
davideas committed Jun 5, 2017
1 parent bee5ed3 commit 34691a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# FlexibleAdapter

### ANNOUNCEMENT: Important changes in latest release
- **NEW!** Second release candidate: [v5.0.0-rc2](https://github.com/davideas/FlexibleAdapter/releases/tag/5.0.0-rc2) built on 2017.05.31
- **NEW!** Second release candidate: [v5.0.0-rc2](https://github.com/davideas/FlexibleAdapter/releases/tag/5.0.0-rc2) built on 2017.06.09
- If you come from previous versions, update your code following the Wiki page [Migrations](https://github.com/davideas/FlexibleAdapter/wiki/Migrations).
- Please read [issues](https://github.com/davideas/FlexibleAdapter/issues) and [releases](https://github.com/davideas/FlexibleAdapter/releases).

Expand All @@ -28,7 +28,7 @@ This library is configurable and it guides the developers to create a better use
* **NEW!** Customizable [FastScroller](https://github.com/davideas/FlexibleAdapter/wiki/5.x-%7C-FastScroller) with new features.
* Customizable scrolling animations based on adapter position and beyond.
* Customizable animations when adding and removing items.
* Customizable divider item decoration.
* **NEW!** [Advanced item decoration](https://github.com/davideas/FlexibleAdapter/wiki/5.x-%7C-Flexible-Item-Decoration) (customizable dividers, sections gap and item offsets).
* Restore deleted items with [UndoHelper](https://github.com/davideas/FlexibleAdapter/wiki/5.x-%7C-UndoHelper); Works with Expandable items too!
* Async [Filter](https://github.com/davideas/FlexibleAdapter/wiki/5.x-%7C-Search-Filter) with Spannable text; Result list is animated; **NEW!** With optional original list; Works with sub items too!
* [High performance](https://github.com/davideas/FlexibleAdapter/wiki/5.x-%7C-Search-Filter#performance-result-when-animations-are-active) updates and filter on big list (far better than _DiffUtil_).
Expand Down Expand Up @@ -118,7 +118,7 @@ This [Wiki page](https://github.com/davideas/FlexibleAdapter/wiki/5.x-%7C-Demo-A

# Change Log
###### Latest release
[v5.0.0-rc2](https://github.com/davideas/FlexibleAdapter/releases/tag/5.0.0-rc2) - 2017.05.31
[v5.0.0-rc2](https://github.com/davideas/FlexibleAdapter/releases/tag/5.0.0-rc2) - 2017.06.09

###### Old releases
[v5.0.0-rc1](https://github.com/davideas/FlexibleAdapter/releases/tag/5.0.0-rc1) - 2017.01.14<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,31 +287,31 @@ public FlexibleAdapter<T> addListener(@Nullable Object listener) {
Log.i("Setting listener class %s as:", getClassName(listener));
}
if (listener instanceof OnItemClickListener) {
if (DEBUG) Log.i("- OnItemClickListener");
Log.i("- OnItemClickListener");
mItemClickListener = (OnItemClickListener) listener;
}
if (listener instanceof OnItemLongClickListener) {
if (DEBUG) Log.i("- OnItemLongClickListener");
Log.i("- OnItemLongClickListener");
mItemLongClickListener = (OnItemLongClickListener) listener;
}
if (listener instanceof OnItemMoveListener) {
if (DEBUG) Log.i("- OnItemMoveListener");
Log.i("- OnItemMoveListener");
mItemMoveListener = (OnItemMoveListener) listener;
}
if (listener instanceof OnItemSwipeListener) {
if (DEBUG) Log.i("- OnItemSwipeListener");
Log.i("- OnItemSwipeListener");
mItemSwipeListener = (OnItemSwipeListener) listener;
}
if (listener instanceof OnDeleteCompleteListener) {
if (DEBUG) Log.i("- OnDeleteCompleteListener");
Log.i("- OnDeleteCompleteListener");
mDeleteCompleteListener = (OnDeleteCompleteListener) listener;
}
if (listener instanceof OnStickyHeaderChangeListener) {
if (DEBUG) Log.i("- OnStickyHeaderChangeListener");
Log.i("- OnStickyHeaderChangeListener");
mStickyHeaderChangeListener = (OnStickyHeaderChangeListener) listener;
}
if (listener instanceof OnUpdateListener) {
if (DEBUG) Log.i("- OnUpdateListener");
Log.i("- OnUpdateListener");
mUpdateListener = (OnUpdateListener) listener;
mUpdateListener.onUpdateEmptyView(getMainItemCount());
}
Expand Down

0 comments on commit 34691a5

Please sign in to comment.