Replace deprecated field usage

This commit is contained in:
xynngh 2020-09-08 12:38:07 +04:00
parent 2f4081f576
commit 674e36a068
1 changed files with 1 additions and 1 deletions

View File

@ -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');