Skip to content

Commit

Permalink
remove unused viewClass in PTR constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Nov 12, 2014
1 parent cc60d09 commit 8191caf
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,15 @@ public class PullToRefreshHelper implements OnRefreshListener {
private RefreshListener mRefreshListener;
private WeakReference<Activity> mActivityRef;

public PullToRefreshHelper(Activity activity, SwipeRefreshLayout swipeRefreshLayout, RefreshListener listener) {
init(activity, swipeRefreshLayout, listener, null);
public interface RefreshListener {
public void onRefreshStarted();
}

public PullToRefreshHelper(Activity activity, SwipeRefreshLayout swipeRefreshLayout, RefreshListener listener,
java.lang.Class<?> viewClass) {
init(activity, swipeRefreshLayout, listener, viewClass);
public PullToRefreshHelper(Activity activity, SwipeRefreshLayout swipeRefreshLayout, RefreshListener listener) {
init(activity, swipeRefreshLayout, listener);
}

public void init(Activity activity, SwipeRefreshLayout swipeRefreshLayout, RefreshListener listener,
java.lang.Class<?> viewClass) {
public void init(Activity activity, SwipeRefreshLayout swipeRefreshLayout, RefreshListener listener) {
mActivityRef = new WeakReference<Activity>(activity);
mRefreshListener = listener;
mSwipeRefreshLayout = swipeRefreshLayout;
Expand All @@ -67,10 +65,6 @@ public void onRefresh() {
mRefreshListener.onRefreshStarted();
}

public interface RefreshListener {
public void onRefreshStarted();
}

public void setEnabled(boolean enabled) {
mSwipeRefreshLayout.setEnabled(enabled);
}
Expand Down

0 comments on commit 8191caf

Please sign in to comment.