mirror of
https://github.com/hmalik144/Timer_app.git
synced 2025-12-10 03:05:25 +00:00
Update to androidx preferences
This commit is contained in:
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
@@ -37,4 +37,7 @@ dependencies {
|
|||||||
//Kodein Dependency Injection
|
//Kodein Dependency Injection
|
||||||
implementation "org.kodein.di:kodein-di-generic-jvm:6.2.1"
|
implementation "org.kodein.di:kodein-di-generic-jvm:6.2.1"
|
||||||
implementation "org.kodein.di:kodein-di-framework-android-x:6.2.1"
|
implementation "org.kodein.di:kodein-di-framework-android-x:6.2.1"
|
||||||
|
|
||||||
|
// AndroidX preferences
|
||||||
|
implementation 'androidx.preference:preference:1.1.1'
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@ package com.example.h_mal.timer_app.data.prefs
|
|||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.content.SharedPreferences
|
import android.content.SharedPreferences
|
||||||
import android.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
|
|
||||||
|
|
||||||
const val TimerConstant = "TIMER_CONSTANT"
|
const val TimerConstant = "TIMER_CONSTANT"
|
||||||
|
|||||||
Reference in New Issue
Block a user