From 4182d8fe3cc9746a0aa3f6fa0994c6ac1a183bd1 Mon Sep 17 00:00:00 2001 From: Michael Totschnig Date: Fri, 24 Mar 2017 11:36:45 +0100 Subject: [PATCH] fix test activities to allow build on jitpack --- .../stickylistheaders/sample/ExpandableListTestActivity.java | 5 +++++ .../emilsjolander/stickylistheaders/sample/TestActivity.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/sample/src/se/emilsjolander/stickylistheaders/sample/ExpandableListTestActivity.java b/sample/src/se/emilsjolander/stickylistheaders/sample/ExpandableListTestActivity.java index dd12d14e..34856b91 100644 --- a/sample/src/se/emilsjolander/stickylistheaders/sample/ExpandableListTestActivity.java +++ b/sample/src/se/emilsjolander/stickylistheaders/sample/ExpandableListTestActivity.java @@ -40,6 +40,11 @@ public void onHeaderClick(StickyListHeadersListView l, View header, int itemPosi mListView.collapse(headerId); } } + + @Override + public boolean onHeaderLongClick(StickyListHeadersListView l, View header, int itemPosition, long headerId, boolean currentlySticky) { + return false; + } }); } //animation executor diff --git a/sample/src/se/emilsjolander/stickylistheaders/sample/TestActivity.java b/sample/src/se/emilsjolander/stickylistheaders/sample/TestActivity.java index 0ac6041e..90cdb0fe 100644 --- a/sample/src/se/emilsjolander/stickylistheaders/sample/TestActivity.java +++ b/sample/src/se/emilsjolander/stickylistheaders/sample/TestActivity.java @@ -188,6 +188,11 @@ public void onHeaderClick(StickyListHeadersListView l, View header, int itemPosi Toast.makeText(this, "Header " + headerId + " currentlySticky ? " + currentlySticky, Toast.LENGTH_SHORT).show(); } + @Override + public boolean onHeaderLongClick(StickyListHeadersListView l, View header, int itemPosition, long headerId, boolean currentlySticky) { + return false; + } + @Override @TargetApi(Build.VERSION_CODES.HONEYCOMB) public void onStickyHeaderOffsetChanged(StickyListHeadersListView l, View header, int offset) {