mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Marks ScrimView unimportant for accessibility when Widgets screen is opened.
This prevents it from holding focus while the Widgets screen is visible (after using Widgets action from the All Apps caret thingy). Test: Manually followed steps provided in bug, and issue not seen after this change. Fixes: 139918680 Change-Id: I280ac97fb7ff9fa67f1c6a1ce9cdfa9e451231eb
This commit is contained in:
@@ -153,15 +153,15 @@ public abstract class AbstractSlideInView extends AbstractFloatingView
|
||||
}
|
||||
|
||||
protected void handleClose(boolean animate, long defaultDuration) {
|
||||
if (mIsOpen && !animate) {
|
||||
if (!mIsOpen) {
|
||||
return;
|
||||
}
|
||||
if (!animate) {
|
||||
mOpenCloseAnimator.cancel();
|
||||
setTranslationShift(TRANSLATION_SHIFT_CLOSED);
|
||||
onCloseComplete();
|
||||
return;
|
||||
}
|
||||
if (!mIsOpen) {
|
||||
return;
|
||||
}
|
||||
mOpenCloseAnimator.setValues(
|
||||
PropertyValuesHolder.ofFloat(TRANSLATION_SHIFT, TRANSLATION_SHIFT_CLOSED));
|
||||
mOpenCloseAnimator.addListener(new AnimatorListenerAdapter() {
|
||||
|
||||
Reference in New Issue
Block a user