-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LEIP-120] Upgrade android-utils to 3.5.0 (#57)
- Loading branch information
Showing
12 changed files
with
1,082 additions
and
981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
451 changes: 0 additions & 451 deletions
451
..._settings/src/main/java/de/cyface/energy_settings/ProblematicManufacturerWarningDialog.kt
This file was deleted.
Oops, something went wrong.
510 changes: 0 additions & 510 deletions
510
energy_settings/src/main/java/de/cyface/energy_settings/TrackingSettings.kt
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
energy_settings/src/main/kotlin/de/cyface/energy_settings/CustomPreferences.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package de.cyface.energy_settings | ||
|
||
import android.content.Context | ||
import androidx.core.content.edit | ||
import de.cyface.energy_settings.Constants.PREFERENCES_MANUFACTURER_WARNING_SHOWN_KEY | ||
import de.cyface.utils.AppPreferences | ||
|
||
class CustomPreferences(context: Context): AppPreferences(context) { | ||
|
||
fun saveWarningShown(warningShown: Boolean) { | ||
preferences.edit { | ||
putBoolean(PREFERENCES_MANUFACTURER_WARNING_SHOWN_KEY, warningShown) | ||
apply() | ||
} | ||
} | ||
|
||
fun getWarningShown(): Boolean { | ||
return preferences.getBoolean(PREFERENCES_MANUFACTURER_WARNING_SHOWN_KEY, false) | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.