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

Commit b93119e3 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "SystemUI proxy updates for managing split screen" into sc-dev

parents 64edc22c 0d0f4f96
Loading
Loading
Loading
Loading
+15 −3
Original line number Diff line number Diff line
@@ -21,11 +21,11 @@ import android.app.PendingIntent;
import android.app.PictureInPictureParams;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.graphics.Bitmap;
import android.graphics.Insets;
import android.graphics.Rect;
import android.os.Binder;
import android.os.Bundle;
import android.os.IBinder;
import android.os.IBinder.DeathRecipient;
@@ -516,14 +516,26 @@ public class SystemUiProxy implements ISystemUiProxy {
    }

    @Override
    public void startIntent(PendingIntent intent, int stage, int position, Bundle options) {
    public void startIntent(PendingIntent intent, Intent fillInIntent, int stage,
            int position, Bundle options) {
        if (mSystemUiProxy != null) {
            try {
                mSystemUiProxy.startIntent(intent, stage, position, options);
                mSystemUiProxy.startIntent(intent, fillInIntent, stage, position,
                        options);
            } catch (RemoteException e) {
                Log.w(TAG, "Failed call startIntent");
            }
        }
    }

    @Override
    public void removeFromSideStage(int taskId) {
        if (mSystemUiProxy != null) {
            try {
                mSystemUiProxy.removeFromSideStage(taskId);
            } catch (RemoteException e) {
                Log.w(TAG, "Failed call removeFromSideStage");
            }
        }
    }
}