Skip to content

Commit

Permalink
Fixed a spelling error for mSecondaryOpenListener; deprecated old setter
Browse files Browse the repository at this point in the history
  • Loading branch information
ipavl committed Aug 22, 2014
1 parent 4254fec commit f3fea11
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions library/src/com/jeremyfeinstein/slidingmenu/lib/SlidingMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.Handler;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.AttributeSet;
Expand Down Expand Up @@ -70,7 +69,7 @@ public class SlidingMenu extends RelativeLayout {

private OnOpenListener mOpenListener;

private OnOpenListener mSecondaryOpenListner;
private OnOpenListener mSecondaryOpenListener;

private OnCloseListener mCloseListener;

Expand Down Expand Up @@ -224,8 +223,8 @@ public void onPageSelected(int position) {
mOpenListener.onOpen();
} else if (position == POSITION_CLOSE && mCloseListener != null) {
mCloseListener.onClose();
} else if (position == POSITION_SECONDARY_OPEN && mSecondaryOpenListner != null ) {
mSecondaryOpenListner.onOpen();
} else if (position == POSITION_SECONDARY_OPEN && mSecondaryOpenListener != null ) {
mSecondaryOpenListener.onOpen();
}
}
});
Expand Down Expand Up @@ -883,15 +882,24 @@ public void setOnOpenListener(OnOpenListener listener) {
mOpenListener = listener;
}


/**
* Sets the OnOpenListner for secondary menu {@link OnOpenListener#onOpen() OnOpenListener.onOpen()} will be called when the secondary SlidingMenu is opened
* Sets the OnOpenListener for the secondary menu. {@link OnOpenListener#onOpen() OnOpenListener.onOpen()} will be called when the secondary SlidingMenu is opened
*
* @param listener the new OnOpenListener
*/

public void setSecondaryOnOpenListener(OnOpenListener listener) {
mSecondaryOpenListener = listener;
}

/**
* Sets the OnOpenListener for the secondary menu. {@link OnOpenListener#onOpen() OnOpenListener.onOpen()} will be called when the secondary SlidingMenu is opened
*
* @param listener the new OnOpenListener
* @deprecated Use {@link #setSecondaryOnOpenListener} instead.
*/
@Deprecated
public void setSecondaryOnOpenListner(OnOpenListener listener) {
mSecondaryOpenListner = listener;
mSecondaryOpenListener = listener;
}

/**
Expand Down

0 comments on commit f3fea11

Please sign in to comment.