From 674e36a06812b1bcf9a754241aee7da5471f41a9 Mon Sep 17 00:00:00 2001 From: xynngh Date: Tue, 8 Sep 2020 12:38:07 +0400 Subject: [PATCH] Replace deprecated field usage --- .../dummydomain/yetanothercallblocker/utils/DebuggingUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/dummydomain/yetanothercallblocker/utils/DebuggingUtils.java b/app/src/main/java/dummydomain/yetanothercallblocker/utils/DebuggingUtils.java index 5b47944..3d1747f 100644 --- a/app/src/main/java/dummydomain/yetanothercallblocker/utils/DebuggingUtils.java +++ b/app/src/main/java/dummydomain/yetanothercallblocker/utils/DebuggingUtils.java @@ -107,7 +107,7 @@ public class DebuggingUtils { public static void appendDeviceInfo(String file) throws IOException { try (BufferedWriter writer = new BufferedWriter(new FileWriter(file, true))) { writer.newLine(); - writer.append("API level: ").append(android.os.Build.VERSION.SDK).append('\n'); + writer.append("API level: ").append(String.valueOf(android.os.Build.VERSION.SDK_INT)).append('\n'); writer.append("Brand: ").append(Build.BRAND).append('\n'); writer.append("Manufacturer: ").append(Build.MANUFACTURER).append('\n'); writer.append("Model: ").append(android.os.Build.MODEL).append('\n');