Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Version | Changes
--- | ---
v.1.0.8 | Fixed issue with NullPointerException with addOnTutorialPageChangeListener() called before onCreate()
v.1.0.7 | <ul><li>Fixed import for SupportTutorialFragment</li><li>Updated versions of dependencies</li></ul>
v.1.0.6 | <ul><li>Added new simple way of creation of tutorial</li><li>Fixed memory leaks issues</li><li>Updated default sizes of page indicator's elements</li><li>Updated default colors of page indicator</li><li>Updated versions of dependencies</li><li>Removed unused or unnecessary methods</li></ul>
v.1.0.5 | <ul><li>Fixed NullPointerException & IndexOutOfBoundsException inside ViewPager.</li><li>Added SlidingTutorialViewPager</li></ul>
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.0.7
VERSION_CODE=17
VERSION_NAME=1.0.8
VERSION_CODE=18
GROUP=com.cleveroad

POM_DESCRIPTION=Sliding tutorial is simple library that help other developers easy create great tutotial
Expand Down
4 changes: 2 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 25
versionCode 17
versionName "1.0.7"
versionCode 18
versionName "1.0.8"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ public int getSeparatorResId() {
}
};



/**
* Create new {@link TutorialOptions.Builder} instance.
*
Expand All @@ -123,11 +125,14 @@ public static TutorialFragment newInstance(@NonNull TutorialOptions tutorialOpti
return new TutorialFragmentImpl(tutorialOptions);
}

public TutorialFragment() {
mTutorial = new TutorialImpl<>(mInternalFragment);
}

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRetainInstance(true);
mTutorial = new TutorialImpl<>(mInternalFragment);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,14 @@ public static TutorialSupportFragment newInstance(@NonNull TutorialOptions tutor
return new TutorialSupportFragmentImpl(tutorialOptions);
}

public TutorialSupportFragment() {
mTutorial = new TutorialImpl<>(mInternalFragment);
}

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setRetainInstance(true);
mTutorial = new TutorialImpl<>(mInternalFragment);
}

@Override
Expand Down