This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegularPostView : BasePostView { | |
... | |
internal class SavedState : AbsSavedState { | |
... | |
companion object { | |
@JvmField | |
val CREATOR: Parcelable.ClassLoaderCreator<SavedState> = object : Parcelable.ClassLoaderCreator<SavedState> { | |
override fun createFromParcel(source: Parcel, loader: ClassLoader): SavedState { | |
return SavedState(source, loader) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class BasePostView : FrameLayout { | |
... | |
internal class SavedState : AbsSavedState { | |
... | |
companion object { | |
@JvmField | |
val CREATOR: Parcelable.ClassLoaderCreator<SavedState> = object : Parcelable.ClassLoaderCreator<SavedState> { | |
override fun createFromParcel(source: Parcel, loader: ClassLoader): SavedState { | |
return SavedState(source, loader) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class BasePostView : FrameLayout { | |
... | |
internal class SavedState : AbsSavedState { | |
var title: String? = null | |
var description: String? = null | |
constructor(superState: Parcelable) : super(superState) | |
constructor(source: Parcel, loader: ClassLoader?) : super(source, loader) { | |
title = source.readString() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegularPostView : BasePostView { | |
... | |
internal class SavedState : AbsSavedState { | |
var dividerColorResId: Int = 0 | |
constructor(superState: Parcelable) : super(superState) | |
constructor(source: Parcel, loader: ClassLoader?) : super(source, loader) { | |
dividerColorResId = source.readInt() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegularPostView : BasePostView { | |
... | |
internal class SavedState : BaseSavedState { | |
... | |
constructor(source: Parcel) : super(source) { | |
dividerColorResId = source.readInt() | |
} | |
... | |
companion object { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegularPostView : BasePostView { | |
private var dividerColorResId: Int = 0 | |
... | |
override fun onSaveInstanceState(): Parcelable? { | |
val superState: Parcelable? = super.onSaveInstanceState() | |
superState?.let { | |
val state = SavedState(superState) | |
state.dividerColorResId = this.dividerColorResId | |
return state | |
} ?: run { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class BasePostView : FrameLayout { | |
private var title: String? = null | |
private var description: String? = null | |
... | |
override fun onSaveInstanceState(): Parcelable? { | |
val superState: Parcelable? = super.onSaveInstanceState() | |
superState?.let { | |
val state = SavedState(superState) | |
state.title = this.title | |
state.description = this.description |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PostView : FrameLayout { | |
private var title: String? = null | |
private var description: String? = null | |
private var dividerColorResId: Int = 0 | |
... | |
override fun onSaveInstanceState(): Parcelable? { | |
val superState: Parcelable? = super.onSaveInstanceState() | |
superState?.let { | |
val state = SavedState(superState) | |
state.title = this.title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PostView : FrameLayout { | |
private var title: String? = null | |
private var description: String? = null | |
private var dividerColorResId: Int = 0 | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
... | |
<color name="statusBarColor">#177780</color> | |
<color name="navigationBarColor">#177780</color> | |
<color name="splashScreenBackgroundColor">#177780</color> | |
</resources> |