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

Commit 46aba2a4 authored by Sreyas's avatar Sreyas
Browse files

Adding content push button behind flag to OAV.

Tested: TaplTestsNexus:testOverviewActions()
Change-Id: I83bc6e5033e2292776c927fba363214f347e01ce
parent b6dc22c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@
            android:visibility="gone" />

        <Space
            android:id="@+id/share_space"
            android:id="@+id/oav_three_button_space"
            android:layout_width="0dp"
            android:layout_height="1dp"
            android:layout_weight="1"
+6 −0
Original line number Diff line number Diff line
@@ -58,6 +58,12 @@ public class QuickstepTestInformationHandler extends TestInformationHandler {
                        FeatureFlags.ENABLE_OVERVIEW_SHARE.get());
                return response;
            }

            case TestProtocol.REQUEST_OVERVIEW_CONTENT_PUSH_ENABLED: {
                response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD,
                        FeatureFlags.ENABLE_OVERVIEW_CONTENT_PUSH.get());
                return response;
            }
        }

        return super.call(method);
+1 −1
Original line number Diff line number Diff line
@@ -113,7 +113,7 @@ public class OverviewActionsView<T extends OverlayUICallbacks> extends FrameLayo
        findViewById(R.id.action_screenshot).setOnClickListener(this);
        if (ENABLE_OVERVIEW_SHARE.get()) {
            share.setVisibility(VISIBLE);
            findViewById(R.id.share_space).setVisibility(VISIBLE);
            findViewById(R.id.oav_three_button_space).setVisibility(VISIBLE);
        }
    }

+3 −0
Original line number Diff line number Diff line
@@ -149,6 +149,9 @@ public final class FeatureFlags {
    public static final BooleanFlag ENABLE_OVERVIEW_SHARE = getDebugFlag(
            "ENABLE_OVERVIEW_SHARE", false, "Show Share button in Overview Actions");

    public static final BooleanFlag ENABLE_OVERVIEW_CONTENT_PUSH = getDebugFlag(
            "ENABLE_OVERVIEW_CONTENT_PUSH", false, "Show Content Push button in Overview Actions");

    public static final BooleanFlag ENABLE_DATABASE_RESTORE = getDebugFlag(
            "ENABLE_DATABASE_RESTORE", true,
            "Enable database restore when new restore session is created");
+2 −0
Original line number Diff line number Diff line
@@ -96,6 +96,8 @@ public final class TestProtocol {
    public static final String REQUEST_DISABLE_DEBUG_TRACING = "disable-debug-tracing";

    public static final String REQUEST_OVERVIEW_SHARE_ENABLED = "overview-share-enabled";
    public static final String REQUEST_OVERVIEW_CONTENT_PUSH_ENABLED =
            "overview-content-push-enabled";

    public static boolean sDisableSensorRotation;
    public static final String REQUEST_MOCK_SENSOR_ROTATION = "mock-sensor-rotation";
Loading