bug fix
This commit is contained in:
@@ -117,12 +117,12 @@ public class TopViewAnimHelper {
|
||||
if (isTopViewOut) {
|
||||
viewCaches.remove(currentAnimatingView);
|
||||
listener = statusListenerMap.remove(currentAnimatingView);
|
||||
if(listener!=null) {
|
||||
if (listener != null) {
|
||||
listener.onViewRemoved(currentAnimatingView);
|
||||
}
|
||||
} else {
|
||||
listener = statusListenerMap.get(currentAnimatingView);
|
||||
if(listener!=null) {
|
||||
if (listener != null) {
|
||||
listener.onViewAdded(currentAnimatingView);
|
||||
}
|
||||
}
|
||||
@@ -156,7 +156,7 @@ public class TopViewAnimHelper {
|
||||
private View currentAnimatingView = null;
|
||||
|
||||
public void startTopInAnim(View view, ViewGroup.LayoutParams params,
|
||||
IMogoTopViewStatusListener statusListener){
|
||||
IMogoTopViewStatusListener statusListener) {
|
||||
Logger.d(TAG, "startTopInAnim=====" + isTopViewOut);
|
||||
if (view == null) {
|
||||
throw new IllegalArgumentException("method addTopView params view is null");
|
||||
@@ -214,10 +214,10 @@ public class TopViewAnimHelper {
|
||||
|
||||
constraintSet.clone(topMotionLayout);
|
||||
|
||||
constraintSet.clear(R.id.module_entrance_id_top_container,ConstraintSet.BOTTOM);
|
||||
constraintSet.clear(R.id.module_entrance_id_top_container, ConstraintSet.BOTTOM);
|
||||
constraintSet.connect(R.id.module_entrance_id_top_container, ConstraintSet.TOP,
|
||||
R.id.module_entrance_id_top_motion_layout, ConstraintSet.TOP);
|
||||
if(CarSeries.getSeries() == CarSeries.CAR_SERIES_F80X) {
|
||||
if (CarSeries.getSeries() == CarSeries.CAR_SERIES_F80X) {
|
||||
TransitionManager.beginDelayedTransition(topMotionLayout, transition);
|
||||
}
|
||||
checkCameraModePosition(false);
|
||||
@@ -263,8 +263,7 @@ public class TopViewAnimHelper {
|
||||
|
||||
public void startTopOutAnim(View view) {
|
||||
Logger.d("TopViewAnimHelper", "startTopOutAnim=====");
|
||||
if (!isTopViewOut) {
|
||||
|
||||
if (!isTopViewOut && viewCaches.contains(view)) {
|
||||
if (topContainer.getChildCount() > 1) {
|
||||
// 顶部view包含多个view,只推出当前view,不进行整体上移
|
||||
Logger.d(TAG,
|
||||
|
||||
Reference in New Issue
Block a user