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

Commit 09694802 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Hide split screen option if app doesn't support it" into ub-launcher3-master

parents 41157f3c 73296f27
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import android.os.Handler;
import android.os.Looper;
import android.os.RemoteException;
import android.os.UserHandle;
import android.provider.Settings;
import android.util.Log;
import android.view.View;

@@ -101,8 +100,11 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut
            if (launcher.getDeviceProfile().inMultiWindowMode()) {
                return null;
            }
            final Task task  = taskView.getTask();
            if (!task.isDockable) {
                return null;
            }
            return (v -> {
                Task task  = taskView.getTask();
                final ActivityOptions options = ActivityOptionsCompat.makeSplitScreenOptions(true);
                final Consumer<Boolean> resultCallback = success -> {
                    if (success) {