diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-22 01:37:47 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-04-22 01:37:47 +0000 |
commit | 3336f0f91f679ce26074219abf566e3ee8256d3a (patch) | |
tree | 8b73003c1cec65d9c37510292d3dd10881b83d40 | |
parent | 86f3f52b7f4a4992e753e52674e78dd730854440 (diff) | |
parent | 9b5d0fd7d30f0da4a0eb50a18c3878e71db7420a (diff) | |
download | Launcher3-android13-qpr3-s4-release.tar.gz |
Merge cherrypicks of ['googleplex-android-review.googlesource.com/22750962'] into tm-qpr3-release.android-13.0.0_r62android-13.0.0_r61android-13.0.0_r56android-13.0.0_r54android-13.0.0_r53android-13.0.0_r52android-13.0.0_r51android-13.0.0_r50android13-qpr3-s4-releaseandroid13-qpr3-s3-releaseandroid13-qpr3-s2-releaseandroid13-qpr3-s1-release
Change-Id: I0163b9389517a84f7d108d0d129b9419a2f14cee
3 files changed, 13 insertions, 0 deletions
diff --git a/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java b/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java index 243ed5c2ee..0a72f3682d 100644 --- a/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java +++ b/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java @@ -1171,6 +1171,11 @@ public class QuickstepLauncher extends Launcher { } @Override + public void tryClearAccessibilityFocus(View view) { + view.clearAccessibilityFocus(); + } + + @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); diff --git a/src/com/android/launcher3/BaseActivity.java b/src/com/android/launcher3/BaseActivity.java index 855983fdad..05a6452d2e 100644 --- a/src/com/android/launcher3/BaseActivity.java +++ b/src/com/android/launcher3/BaseActivity.java @@ -29,6 +29,7 @@ import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; import android.util.Log; +import android.view.View; import android.window.OnBackInvokedDispatcher; import androidx.annotation.IntDef; @@ -362,6 +363,12 @@ public abstract class BaseActivity extends Activity implements ActivityContext { return (mForceInvisible & mask) != 0; } + /** + * Attempts to clear accessibility focus on {@param view}. + */ + public void tryClearAccessibilityFocus(View view) { + } + public interface MultiWindowModeChangedListener { void onMultiWindowModeChanged(boolean isInMultiWindowMode); } diff --git a/src/com/android/launcher3/popup/PopupContainerWithArrow.java b/src/com/android/launcher3/popup/PopupContainerWithArrow.java index 3f75eccea0..1bd329e5d4 100644 --- a/src/com/android/launcher3/popup/PopupContainerWithArrow.java +++ b/src/com/android/launcher3/popup/PopupContainerWithArrow.java @@ -238,6 +238,7 @@ public class PopupContainerWithArrow<T extends Context & ActivityContext> deepShortcutCount, popupDataProvider.getNotificationKeysForItem(item), systemShortcuts); + launcher.tryClearAccessibilityFocus(icon); } launcher.refreshAndBindWidgetsForPackageUser(PackageUserKey.fromItemInfo(item)); container.requestFocus(); |