Suppress lint error
This commit is contained in:
@@ -34,7 +34,7 @@ class App : Application() {
|
|||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
app = this
|
app = this
|
||||||
if (Build.VERSION.SDK_INT >= 24) {
|
if (Build.VERSION.SDK_INT >= 24) @SuppressLint("RestrictedApi") {
|
||||||
deviceStorage = DeviceStorageApp(this)
|
deviceStorage = DeviceStorageApp(this)
|
||||||
// alternative to PreferenceManager.getDefaultSharedPreferencesName(this)
|
// alternative to PreferenceManager.getDefaultSharedPreferencesName(this)
|
||||||
deviceStorage.moveSharedPreferencesFrom(this, PreferenceManager(this).sharedPreferencesName)
|
deviceStorage.moveSharedPreferencesFrom(this, PreferenceManager(this).sharedPreferencesName)
|
||||||
|
|||||||
Reference in New Issue
Block a user