ErrorDialog -> ui
This commit is contained in:
parent
94b1d0ce74
commit
0787829223
|
@ -2,7 +2,6 @@ package info.nightscout.core.di
|
|||
|
||||
import dagger.Module
|
||||
import dagger.android.ContributesAndroidInjector
|
||||
import info.nightscout.androidaps.dialogs.ErrorDialog
|
||||
import info.nightscout.androidaps.plugins.general.maintenance.activities.PrefImportListActivity
|
||||
import info.nightscout.core.ui.elements.SingleClickButton
|
||||
|
||||
|
@ -11,7 +10,6 @@ import info.nightscout.core.ui.elements.SingleClickButton
|
|||
abstract class CoreFragmentsModule {
|
||||
|
||||
@ContributesAndroidInjector abstract fun contributesPrefImportListActivity(): PrefImportListActivity
|
||||
@ContributesAndroidInjector abstract fun contributesErrorDialog(): ErrorDialog
|
||||
@ContributesAndroidInjector abstract fun contributesSingleClickButton(): SingleClickButton
|
||||
|
||||
}
|
||||
|
|
|
@ -1,14 +1,11 @@
|
|||
package info.nightscout.ui.activities
|
||||
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import androidx.annotation.RawRes
|
||||
import info.nightscout.androidaps.activities.DialogAppCompatActivity
|
||||
import info.nightscout.core.main.R
|
||||
import info.nightscout.database.impl.AppRepository
|
||||
import info.nightscout.database.impl.transactions.InsertTherapyEventAnnouncementTransaction
|
||||
import info.nightscout.androidaps.dialogs.ErrorDialog
|
||||
import info.nightscout.ui.alertDialogs.ErrorDialog
|
||||
import info.nightscout.androidaps.services.AlarmSoundService
|
||||
import info.nightscout.shared.sharedPreferences.SP
|
||||
import io.reactivex.rxjava3.disposables.CompositeDisposable
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package info.nightscout.androidaps.dialogs
|
||||
package info.nightscout.ui.alertDialogs
|
||||
|
||||
import android.content.Context
|
||||
import android.content.res.Resources
|
||||
|
@ -15,11 +15,11 @@ import info.nightscout.androidaps.activities.DialogAppCompatActivity
|
|||
import info.nightscout.androidaps.logging.UserEntryLogger
|
||||
import info.nightscout.androidaps.services.AlarmSoundServiceHelper
|
||||
import info.nightscout.core.main.R
|
||||
import info.nightscout.core.main.databinding.DialogErrorBinding
|
||||
import info.nightscout.database.entities.UserEntry.Action
|
||||
import info.nightscout.database.entities.UserEntry.Sources
|
||||
import info.nightscout.rx.logging.AAPSLogger
|
||||
import info.nightscout.shared.utils.T
|
||||
import info.nightscout.ui.databinding.DialogErrorBinding
|
||||
import javax.inject.Inject
|
||||
|
||||
class ErrorDialog : DaggerDialogFragment() {
|
|
@ -16,6 +16,7 @@ import info.nightscout.ui.activities.fragments.TreatmentsProfileSwitchFragment
|
|||
import info.nightscout.ui.activities.fragments.TreatmentsTempTargetFragment
|
||||
import info.nightscout.ui.activities.fragments.TreatmentsTemporaryBasalsFragment
|
||||
import info.nightscout.ui.activities.fragments.TreatmentsUserEntryFragment
|
||||
import info.nightscout.ui.alertDialogs.ErrorDialog
|
||||
import info.nightscout.ui.dialogs.BolusProgressDialog
|
||||
import info.nightscout.ui.dialogs.CalibrationDialog
|
||||
import info.nightscout.ui.dialogs.CarbsDialog
|
||||
|
@ -56,6 +57,7 @@ abstract class UiModule {
|
|||
@ContributesAndroidInjector abstract fun contributesTempTargetDialog(): TempTargetDialog
|
||||
@ContributesAndroidInjector abstract fun contributesLoopDialog(): LoopDialog
|
||||
@ContributesAndroidInjector abstract fun contributesBolusProgressDialog(): BolusProgressDialog
|
||||
@ContributesAndroidInjector abstract fun contributesErrorDialog(): ErrorDialog
|
||||
|
||||
@ContributesAndroidInjector abstract fun contributesTDDStatsActivity(): TDDStatsActivity
|
||||
@ContributesAndroidInjector abstract fun contributeBolusProgressHelperActivity(): BolusProgressHelperActivity
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
style="@style/StyleDialog"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="info.nightscout.androidaps.dialogs.ErrorDialog">
|
||||
tools:context=".alertDialogs.ErrorDialog">
|
||||
|
||||
<RelativeLayout
|
||||
style="@style/StyleDialogHeader"
|
Loading…
Reference in a new issue