From 9899616bdc2a3c26ba4e99f18cd545400b6edc37 Mon Sep 17 00:00:00 2001 From: Haider Qadir <48542399+HaiderQadir@users.noreply.github.com> Date: Mon, 10 Jul 2023 11:24:20 +0500 Subject: [PATCH] Renamed mIsCanceleable Variable --- .../src/main/java/com/hq/ratingdialog/RatingDialog.kt | 4 ++-- .../src/main/java/com/hq/ratingdialog/RatingModel.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RatingDialog/src/main/java/com/hq/ratingdialog/RatingDialog.kt b/RatingDialog/src/main/java/com/hq/ratingdialog/RatingDialog.kt index e6afa9a..aa9c904 100644 --- a/RatingDialog/src/main/java/com/hq/ratingdialog/RatingDialog.kt +++ b/RatingDialog/src/main/java/com/hq/ratingdialog/RatingDialog.kt @@ -31,7 +31,7 @@ class RatingDialog(ratingModel: RatingModel) : DialogFragment() { val THRESHOLD = ratingModel.mThreshold val mTitle = ratingModel.mTitle val mDetail = ratingModel.mDetail - val mIsCancelable = ratingModel.mIsCancelable + val mDialogCancelable = ratingModel.mDialogCancelable override fun onCreateView( inflater: LayoutInflater, @@ -46,7 +46,7 @@ class RatingDialog(ratingModel: RatingModel) : DialogFragment() { val dialog = dialog if (dialog != null) { dialog!!.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) - dialog!!.setCancelable(mIsCancelable) + dialog!!.setCancelable(mDialogCancelable) } } diff --git a/RatingDialog/src/main/java/com/hq/ratingdialog/RatingModel.kt b/RatingDialog/src/main/java/com/hq/ratingdialog/RatingModel.kt index 15d4c56..98c2631 100644 --- a/RatingDialog/src/main/java/com/hq/ratingdialog/RatingModel.kt +++ b/RatingDialog/src/main/java/com/hq/ratingdialog/RatingModel.kt @@ -6,7 +6,7 @@ class RatingModel { lateinit var mDetail: String lateinit var mComment: String lateinit var mSubmit: String - var mIsCancelable: Boolean = false + var mDialogCancelable: Boolean = false var mThreshold: Int = 0 constructor( @@ -14,14 +14,14 @@ class RatingModel { mDetail: String, mComment: String, mSubmit: String, - mIsCancelable: Boolean, + mDialogCancelable: Boolean, mThreshold: Int ) { this.mTitle = mTitle this.mDetail = mDetail this.mComment = mComment this.mSubmit = mSubmit - this.mIsCancelable = mIsCancelable + this.mDialogCancelable = mDialogCancelable this.mThreshold = mThreshold } } \ No newline at end of file