No longer precalculating vacant cells
The previous way of finding empty cells for
widgets/icons etc. precalculated all the possible
empty spaces. Now that we have an 8x7 grid in
tablet, there are too many possible empty spaces.
Change-Id: Ib39113fdf755935bfad257843e1618c680ed9e72
-> Added a button to the top left of Launcher which switches
between landscape and portrait. For testing purposes only.
Change-Id: I01f8cfcf92c8ba7727eeba0e59a0b8ff055598fe
- fixed: pressing home sometimes left workspaces
in shrunken state
- fixed: position of delete zone (trash icon)
- fixed: workspace unshrink sometimes looked weird
when coming from all apps
- fixed: clicking power button and returning left
workspace in shrunken state
Change-Id: Ie974202926e6880ccda26ac9fe967fb587a9b7a3
- more robust unshrink animation
- catching a resource not found exception when
making widget preview
- added more missing copyright headers
- hiding customization drawer when long press on widget
- long-pressing on widget is temporarily always
springloaded to zoom in to workspace screen
Change-Id: I6c92877357e907d89840fecc4662f0700b96255b
This commit eliminates the notion of in-place rotations and a bunch of
associated complexities (including the notion of canonical coordinates).
Further, the number of x and y cells per workspace screen is now being stored
in a single location in the XML definition of Workspace. This fixes a couple
bugs where incorrect values were being used. Finally, eliminated the notion of
"shortAxis" and "longAxis" in terms of padding and cell count. These have been
translated to corresponding x and y axis values.
Change-Id: I30cfed66f82d739355b3f01730b28b6c0437989c
- configure button now has a pressed state (as
do the other two)
- also added a cast to getX() from float->int
because of changes in the view property code
Change-Id: I57dc6e44838f4f4354f8977a3b542e93384b3d7d
- icons in the customization drawer are now much
more tightly spaced, and no longer use the
default gallery styling
- wrapped some >100 char lines
- removed "Applications" from the shortcuts
customization drawer
- fixed bug where Workspace.shrinkToBottom() was
not always called in showAllApps
- added logic to defer call to
Workspace.shrinkToBottom() after first layout
call (necessary because shrinkToBottom relies
on getWidth() working properly)
- added ability to Workspace.shrinkToBottom()
without animation
Change-Id: I966141a60b6b014cf97e83b4d45725b41b16e55d
- had to disable touch event swallowing in workspace in X-Large mode to get this to work
- also changed default screen in XLarge mode to 2 (the middle one)
- fix bug where calling unshrink on initialization was setting all the screens' x coordinate to 0
- fix bug where mScrollX was not synched to the proper value for the mCurrentScreen it was on
- Shrinking workspace view in All Apps
- Added vertical margin for workspace screen thumnbnails
- Fixed bugs in a few of the Launcher state transitions (e.g. customization to all apps)
Change-Id: I9ad1c8861585d78fdb2e3bc986a614526b3cfe5f
- added a shrink/fade animation on home screen when going into customization mode
- made items in the customization drawer larger
Change-Id: Iddbaf14aa5b1504fe94966971a1ab95c00f24331
Merge commit '2d86dfec5797bfd4fba78562032c14bd9b6cfa7a'
* commit '2d86dfec5797bfd4fba78562032c14bd9b6cfa7a':
Fix launcher updating when all of an app's activities disappear.
- add a temporary new zoom animation for all apps
- modify AllApps2D to allow it to be transparent
- other changes to dismiss the customization drawer when appropriate
Change-Id: I5660ab77f256ded299c1721c589983a1b30d56a4