Skip to content

Capture back press in Settings and About

Thore Goebel requested to merge thgoebel/kdeconnect-android:back-button into master

The Settings and About fragments are arguably one logical layer below the PairingFragment (which feels like the "main screen"). Capture the back press and return to the PairingFragment.

Fixes https://bugs.kde.org/show_bug.cgi?id=442716.

Notes:

  • In a DeviceFragment back-pressing continues to close the app, as before. Judging from the fact that the app persists the last selected device to the shared prefs, I assume this is a intentional.
  • I also thought about storing from where the Settings/About were opened (e.g. from a specific DeviceFragment) and returning there. However this would be a much larger change with arguable user benefit. After all, from the PairingFragment it's just a single click to your device.

Merge request reports