From 5dd430f5819a11a8dff8c175ca26cef8b4c7c48e Mon Sep 17 00:00:00 2001
From: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Date: Wed, 11 Dec 2013 15:03:39 -0500
Subject: [PATCH] change constructor of WrappedListView

---
 .../views/stickylistheaders/StickyListHeadersListView.java   | 2 +-
 .../sflphone/views/stickylistheaders/WrapperViewList.java    | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/org/sflphone/views/stickylistheaders/StickyListHeadersListView.java b/src/org/sflphone/views/stickylistheaders/StickyListHeadersListView.java
index 57fc0cecc..0cce2c2c4 100644
--- a/src/org/sflphone/views/stickylistheaders/StickyListHeadersListView.java
+++ b/src/org/sflphone/views/stickylistheaders/StickyListHeadersListView.java
@@ -83,7 +83,7 @@ public class StickyListHeadersListView extends FrameLayout {
 		super(context, attrs, defStyle);
 
 		// Initialize the list
-		mList = new WrapperViewList(context);
+		mList = new WrapperViewList(context, attrs);
 		mDivider = mList.getDivider();
 		mDividerHeight = mList.getDividerHeight();
 
diff --git a/src/org/sflphone/views/stickylistheaders/WrapperViewList.java b/src/org/sflphone/views/stickylistheaders/WrapperViewList.java
index 2f3b0d043..0ea0bb4d8 100644
--- a/src/org/sflphone/views/stickylistheaders/WrapperViewList.java
+++ b/src/org/sflphone/views/stickylistheaders/WrapperViewList.java
@@ -8,6 +8,7 @@ import android.content.Context;
 import android.graphics.Canvas;
 import android.graphics.Rect;
 import android.os.Build;
+import android.util.AttributeSet;
 import android.view.View;
 import android.widget.AbsListView;
 import android.widget.ListView;
@@ -25,8 +26,8 @@ class WrapperViewList extends ListView {
 	private Field mSelectorPositionField;
 	private boolean mClippingToPadding = true;
 
-	public WrapperViewList(Context context) {
-		super(context);
+	public WrapperViewList(Context context, AttributeSet attrs) {
+		super(context, attrs);
 
 		// Use reflection to be able to change the size/position of the list
 		// selector so it does not come under/over the header
-- 
GitLab