You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bottomsheetdialog-compose/src/main/kotlin/com/holix/android/bottomsheetdialog/compose/BottomSheetDialog.kt
if (other !isBottomSheetDialogProperties) returnfalse
@@ -59,7 +73,7 @@ class BottomSheetDialogProperties constructor(
59
73
if (dismissOnClickOutside != other.dismissOnClickOutside) returnfalse
60
74
if (dismissWithAnimation != other.dismissWithAnimation) returnfalse
61
75
if (securePolicy != other.securePolicy) returnfalse
62
-
if (navigationBarColor!= other.navigationBarColor) returnfalse
76
+
if (navigationBarProperties!= other.navigationBarProperties) returnfalse
63
77
64
78
returntrue
65
79
}
@@ -69,11 +83,60 @@ class BottomSheetDialogProperties constructor(
69
83
result =31* result + dismissOnClickOutside.hashCode()
70
84
result =31* result + dismissWithAnimation.hashCode()
71
85
result =31* result + securePolicy.hashCode()
72
-
result =31* result +navigationBarColor.hashCode()
86
+
result =31* result +navigationBarProperties.hashCode()
73
87
return result
74
88
}
75
89
}
76
90
91
+
/**
92
+
* Properties used to customize navigationBar.
93
+
94
+
* @param color The **desired** [Color] to set. This may require modification if running on an
95
+
* API level that only supports white navigation bar icons. Additionally this will be ignored
96
+
* and [Color.Transparent] will be used on API 29+ where gesture navigation is preferred or the
97
+
* system UI automatically applies background protection in other navigation modes.
98
+
* @param darkIcons Whether dark navigation bar icons would be preferable.
99
+
* @param navigationBarContrastEnforced Whether the system should ensure that the navigation
100
+
* bar has enough contrast when a fully transparent background is requested. Only supported on
101
+
* API 29+.
102
+
* @param transformColorForLightContent A lambda which will be invoked to transform [color] if
103
+
* dark icons were requested but are not available. Defaults to applying a black scrim.
104
+
*
105
+
* Inspired by [Accompanist SystemUiController](https://github.com/google/accompanist/blob/main/systemuicontroller/src/main/java/com/google/accompanist/systemuicontroller/SystemUiController.kt)
0 commit comments