From b065b4b05a141e3a1172f3be7f85f619b2d00756 Mon Sep 17 00:00:00 2001 From: Alex Chau Date: Fri, 17 Jun 2022 09:34:12 +0000 Subject: [PATCH] Revert "Add logs for InvariantDeviceProfile.getDeviceProfile" This reverts commit d3e8cc40b49741af8457985d711e092794d5cc94. Reason for revert: b/231312158 is fixed, log is no longer needed Fix: 231851651 Change-Id: I3ea8b9d14e7eb6f8f9c794c5d15cdfc94153d392 --- .../android/launcher3/InvariantDeviceProfile.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/com/android/launcher3/InvariantDeviceProfile.java b/src/com/android/launcher3/InvariantDeviceProfile.java index 73ca4a34c4..dacbe9254a 100644 --- a/src/com/android/launcher3/InvariantDeviceProfile.java +++ b/src/com/android/launcher3/InvariantDeviceProfile.java @@ -61,8 +61,6 @@ import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; import java.io.IOException; -import java.io.PrintWriter; -import java.io.StringWriter; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; @@ -634,18 +632,6 @@ public class InvariantDeviceProfile { float screenHeight = config.screenHeightDp * res.getDisplayMetrics().density; int rotation = WindowManagerProxy.INSTANCE.get(context).getRotation(context); - if (Utilities.IS_DEBUG_DEVICE) { - StringWriter stringWriter = new StringWriter(); - PrintWriter printWriter = new PrintWriter(stringWriter); - DisplayController.INSTANCE.get(context).dump(printWriter); - printWriter.flush(); - Log.d("b/231312158", "getDeviceProfile -" - + "\nconfig: " + config - + "\ndisplayMetrics: " + res.getDisplayMetrics() - + "\nrotation: " + rotation - + "\n" + stringWriter, - new Exception()); - } return getBestMatch(screenWidth, screenHeight, rotation); }