Messaging app ClassCastException (DecorContext -> Activity) when SMSoIMS is initiated
Bug 27649619 Change-Id: I1c0de7c14abd255ceb9d61a377db3276c32fede0
This commit is contained in:
@@ -79,8 +79,7 @@ public class PopupTransitionAnimation extends Animation {
|
|||||||
mDestRect = new Rect();
|
mDestRect = new Rect();
|
||||||
mPopupRect = new Rect();
|
mPopupRect = new Rect();
|
||||||
mActionBarRect = new Rect();
|
mActionBarRect = new Rect();
|
||||||
final Activity activity = (Activity) viewToAnimate.getRootView().getContext();
|
mActionBarView = viewToAnimate.getRootView().findViewById(
|
||||||
mActionBarView = activity.getWindow().getDecorView().findViewById(
|
|
||||||
android.support.v7.appcompat.R.id.action_bar);
|
android.support.v7.appcompat.R.id.action_bar);
|
||||||
mRectEvaluator = RectEvaluatorCompat.create();
|
mRectEvaluator = RectEvaluatorCompat.create();
|
||||||
setDuration(UiUtils.MEDIAPICKER_TRANSITION_DURATION);
|
setDuration(UiUtils.MEDIAPICKER_TRANSITION_DURATION);
|
||||||
|
|||||||
Reference in New Issue
Block a user