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

Commit 525c8565 authored by Chris Li's avatar Chris Li
Browse files

Update WM Ext aar to include java functional APIs

There are apps crash because we change the API on extensions but the
legacy APIs are still using. Keep the original APIs as deprecated and
hidden until the Apps have been updated to use the latest WM Jetpack.

Bug: 267850458
Test: test on ROM
Merged-In: I846b2f2a07cc2ee2d4a3651d75ffe6b9a1a8770f
Change-Id: I846b2f2a07cc2ee2d4a3651d75ffe6b9a1a8770f
parent 49e0e9e2
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
@@ -252,4 +252,37 @@ public class WindowAreaComponentImpl implements WindowAreaComponent,
            }
        }
    }

    @Override
    public void addRearDisplayPresentationStatusListener(
            @NonNull Consumer<ExtensionWindowAreaStatus> consumer) {
        throw new UnsupportedOperationException(
                "addRearDisplayPresentationStatusListener is not supported in API_VERSION=2");
    }

    @Override
    public void removeRearDisplayPresentationStatusListener(
            @NonNull Consumer<ExtensionWindowAreaStatus> consumer) {
        throw new UnsupportedOperationException(
                "removeRearDisplayPresentationStatusListener is not supported in API_VERSION=2");
    }

    @Override
    public void startRearDisplayPresentationSession(@NonNull Activity activity,
            @NonNull Consumer<@WindowAreaSessionState Integer> consumer) {
        throw new UnsupportedOperationException(
                "startRearDisplayPresentationSession is not supported in API_VERSION=2");
    }

    @Override
    public void endRearDisplayPresentationSession() {
        throw new UnsupportedOperationException(
                "endRearDisplayPresentationSession is not supported in API_VERSION=2");
    }

    @Override
    public ExtensionWindowAreaPresentation getRearDisplayPresentation() {
        throw new UnsupportedOperationException(
                "getRearDisplayPresentation is not supported in API_VERSION=2");
    }
}
+26 −0
Original line number Diff line number Diff line
@@ -2156,4 +2156,30 @@ public class SplitController implements JetpackTaskFragmentOrganizer.TaskFragmen
        return configuration != null
                && configuration.windowConfiguration.getWindowingMode() == WINDOWING_MODE_PINNED;
    }

    @Override
    public ActivityOptions setLaunchingActivityStack(@NonNull ActivityOptions options,
            @NonNull IBinder token) {
        throw new UnsupportedOperationException(
                "setLaunchingActivityStack is not supported in API_VERSION=2");
    }

    @Override
    public void finishActivityStacks(@NonNull Set<IBinder> activityStackTokens) {
        throw new UnsupportedOperationException(
                "finishActivityStacks is not supported in API_VERSION=2");
    }

    @Override
    public void invalidateTopVisibleSplitAttributes() {
        throw new UnsupportedOperationException(
                "invalidateTopVisibleSplitAttributes is not supported in API_VERSION=2");
    }

    @Override
    public void updateSplitAttributes(@NonNull IBinder splitInfoToken,
            @NonNull SplitAttributes splitAttributes) {
        throw new UnsupportedOperationException(
                "updateSplitAttributes is not supported in API_VERSION=2");
    }
}