Skip to content

Commit

Permalink
Rename classes
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Sep 13, 2023
1 parent b283c4b commit cc8ae32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import com.afollestad.materialdialogs.MaterialDialog
import de.cyface.energy_settings.Constants.TAG
import de.cyface.energy_settings.GnssDisabledWarningDialog.Companion.create
import de.cyface.energy_settings.ProblematicManufacturerWarningDialog.Companion.create
import de.cyface.energy_settings.settings.CustomSettings
import de.cyface.energy_settings.settings.EnergySettings
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import java.util.Locale
Expand Down Expand Up @@ -172,7 +172,7 @@ internal class ProblematicManufacturerWarningDialog(private val recipientEmail:
* Saves the user's preference to disable auto-popup of this dialog
*/
private suspend fun onNegativeButtonCall(context: Context?) {
CustomSettings().setManufacturerWarningShown(true)
EnergySettings().setManufacturerWarningShown(true)
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import androidx.datastore.core.DataStoreFactory
import androidx.datastore.dataStoreFile
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import de.cyface.energy_settings.settings.CustomSettings
import de.cyface.energy_settings.settings.EnergySettings
import de.cyface.energy_settings.settings.PreferencesMigrationFactory
import de.cyface.energy_settings.settings.SettingsSerializer
import de.cyface.energy_settings.settings.StoreMigration
Expand All @@ -58,7 +58,7 @@ object TrackingSettings {
/**
* Custom settings used by this library.
*/
private lateinit var settings: CustomSettings
private lateinit var settings: EnergySettings

// FIXME: see if we can also mice the datastore to CustomSettings like everywhere else.
/**
Expand Down Expand Up @@ -91,7 +91,8 @@ object TrackingSettings {
StoreMigration()
)
)
settings = CustomSettings() // Depends on dataStore to be initialized
settings =
EnergySettings() // Depends on dataStore to be initialized
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map

/**
* Custom settings used by this library.
* Settings used by this library.
*
* @author Armin Schnabel
* @version 2.0.0
* @since 3.3.4
*/
class CustomSettings {
class EnergySettings {

/**
* Saves whether the user marked the manufacturer-specific warning as "don't show again".
Expand Down

0 comments on commit cc8ae32

Please sign in to comment.