summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java b/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java
index fe008f3df..a250f6703 100644
--- a/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java
+++ b/InCallUI/src/com/android/incallui/widget/multiwaveview/GlowPadView.java
@@ -637,11 +637,15 @@ public class GlowPadView extends View {
}
/**
- * Sets teh handle drawable to the drawable specified by the resource ID.
+ * Sets the handle drawable to the drawable specified by the resource ID.
* @param resourceId
*/
public void setHandleDrawable(int resourceId) {
- mHandleDrawable = new TargetDrawable(getResources(), resourceId, 2);
+ if (mHandleDrawable != null) {
+ mHandleDrawable.setDrawable(getResources(), resourceId);
+ } else {
+ mHandleDrawable = new TargetDrawable(getResources(), resourceId, 1);
+ }
mHandleDrawable.setState(TargetDrawable.STATE_INACTIVE);
}