Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Commit

Permalink
Fixed NoClassDefFoundError exeception when using PopupAlerts with dev…
Browse files Browse the repository at this point in the history
…ices lower than 19 (KitKat). Fixes #3.
  • Loading branch information
AlexanderEggers committed May 10, 2018
1 parent 53a3d3d commit 7b656ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.hitogo.alert.popup;

import android.os.Build;
import android.transition.Transition;
import android.view.View;

Expand Down Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 7b656ce

Please sign in to comment.