From 02bf9ac96cc3cc63c1ddd8cad76bdd92b07b1f6b Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Thu, 14 Apr 2016 17:40:23 -0700 Subject: Fix crash on accessibility service. Change-Id: If35d4744c3ada3a3d0ae6063dd1150e309ee5c59 Fix: 27926006 (cherry picked from commit e61465686d1ee1be8297c1e758c63ca0bff8ef47) --- InCallUI/src/com/android/incallui/CallCardFragment.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 785d3d3aa..39dd5eae2 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -45,6 +45,7 @@ import android.view.ViewPropertyAnimator; import android.view.ViewTreeObserver; import android.view.ViewTreeObserver.OnGlobalLayoutListener; import android.view.accessibility.AccessibilityEvent; +import android.view.accessibility.AccessibilityManager; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.ImageButton; @@ -1154,13 +1155,21 @@ public class CallCardFragment extends BaseFragment