Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MarsadMaqsood committed Nov 27, 2022
1 parent 413bcae commit 8b0e871
Showing 1 changed file with 2 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.marsad.stylishdialogs.example
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.marsad.stylishdialogs.StylishAlertDialog
Expand All @@ -14,40 +13,14 @@ class ExampleActivity : AppCompatActivity() {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

// Test
var i = 0;
val firebaseUser: String = "asca"
findViewById<View>(R.id.simpleMsgDialog)
.setOnClickListener {
val pDialog = StylishAlertDialog(this, StylishAlertDialog.NORMAL)
pDialog.setTitleText("The chat will be deleted also, are you sure?")
.setCancellable(true)
.setConfirmButton("okay") {
it.dismissWithAnimation()
// println("user id is: $firebaseUser")
Log.d("User ID", firebaseUser)
i++

}
.setCancelButton("Cancel") {
it.dismissWithAnimation()
}

StylishAlertDialog(this, StylishAlertDialog.NORMAL)
.setContentText("Hey, You try me")
.show()

Handler().postDelayed({
Log.e("Num == ", i.toString())
}, 5000)
}

//

// findViewById<View>(R.id.simpleMsgDialog)
// .setOnClickListener {
// StylishAlertDialog(this, StylishAlertDialog.NORMAL)
// .setContentText("Hey, You try me")
// .show()
// }
findViewById<View>(R.id.titleWTextDialog)
.setOnClickListener {
StylishAlertDialog(this, StylishAlertDialog.NORMAL)
Expand Down

0 comments on commit 8b0e871

Please sign in to comment.