From f65c7bb5176f20656261b79aaa435eb19f79d859 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 19 Aug 2023 12:13:52 +0200 Subject: [PATCH] ErosPodManagementActivity: toolbar --- .../dash/ui/DashPodManagementActivity.kt | 2 +- .../omnipod-eros/src/main/AndroidManifest.xml | 2 +- .../eros/ui/ErosPodManagementActivity.kt | 22 +++++++++++++++++++ .../layout/omnipod_eros_pod_management.xml | 12 ---------- 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/pump/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/DashPodManagementActivity.kt b/pump/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/DashPodManagementActivity.kt index a9bc7d7e4d..42786892c5 100644 --- a/pump/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/DashPodManagementActivity.kt +++ b/pump/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/ui/DashPodManagementActivity.kt @@ -52,7 +52,7 @@ class DashPodManagementActivity : TranslatedDaggerAppCompatActivity() { binding = OmnipodDashPodManagementBinding.inflate(layoutInflater) setContentView(binding.root) - title = rh.gs(info.nightscout.androidaps.plugins.pump.omnipod.common.R.string.omnipod_common_pod_management_heading_actions) + title = rh.gs(info.nightscout.androidaps.plugins.pump.omnipod.common.R.string.omnipod_common_pod_management_title) supportActionBar?.setDisplayHomeAsUpEnabled(true) supportActionBar?.setDisplayShowHomeEnabled(true) diff --git a/pump/omnipod-eros/src/main/AndroidManifest.xml b/pump/omnipod-eros/src/main/AndroidManifest.xml index 6816a620c3..a125db69e5 100644 --- a/pump/omnipod-eros/src/main/AndroidManifest.xml +++ b/pump/omnipod-eros/src/main/AndroidManifest.xml @@ -17,7 +17,7 @@ + android:theme="@style/AppTheme" /> { + onBackPressedDispatcher.onBackPressed() + true + } + + else -> false + } + }) } override fun onResume() { diff --git a/pump/omnipod-eros/src/main/res/layout/omnipod_eros_pod_management.xml b/pump/omnipod-eros/src/main/res/layout/omnipod_eros_pod_management.xml index 0ec672c5c0..dd2b5094fe 100644 --- a/pump/omnipod-eros/src/main/res/layout/omnipod_eros_pod_management.xml +++ b/pump/omnipod-eros/src/main/res/layout/omnipod_eros_pod_management.xml @@ -13,18 +13,6 @@ android:layout_height="wrap_content" android:orientation="vertical"> - -