Loading src/com/android/launcher3/InvariantDeviceProfile.java +0 −14 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); } Loading Loading
src/com/android/launcher3/InvariantDeviceProfile.java +0 −14 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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); } Loading