diff --git a/app/src/main/java/info/nightscout/androidaps/MainApp.kt b/app/src/main/java/info/nightscout/androidaps/MainApp.kt index 9778886116..01bfae37af 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainApp.kt +++ b/app/src/main/java/info/nightscout/androidaps/MainApp.kt @@ -21,7 +21,7 @@ import info.nightscout.androidaps.receivers.ChargingStateReceiver import info.nightscout.androidaps.receivers.KeepAliveWorker import info.nightscout.androidaps.receivers.TimeDateOrTZChangeReceiver import info.nightscout.androidaps.services.AlarmSoundServiceHelper -import info.nightscout.androidaps.utils.ProcessLifecycleListener +import info.nightscout.implementation.lifecycle.ProcessLifecycleListener import info.nightscout.core.ui.locale.LocaleHelper import info.nightscout.core.utils.receivers.NetworkChangeReceiver import info.nightscout.interfaces.versionChecker.VersionCheckerUtils diff --git a/app/src/main/java/info/nightscout/androidaps/utils/ProcessLifecycleListener.kt b/app/src/main/java/info/nightscout/androidaps/utils/ProcessLifecycleListener.kt index 3160e80a0e..5a38c69ceb 100644 --- a/app/src/main/java/info/nightscout/androidaps/utils/ProcessLifecycleListener.kt +++ b/app/src/main/java/info/nightscout/androidaps/utils/ProcessLifecycleListener.kt @@ -1,13 +1,2 @@ package info.nightscout.androidaps.utils -import androidx.lifecycle.DefaultLifecycleObserver -import androidx.lifecycle.LifecycleOwner -import info.nightscout.interfaces.protection.ProtectionCheck -import javax.inject.Inject - -class ProcessLifecycleListener @Inject constructor(private val protectionCheck: ProtectionCheck) : DefaultLifecycleObserver { - - override fun onPause(owner: LifecycleOwner) { - protectionCheck.resetAuthorization() - } -} diff --git a/implementation/src/main/java/info/nightscout/implementation/lifecycle/ProcessLifecycleListener.kt b/implementation/src/main/java/info/nightscout/implementation/lifecycle/ProcessLifecycleListener.kt new file mode 100644 index 0000000000..3aef9345ee --- /dev/null +++ b/implementation/src/main/java/info/nightscout/implementation/lifecycle/ProcessLifecycleListener.kt @@ -0,0 +1,13 @@ +package info.nightscout.implementation.lifecycle + +import androidx.lifecycle.DefaultLifecycleObserver +import androidx.lifecycle.LifecycleOwner +import info.nightscout.interfaces.protection.ProtectionCheck +import javax.inject.Inject + +class ProcessLifecycleListener @Inject constructor(private val protectionCheck: ProtectionCheck) : DefaultLifecycleObserver { + + override fun onPause(owner: LifecycleOwner) { + protectionCheck.resetAuthorization() + } +} \ No newline at end of file