OSDN Git Service

Fixed crash in PanelView dump
authorSelim Cinek <cinek@google.com>
Mon, 7 Apr 2014 18:07:22 +0000 (20:07 +0200)
committerSelim Cinek <cinek@google.com>
Mon, 7 Apr 2014 18:22:24 +0000 (20:22 +0200)
Bugreports crashed when dumping PanelView.

Bug: 13872972
Change-Id: I3bd2b5321dd208766248f6506c5592190366e5ea

packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java

index 3c8af30..ec35d41 100644 (file)
@@ -793,7 +793,7 @@ public class PanelView extends FrameLayout {
     }
 
     public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
-        pw.println(String.format("[PanelView(%s): expandedHeight=%f maxPanelHeight=%f closing=%s"
+        pw.println(String.format("[PanelView(%s): expandedHeight=%f maxPanelHeight=%d closing=%s"
                 + " tracking=%s rubberbanding=%s justPeeked=%s peekAnim=%s%s timeAnim=%s%s"
                 + "]",
                 this.getClass().getSimpleName(),