diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-14 11:59:33 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-05-14 11:59:33 -0700 |
commit | aa642c0cc20293137376d44f8221876c121e5be9 (patch) | |
tree | 0de40101e01c37de412c89f0115b6386dea0db97 /services/java/com | |
parent | d47d81a4de581a85a55b8ed5f3a1f08cb573ccec (diff) | |
parent | c4b11a79fb164310af03c1190622fe52e3695d2b (diff) | |
download | frameworks_base-aa642c0cc20293137376d44f8221876c121e5be9.zip frameworks_base-aa642c0cc20293137376d44f8221876c121e5be9.tar.gz frameworks_base-aa642c0cc20293137376d44f8221876c121e5be9.tar.bz2 |
Merge changes 1591,1596 into donut
* changes:
Add a new feature to android.os.Debug to add the ability to inject only specific fields when calling setFieldsOn().
Fixes #1836075. Adds consistency checks for the View hierarchy. To enable them, you need a debug build and ViewDebug.sConsistencyCheckEnabled set to true in debug.prop. This change also lets you easily enable drawing and layout profiling in ViewRoot by setting ViewRoot.sProfileDrawing, ViewRoot.sProfileLayout and ViewRoot.sShowFps in debug.prop with a debug build.
Diffstat (limited to 'services/java/com')
-rw-r--r-- | services/java/com/android/server/status/IconMerger.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/services/java/com/android/server/status/IconMerger.java b/services/java/com/android/server/status/IconMerger.java index 37fdbfb..5b80638 100644 --- a/services/java/com/android/server/status/IconMerger.java +++ b/services/java/com/android/server/status/IconMerger.java @@ -8,8 +8,6 @@ import android.widget.LinearLayout; public class IconMerger extends LinearLayout { - private static final boolean SPEW = false; - StatusBarService service; StatusBarIcon moreIcon; @@ -29,7 +27,7 @@ public class IconMerger extends LinearLayout { int fitRight = -1; for (i=N-1; i>=0; i--) { final View child = getChildAt(i); - if (child != null && child.getVisibility() != GONE) { + if (child.getVisibility() != GONE) { fitRight = child.getRight(); break; } @@ -45,7 +43,7 @@ public class IconMerger extends LinearLayout { moreView = child; startIndex = i+1; } - else if (child != null && child.getVisibility() != GONE) { + else if (child.getVisibility() != GONE) { fitLeft = child.getLeft(); break; } @@ -71,7 +69,7 @@ public class IconMerger extends LinearLayout { int number = 0; for (i=startIndex; i<N; i++) { final View child = getChildAt(i); - if (child != null && child.getVisibility() != GONE) { + if (child.getVisibility() != GONE) { int childLeft = child.getLeft(); int childRight = child.getRight(); if (childLeft < breakingPoint) { |