Skip to content

Commit

Permalink
Merge pull request #3 from kareemradwan/save-state-feature
Browse files Browse the repository at this point in the history
 fix issue #2 currentStep value when device rotates
  • Loading branch information
kareemradwan authored Jul 3, 2020
2 parents d6e3883 + ff0614d commit 34cdf32
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class SteeperView(context: Context, private val attrs: AttributeSet?) :
* We need Remove all View in `containerSteeper`
* because when restore State `onRestoreInstanceState` to duplicate Views
*/
currentStep = 0
containerSteeper.removeAllViews()
// Iterate in List of IStep and Build View for Each Model From Adapter
mAdapter.models.forEach {
Expand Down

0 comments on commit 34cdf32

Please sign in to comment.