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

Commit a590c992 authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Remove unnecessary field from AppWindowToken.

Change-Id: I0bc488dc67d5128a1f47f58f62038d178d8ef0cd
parent 7fc7f48a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class AppWindowAnimator {
    public AppWindowAnimator(final AppWindowToken atoken) {
        mAppToken = atoken;
        mService = atoken.service;
        mAnimator = atoken.mAnimator;
        mAnimator = mService.mAnimator;
    }

    public void setAnimation(Animation anim, int width, int height, boolean skipFirstFrame) {
+2 −4
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import static com.android.server.wm.WindowManagerService.TAG;
import com.android.server.input.InputApplicationHandle;
import com.android.server.wm.WindowManagerService.H;

import android.annotation.NonNull;
import android.content.pm.ActivityInfo;
import android.os.Message;
import android.os.RemoteException;
@@ -49,9 +50,7 @@ class AppWindowToken extends WindowToken {
    // All of the windows and child windows that are included in this
    // application token.  Note this list is NOT sorted!
    final WindowList allAppWindows = new WindowList();
    final AppWindowAnimator mAppAnimator;

    final WindowAnimator mAnimator;
    @NonNull final AppWindowAnimator mAppAnimator;

    final boolean voiceInteraction;

@@ -145,7 +144,6 @@ class AppWindowToken extends WindowToken {
        appToken = _token;
        voiceInteraction = _voiceInteraction;
        mInputApplicationHandle = new InputApplicationHandle(this);
        mAnimator = service.mAnimator;
        mAppAnimator = new AppWindowAnimator(this);
    }