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

Commit 1cfd4846 authored by Chris Li's avatar Chris Li Committed by Android (Google) Code Review
Browse files

Merge "Allow multiple adjacent TFs (8/n)" into main

parents 35aaab8e f50c6f4e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -518,11 +518,14 @@ class TaskFragment extends WindowContainer<WindowContainer> {
        }
    }

    // TODO(b/373709676): update usages.
    /** @deprecated b/373709676 replace with {@link #getAdjacentTaskFragments()}. */
    @Deprecated
    @Nullable
    TaskFragment getAdjacentTaskFragment() {
        if (Flags.allowMultipleAdjacentTaskFragments()) {
            throw new IllegalStateException("allowMultipleAdjacentTaskFragments is enabled. "
                    + "Use #getAdjacentTaskFragments instead");
        }
        return mAdjacentTaskFragment;
    }