diff --git a/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java b/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java index 597bf03..a9042a2 100644 --- a/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java +++ b/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicTaskUtils.java @@ -42,6 +42,7 @@ public class DynamicTaskUtils { * @deprecated Use {@link #executeTask(DynamicTask)} or standard * {@code java.util.concurrent} APIs. */ + @Deprecated @SuppressWarnings("deprecation") public static void executeTask(@Nullable AsyncTask task) { if (task == null) { @@ -66,6 +67,7 @@ public static void executeTask(@Nullable AsyncTask task) { * @deprecated Use {@link #cancelTask(DynamicTask, boolean)} or standard * {@code java.util.concurrent} APIs. */ + @Deprecated @SuppressWarnings("deprecation") public static void cancelTask(@Nullable AsyncTask task) { if (task == null) { diff --git a/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicViewUtils.java b/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicViewUtils.java index 1bfd90a..8a478e9 100644 --- a/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicViewUtils.java +++ b/dynamic-utils/src/main/java/com/pranavpandey/android/dynamic/util/DynamicViewUtils.java @@ -86,6 +86,7 @@ public static boolean isRootLayout(@Nullable T view) { * @deprecated Use {@link DynamicWindowUtils#setEdgeToEdge(Window, boolean)} to support * latest API levels. */ + @Deprecated @SuppressWarnings("deprecation") @TargetApi(Build.VERSION_CODES.M) public static void setEdgeToEdge(@Nullable View view, boolean edgeToEdge) { @@ -120,6 +121,7 @@ public static void setEdgeToEdge(@Nullable View view, boolean edgeToEdge) { * * @deprecated Try to use {@link WindowInsetsControllerCompat} if possible. */ + @Deprecated @SuppressWarnings("deprecation") @TargetApi(Build.VERSION_CODES.M) public static boolean isEdgeToEdge(@NonNull View view) {