Skip to content

Commit

Permalink
Merge pull request #14 from Semper-Viventem/develop
Browse files Browse the repository at this point in the history
Update to support 28
  • Loading branch information
Semper-Viventem authored Aug 17, 2018
2 parents ce889a7 + 292833b commit fc65a8b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions backdrop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ subprojects {

android {

compileSdkVersion 27
compileSdkVersion 28

defaultConfig {
minSdkVersion 21
targetSdkVersion 27
targetSdkVersion 28
}

buildTypes {
Expand All @@ -57,8 +57,8 @@ android {
}

ext {
supportVersion = '27.1.1'
kotlin_version = '1.2.41'
supportVersion = '28.0.0-rc01'
kotlin_version = '1.2.50'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ class BackdropBehavior : CoordinatorLayout.Behavior<View> {

constructor(context: Context, attrs: AttributeSet) : super(context, attrs)

override fun onSaveInstanceState(parent: CoordinatorLayout?, child: View?): Parcelable {
override fun onSaveInstanceState(parent: CoordinatorLayout, child: View): Parcelable {
return Bundle().apply {
putSerializable(ARG_DROP_STATE, dropState)
}
}

override fun onRestoreInstanceState(parent: CoordinatorLayout?, child: View?, state: Parcelable?) {
override fun onRestoreInstanceState(parent: CoordinatorLayout, child: View, state: Parcelable) {
super.onRestoreInstanceState(parent, child, state)

dropState = (state as? Bundle)?.getSerializable(ARG_DROP_STATE) as? DropState ?: DEFAULT_DROP_STATE
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'kotlin-kapt'

android {

compileSdkVersion 'android-P'
compileSdkVersion 28

defaultConfig {
applicationId "ru.semper_viventem.backdropview"
Expand Down

0 comments on commit fc65a8b

Please sign in to comment.