Is there any way to achieve this dual-action preference item? Preferably via a third party library but via a simple implementation if necessary.
The 'wireless debugging' preference in Android's developer mode is a dual preference. It's the only one I've seen and I have no idea what this preference is called or if any Jetpack or other libraries expose such a thing.
Tapping the left part (1) opens a new screen, while tapping the right toggle (2) simply toggles the preference without changing screens. There's also a little divider between them to indicate that they have separate actions.
