diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/OverviewActionsView.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/OverviewActionsView.java index b585acdcd9..e41e14e373 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/views/OverviewActionsView.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/views/OverviewActionsView.java @@ -17,6 +17,7 @@ package com.android.quickstep.views; import static com.android.launcher3.config.FeatureFlags.ENABLE_OVERVIEW_ACTIONS; +import static com.android.launcher3.config.FeatureFlags.ENABLE_OVERVIEW_SHARE; import static com.android.quickstep.SysUINavigationMode.removeShelfFromOverview; import android.content.Context; @@ -92,8 +93,13 @@ public class OverviewActionsView extends FrameLayo @Override protected void onFinishInflate() { super.onFinishInflate(); - findViewById(R.id.action_share).setOnClickListener(this); + View share = findViewById(R.id.action_share); + share.setOnClickListener(this); findViewById(R.id.action_screenshot).setOnClickListener(this); + if (ENABLE_OVERVIEW_SHARE.get()) { + share.setVisibility(VISIBLE); + findViewById(R.id.share_space).setVisibility(VISIBLE); + } } /** diff --git a/quickstep/res/layout/overview_actions_container.xml b/quickstep/res/layout/overview_actions_container.xml index 1ecec25268..2371d86b0e 100644 --- a/quickstep/res/layout/overview_actions_container.xml +++ b/quickstep/res/layout/overview_actions_container.xml @@ -14,13 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. --> - + android:layout_marginRight="@dimen/overview_actions_horizontal_margin"> + - + android:layout_weight="1" /> +