Skip to content

Commit

Permalink
MinSdkVersion is set from 16 to 14.
Browse files Browse the repository at this point in the history
  • Loading branch information
iammert committed Feb 1, 2016
1 parent 08f65e5 commit 857d0ba
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repositories {
Module build.gradle
```java
dependencies {
compile 'com.github.iammert:MaterialIntroView:1.4'
compile 'com.github.iammert:MaterialIntroView:1.5'
}
```

Expand Down
2 changes: 1 addition & 1 deletion materialintro/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion "23.0.2"

defaultConfig {
minSdkVersion 16
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,20 @@ public void onGlobalLayout() {
setInfoLayout();
if(isDotViewEnabled)
setDotViewLayout();
getViewTreeObserver().removeOnGlobalLayoutListener(this);
removeOnGlobalLayoutListener(MaterialIntroView.this, this);
}
}
});

}

@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
public static void removeOnGlobalLayoutListener(View v, ViewTreeObserver.OnGlobalLayoutListener listener){
if (Build.VERSION.SDK_INT < 16) {
v.getViewTreeObserver().removeGlobalOnLayoutListener(listener);
} else {
v.getViewTreeObserver().removeOnGlobalLayoutListener(listener);
}
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {

defaultConfig {
applicationId "co.mobiwise.sample"
minSdkVersion 16
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
Expand All @@ -24,6 +24,6 @@ dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
//compile 'com.github.iammert:MaterialIntroView:a4b7947d19'
//compile 'com.github.iammert:MaterialIntroView:1.4'
compile project(':materialintro')
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
public class MainFragment extends Fragment implements View.OnClickListener{

private static final String INTRO_CARD = "material_intro";
private static final String INTRO_RESET_BUTTON = "material_reset";

private CardView cardView;
private Button button;
Expand Down

0 comments on commit 857d0ba

Please sign in to comment.