OSDN Git Service

Fixing non-scrolling of workspace view after opening/closing AllApps vew.
authorVadim Tryshev <vadimt@google.com>
Fri, 15 May 2015 15:48:11 +0000 (08:48 -0700)
committerVadim Tryshev <vadimt@google.com>
Thu, 28 May 2015 21:33:36 +0000 (14:33 -0700)
commit7af0d4474fe811b66db67f358ee0b5ef84b97a18
tree46229bab6b657ea37b720792e11660b2c033cdc5
parentbbcf5ac7aa73a3ce07215d77a0b496cf7fb00f29
Fixing non-scrolling of workspace view after opening/closing AllApps vew.
The reason for non-scrolling was excluding the pages view from the
accessibility hierarchy by marking it as non-important. So, I just
removed the code manipulating [non]importance of the PagedView.

However, this would make the PagesView accessibility-focusable, which is
undesirable. It becomes focusable because it supports long clicks in "normal"
mode. Since it doesn't support accessibility long clicks (i.e. Overview mode is
fetched NOT via accessibility long-click), I just disabled accessibility
long-clickability, which made PageView non-focusable, and it started to behave
correctly.

Bug: 21281859
Change-Id: I7ab01e5f39cb37c456c961199c27458c9bda1c3d
src/com/android/launcher3/PagedView.java
src/com/android/launcher3/Workspace.java