Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3de5a2e authored by George Mount's avatar George Mount
Browse files

Remove modified APIs

viewName was changed to transitionName and
MoveImage was replaced with ChangeImageTransform + ChangeBounds.

Change-Id: I5e0b0250ef3c926d1c3de212de3a5e1503e89b86
parent d66a8719
Loading
Loading
Loading
Loading
+0 −43
Original line number Diff line number Diff line
/*
 * Copyright (C) 2014 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package android.transition;

import android.content.Context;
import android.util.AttributeSet;

/**
 * TO BE REMOVED.
 * Use ChangeImageTransform + ChangeBounds instead.
 * @hide
 */
public class MoveImage extends TransitionSet {

    public MoveImage() {
        init();
    }

    public MoveImage(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init() {
        addTransition(new ChangeBounds());
        addTransition(new ChangeClipBounds());
        addTransition(new ChangeTransform());
        addTransition(new ChangeImageTransform());
    }
}
+0 −2
Original line number Diff line number Diff line
@@ -149,8 +149,6 @@ public class TransitionInflater {
                transition = new Slide(mContext, attrs);
            } else if ("explode".equals(name)) {
                transition = new Explode(mContext, attrs);
            } else if ("moveImage".equals(name)) {
                transition = new MoveImage(mContext, attrs);
            } else if ("changeImageTransform".equals(name)) {
                transition = new ChangeImageTransform(mContext, attrs);
            } else if ("changeTransform".equals(name)) {
+0 −14
Original line number Diff line number Diff line
@@ -19391,14 +19391,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        mTransitionName = transitionName;
    }
    /**
     * To be removed before L release.
     * @hide
     */
    public final void setViewName(String transitionName) {
        setTransitionName(transitionName);
    }
    /**
     * Returns the name of the View to be used to identify Views in Transitions.
     * Names should be unique in the View hierarchy.
@@ -19412,12 +19404,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        return mTransitionName;
    }
    /**
     * To be removed before L release.
     * @hide
     */
    public String getViewName() { return getTransitionName(); }
    /**
     * Interface definition for a callback to be invoked when a hardware key event is
     * dispatched to this view. The callback will be invoked before the key event is