Merge "Announce “Desktop” when focusing on the desktop mode in Overview" into main

This commit is contained in:
Vinay Joglekar
2024-08-13 16:24:27 +00:00
committed by Android (Google) Code Review
3 changed files with 13 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?><!--
Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,20 +14,19 @@
limitations under the License.
-->
<com.android.quickstep.views.DesktopTaskView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
<com.android.quickstep.views.DesktopTaskView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res-auto"
android:id="@+id/task_view_desktop"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="true"
android:clipToPadding="true"
android:contentDescription="@string/recent_task_desktop"
android:defaultFocusHighlightEnabled="false"
android:focusable="true"
android:padding="0.1dp"
launcher:focusBorderColor="?attr/materialColorOutline"
launcher:hoverBorderColor="?attr/materialColorPrimary"
android:clipToPadding="true"
android:padding="0.1dp">
launcher:hoverBorderColor="?attr/materialColorPrimary">
<!-- Setting a padding of 0.1 dp since android:clipToPadding needs a non-zero value for
padding to work-->
<View
@@ -38,8 +36,8 @@
<ViewStub
android:id="@+id/icon"
android:inflatedId="@id/icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
android:inflatedId="@id/icon" />
</com.android.quickstep.views.DesktopTaskView>

View File

@@ -26,9 +26,12 @@
<string name="recent_task_option_pin">Pin</string>
<!-- Title for an option to enter freeform mode for a given app -->
<string name="recent_task_option_freeform">Freeform</string>
<!-- Title for an option to enter desktop windowing mode for a given app -->
<!-- Title and content description for an option to enter desktop windowing mode for a given app -->
<string name="recent_task_option_desktop">Desktop</string>
<!-- Title and content description for Desktop tile in Recents screen that contains apps opened inside desktop windowing mode [CHAR LIMIT=NONE] -->
<string name="recent_task_desktop">Desktop</string>
<!-- Recents: The empty recents string. [CHAR LIMIT=NONE] -->
<string name="recents_empty_message">No recent items</string>

View File

@@ -94,7 +94,7 @@ class DesktopTaskView @JvmOverloads constructor(context: Context, attrs: Attribu
context.theme
)
)
setText(resources.getText(R.string.recent_task_option_desktop))
setText(resources.getText(R.string.recent_task_desktop))
}
childCountAtInflation = childCount
}