From 32637b97e018490e8b2fc6a6df1979cce6016d9e Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 3 Feb 2021 23:58:57 +0100 Subject: [PATCH] Omnipod -> jetpack --- omnipod/build.gradle | 1 - .../fragment/AttachPodInfoFragment.kt | 4 +- .../PodActivationActionFragmentBase.kt | 18 +++++--- .../common/fragment/ActionFragmentBase.kt | 38 ++++++++-------- .../common/fragment/InfoFragmentBase.kt | 5 +-- .../common/fragment/WizardFragmentBase.kt | 43 +++++++++++-------- .../fragment/DeactivatePodActionFragment.kt | 9 ++-- .../layout/omnipod_wizard_base_fragment.xml | 12 ++++-- .../res/layout/omnipod_wizard_nav_buttons.xml | 4 +- .../omnipod_wizard_progress_indication.xml | 2 +- 10 files changed, 76 insertions(+), 60 deletions(-) diff --git a/omnipod/build.gradle b/omnipod/build.gradle index 19eacc0d1d..c3b4f67e77 100644 --- a/omnipod/build.gradle +++ b/omnipod/build.gradle @@ -1,6 +1,5 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' -apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' android { diff --git a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/AttachPodInfoFragment.kt b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/AttachPodInfoFragment.kt index 8fc2d30b65..a02462d5af 100644 --- a/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/AttachPodInfoFragment.kt +++ b/omnipod/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/ui/wizard/activation/fragment/AttachPodInfoFragment.kt @@ -2,13 +2,13 @@ package info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.activation.fra import android.os.Bundle import android.view.View +import android.widget.Button import androidx.annotation.IdRes import androidx.annotation.StringRes import androidx.appcompat.app.AlertDialog import androidx.navigation.fragment.findNavController import info.nightscout.androidaps.plugins.pump.omnipod.R import info.nightscout.androidaps.plugins.pump.omnipod.ui.wizard.common.fragment.InfoFragmentBase -import kotlinx.android.synthetic.main.omnipod_wizard_nav_buttons.* class AttachPodInfoFragment : InfoFragmentBase() { @@ -26,7 +26,7 @@ class AttachPodInfoFragment : InfoFragmentBase() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - omnipod_wizard_button_next.setOnClickListener { + view.findViewById