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

Commit 4f17c430 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8710048 from a49ba253 to tm-release

Change-Id: Ide632acf730bea3e25b0bfe657776958ea6be25b
parents 020127f8 a49ba253
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ option java_outer_classname = "LauncherAtomExtensions";
// Wrapper message for containers used at the quickstep level.
// Message name should match with launcher_atom_extension.proto message at
// the AOSP level.
// Next ID = 3
message ExtendedContainers {
  reserved 2; // Deleted fields

@@ -31,10 +32,16 @@ message ExtendedContainers {
}

// Represents on-device search result container.
// Next ID = 4
message DeviceSearchResultContainer{
  optional int32 query_length = 1;
  optional SearchAttributes search_attributes = 2;
  // [0, m], m varies based on the display density and resolution
  // To indicate the location of the tapped on-device search result.
  // For application, it will be the column number in the apps row.
  optional int32 grid_x = 3;

  // Next ID = 4
  message SearchAttributes{

    // True if results are based on spell corrected query
+8 −4
Original line number Diff line number Diff line
@@ -582,14 +582,18 @@ public class StatsLogCompatManager extends StatsLogManager {
    }

    private static int getGridX(LauncherAtom.ItemInfo info, boolean parent) {
        if (info.getContainerInfo().getContainerCase() == FOLDER) {
        LauncherAtom.ContainerInfo containerInfo = info.getContainerInfo();
        if (containerInfo.getContainerCase() == FOLDER) {
            if (parent) {
                return info.getContainerInfo().getFolder().getWorkspace().getGridX();
                return containerInfo.getFolder().getWorkspace().getGridX();
            } else {
                return info.getContainerInfo().getFolder().getGridX();
                return containerInfo.getFolder().getGridX();
            }
        } else if (containerInfo.getContainerCase() == EXTENDED_CONTAINERS) {
            return containerInfo.getExtendedContainers()
                    .getDeviceSearchResultContainer().getGridX();
        } else {
            return info.getContainerInfo().getWorkspace().getGridX();
            return containerInfo.getWorkspace().getGridX();
        }
    }

+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
        style="@style/FastScrollerPopup"
        android:layout_alignParentEnd="true"
        android:layout_alignTop="@+id/all_apps_header"
        android:layout_marginTop="@dimen/all_apps_header_bottom_padding"
        android:layout_marginEnd="@dimen/fastscroll_popup_margin" />

    <com.android.launcher3.views.RecyclerViewFastScroller
@@ -31,6 +32,7 @@
        android:layout_alignParentBottom="true"
        android:layout_alignParentEnd="true"
        android:layout_alignTop="@+id/all_apps_header"
        android:layout_marginTop="@dimen/all_apps_header_bottom_padding"
        android:layout_marginEnd="@dimen/fastscroll_end_margin"
        launcher:canThumbDetach="true" />

+2 −2
Original line number Diff line number Diff line
@@ -161,12 +161,12 @@
    <string name="all_apps_personal_tab" msgid="4190252696685155002">"شخصی"</string>
    <string name="all_apps_work_tab" msgid="4884822796154055118">"کاری"</string>
    <string name="work_profile_toggle_label" msgid="3081029915775481146">"نمایه کاری"</string>
    <string name="work_profile_edu_work_apps" msgid="7895468576497746520">"برنامه‌های کاری دارای نشان هستند و سرپرست سیستم می‌تواند آن‌ها را ببیند"</string>
    <string name="work_profile_edu_work_apps" msgid="7895468576497746520">"برنامه‌های کاری نشان‌دار هستند و سرپرست فناوری اطلاعات می‌تواند آن‌ها را ببیند"</string>
    <string name="work_profile_edu_accept" msgid="6069788082535149071">"متوجه‌ام"</string>
    <string name="work_apps_paused_title" msgid="3040901117349444598">"برنامه‌های کاری موقتاً متوقف شده‌اند."</string>
    <string name="work_apps_paused_body" msgid="261634750995824906">"برنامه‌های کاری نمی‌توانند برای شما اعلان ارسال کنند، از باتری استفاده کنند، یا به مکانتان دسترسی داشته باشند"</string>
    <string name="work_apps_paused_content_description" msgid="5149623040804051095">"برنامه‌های کاری خاموش است. برنامه‌های کاری نمی‌توانند برای شما اعلان ارسال کنند، از باتری استفاده کنند، یا به مکانتان دسترسی داشته باشند"</string>
    <string name="work_apps_paused_edu_banner" msgid="8872412121608402058">"برنامه‌های کاری دارای نشان هستند و سرپرست سیستم می‌تواند آن‌ها را ببیند."</string>
    <string name="work_apps_paused_edu_banner" msgid="8872412121608402058">"برنامه‌های کاری نشان‌دار هستند و سرپرست فناوری اطلاعات می‌تواند آن‌ها را ببیند."</string>
    <string name="work_apps_paused_edu_accept" msgid="6377476824357318532">"متوجه‌ام"</string>
    <string name="work_apps_pause_btn_text" msgid="4669288269140620646">"توقف موقت برنامه‌های کاری"</string>
    <string name="work_apps_enable_btn_text" msgid="1156432622148413741">"روشن کردن برنامه‌های کاری"</string>
+3 −1
Original line number Diff line number Diff line
@@ -2776,7 +2776,7 @@ public class Launcher extends StatefulActivity<LauncherState>
            View v = getFirstMatch(Collections.singletonList(activeRecyclerView),
                    preferredItem, packageAndUserAndApp);

            if (activeRecyclerView.getCurrentScrollY() > 0) {
            if (v != null && activeRecyclerView.getCurrentScrollY() > 0) {
                RectF locationBounds = new RectF();
                FloatingIconView.getLocationBoundsForView(this, v, false, locationBounds,
                        new Rect());
@@ -2804,6 +2804,7 @@ public class Launcher extends StatefulActivity<LauncherState>
     * @param containers List of ViewGroups to scan, in order of preference.
     * @param operators List of operators, in order starting from best matching operator.
     */
    @Nullable
    private static View getFirstMatch(Iterable<ViewGroup> containers,
            final Predicate<ItemInfo>... operators) {
        for (Predicate<ItemInfo> operator : operators) {
@@ -2821,6 +2822,7 @@ public class Launcher extends StatefulActivity<LauncherState>
     * Returns the first view matching the operator in the given ViewGroups, or null if none.
     * Forward iteration matters.
     */
    @Nullable
    private static View mapOverViewGroup(ViewGroup container, Predicate<ItemInfo> op) {
        final int itemCount = container.getChildCount();
        for (int itemIdx = 0; itemIdx < itemCount; itemIdx++) {
Loading