Skip to content

Commit

Permalink
Fix - Save State (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahine authored Feb 26, 2018
1 parent 57fb368 commit 1beef47
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ android {

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
debug {
multiDexEnabled false
minifyEnabled true
shrinkResources true
zipAlignEnabled true
}
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion pageindicator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.dcendents.android-maven'

group = 'com.github.chahinem'
version = '0.2.4'
version = '0.2.5'

androidExtensions { experimental = true }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.chahinem.pageindicator
import android.os.Parcel
import android.os.Parcelable
import android.view.View.BaseSavedState
import org.jetbrains.annotations.NotNull

internal class SavedState : BaseSavedState {
var count: Int = 0
Expand All @@ -22,7 +23,8 @@ internal class SavedState : BaseSavedState {
}

companion object {
@Suppress("unused")
@JvmField
@NotNull
val CREATOR: Parcelable.Creator<SavedState> = object : Parcelable.Creator<SavedState> {
override fun createFromParcel(`in`: Parcel): SavedState {
return SavedState(`in`)
Expand Down

0 comments on commit 1beef47

Please sign in to comment.