Skip to content

Commit 3201a93

Browse files
committed
use navigationBarColor to implement equals, hashcode() in BottomSheetDialogProperties
1 parent ad73c6c commit 3201a93

File tree

1 file changed

+3
-1
lines changed
  • bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose

1 file changed

+3
-1
lines changed

bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose/BottomSheetDialog.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ class BottomSheetDialogProperties constructor(
5151

5252
override fun equals(other: Any?): Boolean {
5353
if (this === other) return true
54-
if (other !is DialogProperties) return false
54+
if (other !is BottomSheetDialogProperties) return false
5555

5656
if (dismissOnBackPress != other.dismissOnBackPress) return false
5757
if (dismissOnClickOutside != other.dismissOnClickOutside) return false
5858
if (securePolicy != other.securePolicy) return false
59+
if (navigationBarColor != other.navigationBarColor) return false
5960

6061
return true
6162
}
@@ -64,6 +65,7 @@ class BottomSheetDialogProperties constructor(
6465
var result = dismissOnBackPress.hashCode()
6566
result = 31 * result + dismissOnClickOutside.hashCode()
6667
result = 31 * result + securePolicy.hashCode()
68+
result = 31 * result + navigationBarColor.hashCode()
6769
return result
6870
}
6971
}

0 commit comments

Comments
 (0)