From b61a35b809666bd58695c988106844b54df3ce6b Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Tue, 25 Jun 2013 01:37:11 -0400 Subject: [PATCH] Handle pids coming and going in the memory tracker. Change-Id: If705e62c876243299adc7ed451a419c552b556b2 --- src/com/android/launcher3/WeightWatcher.java | 28 ++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/WeightWatcher.java b/src/com/android/launcher3/WeightWatcher.java index 91d79a8148..410856a63b 100644 --- a/src/com/android/launcher3/WeightWatcher.java +++ b/src/com/android/launcher3/WeightWatcher.java @@ -46,6 +46,13 @@ public class WeightWatcher extends LinearLayout { private static final int MSG_STOP = 2; private static final int MSG_UPDATE = 3; + static int indexOf(int[] a, int x) { + for (int i=0; i