File tree Expand file tree Collapse file tree 6 files changed +20
-12
lines changed
app/src/main/java/com/smarteist/imageslider
src/main/java/com/smarteist/autoimageslider Expand file tree Collapse file tree 6 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 22
33import android .graphics .Color ;
44import android .os .Bundle ;
5+ import android .util .Log ;
56import android .view .View ;
67
78import 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
Original file line number Diff line number Diff line change 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 {
5757dependencies {
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'
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- # Tue May 28 00:46:48 IRDT 2019
1+ # Thu Jun 11 18:51:38 IRDT 2020
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =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
You can’t perform that action at this time.
0 commit comments