Skip to content

Commit d9948f8

Browse files
authored
Merge pull request #144 from smarteist/dev
Dev
2 parents ae6c20b + 9bb9182 commit d9948f8

File tree

6 files changed

+20
-12
lines changed

6 files changed

+20
-12
lines changed

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/libraries
5+
/.idea/modules.xml
6+
/.idea/workspace.xml
7+
.DS_Store
8+
/build
9+
/captures
10+
.externalNativeBuild

app/src/main/java/com/smarteist/imageslider/MainActivity.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import android.graphics.Color;
44
import android.os.Bundle;
5+
import android.util.Log;
56
import android.view.View;
67

78
import androidx.appcompat.app.AppCompatActivity;
@@ -40,10 +41,11 @@ protected void onCreate(Bundle savedInstanceState) {
4041
sliderView.setAutoCycle(true);
4142
sliderView.startAutoCycle();
4243

44+
4345
sliderView.setOnIndicatorClickListener(new DrawController.ClickListener() {
4446
@Override
4547
public void onIndicatorClicked(int position) {
46-
sliderView.setCurrentPagePosition(position);
48+
Log.i("GGG", "onIndicatorClicked: " + sliderView.getCurrentPagePosition());
4749
}
4850
});
4951

autoimageslider/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ext {
1515
siteUrl = 'https://github.com/smarteist'
1616
gitUrl = 'https://github.com/smarteist/android-image-slider.git'
1717

18-
libraryVersion = '1.3.8'
18+
libraryVersion = '1.3.9'
1919
organization = 'smarteistbintray' // if you push to organization's repository.
2020
developerId = 'smarteist'
2121
developerName = 'Ali Hosseini'
@@ -34,7 +34,7 @@ android {
3434
minSdkVersion 15
3535
targetSdkVersion 29
3636
versionCode 5
37-
versionName "1.3.8"
37+
versionName "1.3.9"
3838

3939
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4040

@@ -57,7 +57,7 @@ configurations {
5757
dependencies {
5858
implementation fileTree(include: ['*.jar'], dir: 'libs')
5959
//noinspection GradleCompatible
60-
implementation 'androidx.appcompat:appcompat:1.0.2'
60+
implementation 'androidx.appcompat:appcompat:1.1.0'
6161
testImplementation 'junit:junit:4.12'
6262
androidTestImplementation 'androidx.test:runner:1.2.0'
6363
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

autoimageslider/src/main/java/com/smarteist/autoimageslider/SliderView.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,7 @@ public void setCurrentPagePosition(int position) {
436436
public int getCurrentPagePosition() {
437437

438438
if (getSliderAdapter() != null) {
439-
if (mIsInfiniteAdapter) {
440-
return getSliderPager().getCurrentItem() % mPagerAdapter.getCount();
441-
} else {
442-
return getSliderPager().getCurrentItem();
443-
}
439+
return getSliderPager().getCurrentItem() ;
444440
} else {
445441
throw new NullPointerException("Adapter not set");
446442
}

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
jcenter()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.4.1'
11+
classpath 'com.android.tools.build:gradle:4.0.0'
1212
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
1313
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
1414

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Tue May 28 00:46:48 IRDT 2019
1+
#Thu Jun 11 18:51:38 IRDT 2020
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

0 commit comments

Comments
 (0)