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

Commit 229c4c32 authored by Jon Miranda's avatar Jon Miranda
Browse files

App Shortcut menu bug fixes and polish.

- Widget is its own item.
- Change order of icon order.
- Update grab handle colors

Bug: 188095695
Test: long press on apps with/without widgets, long press apps on workspace/
      all apps/search

Change-Id: Iabb9b4b3f3a928103b9d62601f22e74ef2325d7c
parent 1560f401
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -422,8 +422,8 @@ public abstract class BaseQuickstepLauncher extends Launcher

    @Override
    public Stream<SystemShortcut.Factory> getSupportedShortcuts() {
        return Stream.concat(super.getSupportedShortcuts(),
                Stream.of(WellbeingModel.SHORTCUT_FACTORY));
        return Stream.concat(Stream.of(WellbeingModel.SHORTCUT_FACTORY),
                super.getSupportedShortcuts());
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ public class QuickstepLauncher extends BaseQuickstepLauncher {
    @Override
    public Stream<SystemShortcut.Factory> getSupportedShortcuts() {
        return Stream.concat(
                super.getSupportedShortcuts(), Stream.of(mHotseatPredictionController));
                Stream.of(mHotseatPredictionController), super.getSupportedShortcuts());
    }

    /**
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@
        android:height="@dimen/deep_shortcut_drag_handle_size"
        android:viewportWidth="24.0"
        android:viewportHeight="24.0"
        android:tint="?android:attr/textColorHint" >
        android:tint="?android:attr/textColorPrimary" >

    <path
        android:pathData="M20,9H4v2h16V9z M4,15h16v-2H4V15z"
+1 −1
Original line number Diff line number Diff line
@@ -45,6 +45,6 @@
        android:layout_height="@dimen/system_shortcut_icon_size"
        android:layout_marginStart="@dimen/system_shortcut_margin_start"
        android:layout_gravity="start|center_vertical"
        android:backgroundTint="?android:attr/textColorTertiary"/>
        android:backgroundTint="?android:attr/textColorPrimary"/>

</com.android.launcher3.shortcuts.DeepShortcutView>
+27 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/system_shortcut_full"
    android:layout_width="match_parent"
    android:layout_height="@dimen/system_shortcut_header_height"
    android:orientation="horizontal"
    android:gravity="end|center_vertical"
    android:elevation="@dimen/deep_shortcuts_elevation"
    android:tag="@string/popup_container_iterate_children"
    android:clipToPadding="true">
</LinearLayout>
Loading