Move to androidx PreferenceManager

This commit is contained in:
CactiChameleon9 2024-08-31 11:36:47 +01:00
parent 85038e146b
commit 937909a985
6 changed files with 7 additions and 4 deletions

View File

@ -29,6 +29,7 @@ android {
} }
dependencies { dependencies {
implementation libs.preference.preference
implementation libs.legacy.support.v4 implementation libs.legacy.support.v4
implementation libs.appcompat implementation libs.appcompat
implementation libs.material implementation libs.material

View File

@ -3,7 +3,7 @@ package com.mridang.speedo;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.preference.PreferenceManager; import androidx.preference.PreferenceManager;
import android.util.Log; import android.util.Log;
/** /**

View File

@ -3,7 +3,7 @@ package com.mridang.speedo;
import android.content.BroadcastReceiver; import android.content.BroadcastReceiver;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.preference.PreferenceManager; import androidx.preference.PreferenceManager;
/** /**
* Broadcast receiver class to help start the traffic monitoring service when the phone boots up only * Broadcast receiver class to help start the traffic monitoring service when the phone boots up only

View File

@ -6,7 +6,7 @@ import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.os.Build; import android.os.Build;
import android.os.PowerManager; import android.os.PowerManager;
import android.preference.PreferenceManager; import androidx.preference.PreferenceManager;
import android.util.Log; import android.util.Log;
/** /**

View File

@ -25,7 +25,7 @@ import android.os.Handler;
import android.os.IBinder; import android.os.IBinder;
import android.os.Message; import android.os.Message;
import android.os.PowerManager; import android.os.PowerManager;
import android.preference.PreferenceManager; import androidx.preference.PreferenceManager;
import androidx.core.app.NotificationCompat; import androidx.core.app.NotificationCompat;
import android.telephony.TelephonyManager; import android.telephony.TelephonyManager;
import android.text.format.Formatter; import android.text.format.Formatter;

View File

@ -5,6 +5,7 @@ junitVersion = "1.2.1"
espressoCore = "3.6.1" espressoCore = "3.6.1"
appcompat = "1.7.0" appcompat = "1.7.0"
legacySupportV4 = "1.0.0" legacySupportV4 = "1.0.0"
preferencePreference = "1.2.1"
material = "1.12.0" material = "1.12.0"
[libraries] [libraries]
@ -13,6 +14,7 @@ ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitV
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" } espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" } appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
legacy-support-v4 = { module = "androidx.legacy:legacy-support-v4", version.ref = "legacySupportV4" } legacy-support-v4 = { module = "androidx.legacy:legacy-support-v4", version.ref = "legacySupportV4" }
preference-preference = { module = "androidx.preference:preference", version.ref = "preferencePreference" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" } material = { group = "com.google.android.material", name = "material", version.ref = "material" }