Commit 68c5e07b authored by Aayush Gupta's avatar Aayush Gupta
Browse files

Apps: Migrate to androidx's PreferenceManager library

The current one has been deprecated

References:
- [1]: https://developer.android.com/reference/kotlin/android/preference/PreferenceManager

Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
parent bf99a042
......@@ -28,7 +28,6 @@ import android.database.Cursor
import android.graphics.Color
import android.os.Bundle
import android.os.Handler
import android.preference.PreferenceManager
import android.view.MenuItem
import android.widget.Toast
import androidx.annotation.ColorRes
......@@ -36,6 +35,7 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.graphics.drawable.DrawableCompat
import androidx.fragment.app.Fragment
import androidx.preference.PreferenceManager
import com.google.android.material.bottomnavigation.BottomNavigationItemView
import com.google.android.material.bottomnavigation.BottomNavigationMenuView
import com.google.android.material.bottomnavigation.BottomNavigationView
......
......@@ -18,8 +18,8 @@
package foundation.e.apps.updates
import android.content.Context
import android.preference.PreferenceManager
import android.util.Log
import androidx.preference.PreferenceManager
import androidx.work.*
import foundation.e.apps.R
import foundation.e.apps.updates.model.UpdatesWorker
......
......@@ -23,8 +23,8 @@ import android.content.pm.PackageManager
import android.net.ConnectivityManager
import android.net.NetworkInfo
import android.os.AsyncTask
import android.preference.PreferenceManager
import android.util.Log
import androidx.preference.PreferenceManager
import androidx.work.Worker
import androidx.work.WorkerParameters
import foundation.e.apps.R
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment