From c2dc7064f0bee6d56cebe67993bbd48f66645e78 Mon Sep 17 00:00:00 2001 From: Emre KOTUN Date: Thu, 28 Oct 2021 17:37:34 +0300 Subject: [PATCH] upgrade --- app/build.gradle | 2 +- app/src/main/java/com/emrekotun/cpmtoast/MainActivity.kt | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0355c9a..0894859 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -41,5 +41,5 @@ dependencies { androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' - implementation 'com.github.emrekotun:CpmToast:1.0.0' + implementation 'com.github.emrekotun:CpmToast:1.0.1' } \ No newline at end of file diff --git a/app/src/main/java/com/emrekotun/cpmtoast/MainActivity.kt b/app/src/main/java/com/emrekotun/cpmtoast/MainActivity.kt index 46e537a..d3cf154 100644 --- a/app/src/main/java/com/emrekotun/cpmtoast/MainActivity.kt +++ b/app/src/main/java/com/emrekotun/cpmtoast/MainActivity.kt @@ -2,6 +2,7 @@ package com.emrekotun.cpmtoast import androidx.appcompat.app.AppCompatActivity import android.os.Bundle +import com.emrekotun.toast.CpmToast class MainActivity : AppCompatActivity() { @@ -9,12 +10,12 @@ class MainActivity : AppCompatActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) - /* CpmToast.createColorToast( + CpmToast.createColorToast( this, - message, - CpmToast.TOAST_ERROR, + "Success !", + CpmToast.TOAST_SUCCESS, CpmToast.GRAVITY_TOP, CpmToast.LONG_DURATION - )*/ + ) } } \ No newline at end of file