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

Commit 6b447a16 authored by Eric Lin's avatar Eric Lin
Browse files

Add type annotation to WindowingMode members.

BUG: 387193964
Flag: EXEMPT refactor
Test: Local build
Change-Id: I8c8447f5cd96de02cfed014ce21022e314880509
parent cd9e3755
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ import android.app.PendingIntent;
import android.app.ProfilerInfo;
import android.app.WaitResult;
import android.app.WindowConfiguration;
import android.app.WindowConfiguration.WindowingMode;
import android.app.compat.CompatChanges;
import android.compat.annotation.ChangeId;
import android.compat.annotation.Disabled;
@@ -233,6 +234,7 @@ class ActivityStarter {

    // The task display area to launch the activity onto, barring any strong reason to do otherwise.
    private TaskDisplayArea mPreferredTaskDisplayArea;
    @WindowingMode
    private int mPreferredWindowingMode;

    private Task mInTask;
+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import static com.android.server.wm.LaunchParamsController.LaunchParamsModifier.
import android.annotation.IntDef;
import android.annotation.Nullable;
import android.app.ActivityOptions;
import android.app.WindowConfiguration.WindowingMode;
import android.content.pm.ActivityInfo.WindowLayout;
import android.graphics.Rect;

@@ -186,6 +187,7 @@ class LaunchParamsController {
        TaskDisplayArea mPreferredTaskDisplayArea;

        /** The windowing mode to be in. */
        @WindowingMode
        int mWindowingMode;

        /** Sets values back to default. {@link #isEmpty} will return {@code true} once called. */