Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
TangKe committed Jun 8, 2016
1 parent a2dda41 commit a8a7b5f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "me.tangke.slidemenusample"
minSdkVersion 8
targetSdkVersion 23
versionCode 10
versionName "1.2.0"
versionCode 11
versionName "1.2.1"
}
buildTypes {
release {
Expand Down
2 changes: 1 addition & 1 deletion slidemenu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ext {
siteUrl = 'http://github.com/TangKe/SlideMenu'
gitUrl = 'http://github.com/TangKe/SlideMenu.git'

libraryVersion = '1.2.0'
libraryVersion = '1.2.1'

developerId = 'tangke'
developerName = 'Tang Ke'
Expand Down
11 changes: 3 additions & 8 deletions slidemenu/src/main/java/me/tangke/slidemenu/SlideMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class SlideMenu extends ViewGroup {
private final static int POSITION_MIDDLE = 0;
private final static int POSITION_RIGHT = 1;
private int mCurrentContentPosition;
private int mCurrentState;
private int mCurrentState = STATE_CLOSE;

private View mContent;
private View mPrimaryMenu;
Expand Down Expand Up @@ -868,13 +868,8 @@ private void setCurrentOffset(int currentOffset) {
final int slideDirectionFlag = mSlideDirectionFlag;
final int currentContentOffset = mCurrentContentOffset = Math
.min((slideDirectionFlag & FLAG_DIRECTION_RIGHT) == FLAG_DIRECTION_RIGHT ?
mContentBoundsRight
: 0,
Math.max(
currentOffset,
(slideDirectionFlag & FLAG_DIRECTION_LEFT) == FLAG_DIRECTION_LEFT
? mContentBoundsLeft
: 0));
mContentBoundsRight : 0, Math.max(currentOffset, (slideDirectionFlag &
FLAG_DIRECTION_LEFT) == FLAG_DIRECTION_LEFT ? mContentBoundsLeft : 0));
if (null != mSlideStateChangeListener) {
float slideOffsetPercent = 0;
if (0 < currentContentOffset) {
Expand Down

0 comments on commit a8a7b5f

Please sign in to comment.