From d30cb68f5a36a0f8955af3d5d04066e1cd255c66 Mon Sep 17 00:00:00 2001 From: umairayub79 Date: Wed, 3 Jul 2019 01:11:47 +0500 Subject: [PATCH] Added .setGIF(int) method that allows you to add GIFs in dialogs --- madialog/build.gradle | 2 +- madialog/src/main/java/umairayub/madialog/MaDialog.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/madialog/build.gradle b/madialog/build.gradle index 2360fab..13001e9 100644 --- a/madialog/build.gradle +++ b/madialog/build.gradle @@ -25,7 +25,7 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - compileOnly 'com.github.bumptech.glide:glide:4.2.0' + implementation 'com.github.bumptech.glide:glide:4.2.0' implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.cardview:cardview:1.0.0' diff --git a/madialog/src/main/java/umairayub/madialog/MaDialog.java b/madialog/src/main/java/umairayub/madialog/MaDialog.java index c1119ee..b0517f1 100644 --- a/madialog/src/main/java/umairayub/madialog/MaDialog.java +++ b/madialog/src/main/java/umairayub/madialog/MaDialog.java @@ -96,16 +96,16 @@ public Builder setMessageTextColor(int messageTextColor) { return this; } + public Builder setGif(int gif) { + this.gif = gif; + return this; + } public Builder setImage(int image) { this.image = image; return this; } - public Builder setGif(int gif) { - this.gif = gif; - return this; - } public Builder setTitleTextColor(int titleTextColor) { this.titleTextColor = titleTextColor;