diff --git a/pump/combov2/src/main/kotlin/info/nightscout/androidaps/plugins/pump/combov2/activities/ComboV2PairingActivity.kt b/pump/combov2/src/main/kotlin/info/nightscout/androidaps/plugins/pump/combov2/activities/ComboV2PairingActivity.kt index 73fa6ae5da..b221cbfdea 100644 --- a/pump/combov2/src/main/kotlin/info/nightscout/androidaps/plugins/pump/combov2/activities/ComboV2PairingActivity.kt +++ b/pump/combov2/src/main/kotlin/info/nightscout/androidaps/plugins/pump/combov2/activities/ComboV2PairingActivity.kt @@ -217,6 +217,7 @@ class ComboV2PairingActivity : NoSplashAppCompatActivity() { override fun onBackPressed() { aapsLogger.info(LTag.PUMP, "User pressed the back button; cancelling any ongoing pairing") combov2Plugin.cancelPairing() + @Suppress("DEPRECATION") super.onBackPressed() }