From d4561507b8aec3625776cf8007e4d7280f0ce8e9 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Sun, 12 May 2019 14:37:24 +0200 Subject: [PATCH] Raised deprecation level on old database --- app/src/main/java/com/topjohnwu/magisk/App.kt | 4 ++-- .../java/com/topjohnwu/magisk/data/database/MagiskDB.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/App.kt b/app/src/main/java/com/topjohnwu/magisk/App.kt index 712b85a8e..b4b3ef86d 100644 --- a/app/src/main/java/com/topjohnwu/magisk/App.kt +++ b/app/src/main/java/com/topjohnwu/magisk/App.kt @@ -29,9 +29,9 @@ open class App : Application(), Application.ActivityLifecycleCallbacks { lateinit var protectedContext: Context - @Deprecated("Use dependency injection") + @Deprecated("Use dependency injection", level = DeprecationLevel.ERROR) val prefs: SharedPreferences by inject() - @Deprecated("Use dependency injection") + @Deprecated("Use dependency injection", level = DeprecationLevel.ERROR) val DB: MagiskDB by inject() @Volatile diff --git a/app/src/main/java/com/topjohnwu/magisk/data/database/MagiskDB.java b/app/src/main/java/com/topjohnwu/magisk/data/database/MagiskDB.java index 5ea518388..0426a49f7 100644 --- a/app/src/main/java/com/topjohnwu/magisk/data/database/MagiskDB.java +++ b/app/src/main/java/com/topjohnwu/magisk/data/database/MagiskDB.java @@ -20,7 +20,10 @@ import java.util.Date; import java.util.List; import java.util.Map; +import kotlin.DeprecationLevel; + @Deprecated +@kotlin.Deprecated(message = "", level = DeprecationLevel.ERROR) public class MagiskDB { private static final String POLICY_TABLE = "policies";