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
val className ="android.view.WindowManager\$LayoutParams"
val layoutParamsClass =Class.forName(className)
val privateFlags:Field= layoutParamsClass.getField("privateFlags")
val noAnim:Field= layoutParamsClass.getField("PRIVATE_FLAG_NO_MOVE_ANIMATION")
var privateFlagsValue:Int= privateFlags.getInt(this)
val noAnimFlag:Int= noAnim.getInt(this)
privateFlagsValue = privateFlagsValue or noAnimFlag
privateFlags.setInt(this, privateFlagsValue)
I am only asking because I am concerned about what kind of risks you think one would be opting into while using this. And what are the chances that these private APIs will change in the future in a backwards incompatible way making this not work as expected in future Android API levels. If that were to happen, can the library update the code accordingly to keep all of this working as expected?
The text was updated successfully, but these errors were encountered:
StylianosGakis
changed the title
Question about the usage of interal APIs in the bottom sheet implementation
Question about the usage of internal APIs in the bottom sheet implementation
Jun 28, 2024
This is not a feature request nor a bug report, I was mostly curious about the lines I can see inside here in particular
FlexibleBottomSheet/flexible-core/src/androidMain/kotlin/com/skydoves/flexible/core/FlexibleBottomSheetPopup.kt
Lines 182 to 191 in 688b8f7
I am only asking because I am concerned about what kind of risks you think one would be opting into while using this. And what are the chances that these private APIs will change in the future in a backwards incompatible way making this not work as expected in future Android API levels. If that were to happen, can the library update the code accordingly to keep all of this working as expected?
The text was updated successfully, but these errors were encountered: