Skip to content

Commit

Permalink
Update 1.2.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
GIGAMOLE committed Aug 13, 2016
1 parent f196bb6 commit 255c8cf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies {
Or Gradle Maven Central:

```groovy
compile 'com.github.devlight.navigationtabbar:navigationtabbar:1.2.3'
compile 'com.github.devlight.navigationtabbar:navigationtabbar:1.2.5'
```

Or Maven:
Expand All @@ -48,7 +48,7 @@ Or Maven:
<dependency>
<groupId>com.github.devlight.navigationtabbar</groupId>
<artifactId>navigationtabbar</artifactId>
<version>1.2.3</version>
<version>1.2.5</version>
<type>aar</type>
</dependency>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public Object instantiateItem(final ViewGroup container, final int position) {
navigationTabBar.setOnTabBarSelectedIndexListener(new NavigationTabBar.OnTabBarSelectedIndexListener() {
@Override
public void onStartTabSelected(final NavigationTabBar.Model model, final int index) {

}

@Override
Expand Down
4 changes: 2 additions & 2 deletions navigationtabbar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: "com.jfrog.bintray"
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'maven'

version = "1.2.4"
version = "1.2.5"

android {
compileSdkVersion 23
Expand All @@ -29,7 +29,7 @@ android {
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.2.4"
versionName "1.2.5"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -848,11 +848,18 @@ public void setModelIndex(final int modelIndex, final boolean isForce) {
// You can use force param or call this method in some post()
if (force) {
updateIndicatorPosition(MAX_FRACTION);

if (mOnTabBarSelectedIndexListener != null)
mOnTabBarSelectedIndexListener.onStartTabSelected(mModels.get(mIndex), mIndex);

// Force onPageScrolled listener and refresh VP
if (mIsViewPagerMode) {
if (!mViewPager.isFakeDragging()) mViewPager.beginFakeDrag();
if (mViewPager.isFakeDragging()) mViewPager.fakeDragBy(0.0F);
if (mViewPager.isFakeDragging()) mViewPager.endFakeDrag();
} else {
if (mOnTabBarSelectedIndexListener != null)
mOnTabBarSelectedIndexListener.onEndTabSelected(mModels.get(mIndex), mIndex);
}
} else mAnimator.start();
}
Expand Down

0 comments on commit 255c8cf

Please sign in to comment.