diff --git a/library/build.gradle b/library/build.gradle index 4c71cb6..60545de 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -13,7 +13,7 @@ ext { siteUrl = 'https://github.com/Mordag/hitogo' gitUrl = 'https://github.com/Mordag/hitogo.git' - libraryVersion = '1.0.0' + libraryVersion = '1.0.1' developerId = 'mordag' developerName = 'Alexander Eggers' diff --git a/library/src/main/java/org/hitogo/alert/popup/PopupAlertParams.java b/library/src/main/java/org/hitogo/alert/popup/PopupAlertParams.java index 5fef1e4..5c334aa 100644 --- a/library/src/main/java/org/hitogo/alert/popup/PopupAlertParams.java +++ b/library/src/main/java/org/hitogo/alert/popup/PopupAlertParams.java @@ -1,5 +1,6 @@ package org.hitogo.alert.popup; +import android.os.Build; import android.transition.Transition; import android.view.View; @@ -52,8 +53,11 @@ protected void onCreateParams(HitogoParamsHolder holder) { dismissByLayoutClick = holder.getBoolean(PopupAlertParamsKeys.DISMISS_BY_LAYOUT_CLICK_KEY); fullScreen = holder.getBoolean(PopupAlertParamsKeys.FULLSCREEN_KEY); - enterTransition = holder.getCustomObject(PopupAlertParamsKeys.ENTER_TRANSITION_KEY); - exitTransition = holder.getCustomObject(PopupAlertParamsKeys.EXIT_TRANSITION_KEY); + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { + enterTransition = holder.getCustomObject(PopupAlertParamsKeys.ENTER_TRANSITION_KEY); + exitTransition = holder.getCustomObject(PopupAlertParamsKeys.EXIT_TRANSITION_KEY); + } + onTouchListener = holder.getCustomObject(PopupAlertParamsKeys.TOUCH_LISTENER_KEY); } diff --git a/testing/build.gradle b/testing/build.gradle index 51adce9..aa377ec 100644 --- a/testing/build.gradle +++ b/testing/build.gradle @@ -13,7 +13,7 @@ ext { siteUrl = 'https://github.com/Mordag/hitogo' gitUrl = 'https://github.com/Mordag/hitogo.git' - libraryVersion = '1.0.0' + libraryVersion = '1.0.1' developerId = 'mordag' developerName = 'Alexander Eggers' @@ -51,7 +51,7 @@ android.libraryVariants.all { variant -> dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - //implementation 'org.hitogo:hitogo-core:1.0.0' + //implementation 'org.hitogo:hitogo-core:1.0.1' implementation project(path: ':hitogo-core') implementation "com.android.support:support-annotations:27.0.2"