I’m using <TimePickerDialog> from `<http://android...
# compose
m
I’m using TimePickerDialog from
<http://android.app|android.app>
with Compose. My question is: should there be some specific considerations to use it because it’s not a compose component? Currently, I’m doing something like so:
Copy code
val context = LocalContext.current
        Button(onClick = {
            TimePickerDialog(
                context,
                R.style.themeOnverlay_timePicker,
                { _, selectedHour: Int, selectedMinute: Int ->
                    // some action
                }, 11, 11, true
            ).show()
        }) {
            Text("Click to open picker")
        }