Skip to content

Commit a4b7947

Browse files
committed
Out of memory exception is fixed by changing visibility INVISIBLE to GONE when view is dismissed.
1 parent 448d6e4 commit a4b7947

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ repositories {
3434
Module build.gradle
3535
```java
3636
dependencies {
37-
compile 'com.github.iammert:MaterialIntroView:1.2'
37+
compile 'com.github.iammert:MaterialIntroView:1.3'
3838
}
3939
```
4040

materialintro/src/main/java/co/mobiwise/materialintro/view/MaterialIntroView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ private void dismiss() {
398398
AnimationFactory.animateFadeOut(this, fadeAnimationDuration, new AnimationListener.OnAnimationEndListener() {
399399
@Override
400400
public void onAnimationEnd() {
401-
setVisibility(INVISIBLE);
401+
setVisibility(GONE);
402402

403403
if (materialIntroListener != null)
404404
materialIntroListener.onUserClicked(materialIntroViewId);

sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ dependencies {
2424
testCompile 'junit:junit:4.12'
2525
compile 'com.android.support:appcompat-v7:23.1.1'
2626
compile 'com.android.support:design:23.1.1'
27-
//compile 'com.github.iammert:MaterialIntroView:1.2'
27+
//compile 'com.github.iammert:MaterialIntroView:1.3'
2828
compile project(':materialintro')
2929
}

0 commit comments

Comments
 (0)