Show toast when profile is not set
This commit is contained in:
parent
1d58d85a71
commit
75f225fba2
2 changed files with 17 additions and 13 deletions
|
@ -3,6 +3,7 @@ package info.nightscout.pump.medtrum.ui
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
|
import info.nightscout.core.ui.toast.ToastUtils
|
||||||
import info.nightscout.interfaces.protection.ProtectionCheck
|
import info.nightscout.interfaces.protection.ProtectionCheck
|
||||||
import info.nightscout.pump.medtrum.MedtrumPump
|
import info.nightscout.pump.medtrum.MedtrumPump
|
||||||
import info.nightscout.pump.medtrum.databinding.FragmentMedtrumOverviewBinding
|
import info.nightscout.pump.medtrum.databinding.FragmentMedtrumOverviewBinding
|
||||||
|
@ -63,6 +64,8 @@ class MedtrumOverviewFragment : MedtrumBaseFragment<FragmentMedtrumOverviewBindi
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EventType.PROFILE_NOT_SET -> ToastUtils.infoToast(requireContext(), R.string.no_profile_selected)
|
||||||
|
|
||||||
else -> Unit
|
else -> Unit
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,19 +82,20 @@
|
||||||
<string name="next">Next</string>
|
<string name="next">Next</string>
|
||||||
<string name="discard">Discard</string>
|
<string name="discard">Discard</string>
|
||||||
|
|
||||||
<string name ="step_prepare_patch">Activate Patch</string>
|
<string name="step_prepare_patch">Activate Patch</string>
|
||||||
<string name ="step_prepare_patch_connect">Connect and Fill</string>
|
<string name="step_prepare_patch_connect">Connect and Fill</string>
|
||||||
<string name ="step_prime">Prime</string>
|
<string name="step_prime">Prime</string>
|
||||||
<string name ="step_priming">Priming</string>
|
<string name="step_priming">Priming</string>
|
||||||
<string name ="step_priming_complete">Priming Complete</string>
|
<string name="step_priming_complete">Priming Complete</string>
|
||||||
<string name ="step_attach">Attach Patch</string>
|
<string name="step_attach">Attach Patch</string>
|
||||||
<string name ="step_activate">Activating...</string>
|
<string name="step_activate">Activating...</string>
|
||||||
<string name ="step_activate_complete">Activation Complete</string>
|
<string name="step_activate_complete">Activation Complete</string>
|
||||||
<string name ="step_deactivate">Deactivate Patch</string>
|
<string name="step_deactivate">Deactivate Patch</string>
|
||||||
<string name ="step_deactivating">Deactivating...</string>
|
<string name="step_deactivating">Deactivating...</string>
|
||||||
<string name ="step_deactivate_complete">Patch deactivated</string>
|
<string name="step_deactivate_complete">Patch deactivated</string>
|
||||||
<string name ="step_retry_activation">Activation in progress</string>
|
<string name="step_retry_activation">Activation in progress</string>
|
||||||
<string name ="unexpected_state">Unexpected state: %1$s</string>
|
<string name="unexpected_state">Unexpected state: %1$s</string>
|
||||||
|
<string name="no_profile_selected">No profile selected. Please select a profile and try again.</string>
|
||||||
|
|
||||||
<string name="base_serial">Pump Base Serial: %1$X</string>
|
<string name="base_serial">Pump Base Serial: %1$X</string>
|
||||||
<string name="patch_begin_activation">No active patch. Press <b>Next</b> to begin the activation process.</string>
|
<string name="patch_begin_activation">No active patch. Press <b>Next</b> to begin the activation process.</string>
|
||||||
|
|
Loading…
Reference in a new issue