Skip to content

Commit

Permalink
Renamed mIsCanceleable Variable
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiderQadir committed Jul 10, 2023
1 parent 29a96fd commit 9899616
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
}
}

Expand Down
6 changes: 3 additions & 3 deletions RatingDialog/src/main/java/com/hq/ratingdialog/RatingModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ 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(
mTitle: String,
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
}
}

0 comments on commit 9899616

Please sign in to comment.