Commit Graph

3938 Commits

Author SHA1 Message Date
Sunny Goyal 6a1e95a3df Removing all dependencies of launcher code on wallpaper-picker
> WallpaperPicker can still depend on launcher code, but not the
other way round.

Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
2015-03-20 18:16:58 -07:00
Sunny Goyal 71c3baf5eb Merge "Removing unnecessary intent-filter construction" into ub-launcher3-burnaby 2015-03-20 19:29:12 +00:00
Adam Cohen 091440a9cb Reducing method count by eliminating synthetic accessors
Elimates 304 methods based on dex analysis

The java compiler generates sythetic accessor methods for all private
fields, methods and contructors accessed from inner classes. By marking them
package-private and @Thunk instead, sythentic accessor methods are no
longer needeed. These annotated elements should be treated as private.

Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
2015-03-20 11:15:54 -07:00
Sunny Goyal f846b9054c Merge "Removing unused logging" into ub-launcher3-burnaby 2015-03-20 01:36:07 +00:00
Robin Lee 26ace12135 Don't clobber widgets with the same component.
By not storing them in a HashMap keyed against ComponentName (which is
almost guaranteed to conflict with other widgets when managed profiles
are in play).

Bug: 19444068
Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
2015-03-19 21:23:13 +00:00
Sunny Goyal 0f93d5e718 Merge "Cleaning up widget preview loader" into ub-launcher3-burnaby 2015-03-19 21:05:17 +00:00
Sunny Goyal 27595796b3 Removing unnecessary intent-filter construction
Change-Id: I1f831ef48ed69381ad260f7d541f39a049c498a5
2015-03-19 13:19:21 -07:00
Sunny Goyal 15b480f234 Removing unused logging
> We store some local logs which are never propagated to the
server and cause unnecessary file-io during app launch

Change-Id: I2b41c3af182de2a87f38ad88f3bae9d250574c26
2015-03-19 10:21:53 -07:00
Adam Cohen 57dadda844 Merge "Make sure we set the QSB bar on the SearchDropTargetBar" into ub-launcher3-burnaby 2015-03-19 05:33:16 +00:00
Adam Cohen b0df1b0e1a Make sure we set the QSB bar on the SearchDropTargetBar
Change-Id: If106bae15b3d628d6385711bcb8059acd17d6147
2015-03-18 22:22:03 -07:00
Sunny Goyal 4cad7538c9 Cleaning up widget preview loader
> Removing unnecessary canvas cache
> Removing unnecessary new bitmap creation

Change-Id: Ic9f45c5a204ea4d32dbf93c21a6a7fd6baea4b51
2015-03-18 22:20:20 -07:00
Sunny Goyal 6b6ffbe907 Merge "Invalidating sorted list after the item has been added" into ub-launcher3-burnaby 2015-03-18 18:13:11 +00:00
Sunny Goyal 2e688a8cc2 Invalidating sorted list after the item has been added
Bug: 19815825
Change-Id: If10d19d41a2400b5a7350e40fa6116494dc9c5a6
2015-03-18 10:23:39 -07:00
Sunny Goyal 8758ea050a Using MainThreadExecuter instead of View.post
Change-Id: Ie7ba88bd3bb412d998ecb51095cbaa74b3b39c10
2015-03-18 10:09:10 -07:00
Sunny Goyal 34b6527cef Lazy loading high res icons
> Loading low-res icons for icons which are not visible on
the homescreen.

Change-Id: I8ac7bf09f6030ed554cb60a4cd402f3f36ffe12b
2015-03-17 15:05:23 -07:00
Sunny Goyal 5d85c44fd8 Adding sort switch in FolderPagedView
> Adding options column in DB to store generation purpose flags
> Storing isSorted flag in FolderInfo
> Adding a switch for A-Z sorting (only visible if pageCount > 1)
> When in sorted mode, spring-load snaps to the target location for 1.5 seconds

Change-Id: I8c7c778d2cc3ccbd35a2890a1a705e1c1a7e9a66
2015-03-17 14:49:38 -07:00
Hyunyoung Song ce53e6dd12 Merge "key event focus logic should support large tablets" into ub-launcher3-burnaby 2015-03-17 18:36:06 +00:00
Hyunyoung Song 18bfaafd3d key event focus logic should support large tablets
TL;DR;; On smaller tablets, landscape = vertical hotseat bar, and
portrait = horizontal hotseat bar. However, in larger tablets, hotseat bar is
always horizontal. This is now correctly handled using DeviceProfile.isVerticalBar
method.

b/19732584

Change-Id: I1035c89b4685be12dbc863f8a1465047a5fec6a6
2015-03-17 11:32:21 -07:00
Winson Chung 979853943c Merge "Tweaking the apps list fast scroller." into ub-launcher3-burnaby 2015-03-16 23:48:34 +00:00
Winson Chung aa2ab254ea Tweaking the apps list fast scroller.
- Making the view span the full width so that you can grab the scroller on the edge of the screen.
- Offsetting the fast-scoll popup so that you can see it as you scrub.

Change-Id: If1b1934bbeac0660d829cfc29c9e588df927c5e5
2015-03-16 15:20:39 -07:00
Sunny Goyal b4cd42a1df Extracting out CacheKey to a separate class
Change-Id: Ifdd7cc79668b34298e3f788ee684080cecb86c3e
2015-03-16 14:54:50 -07:00
Winson Chung c13b994c04 Merge "Minor changes to apps view." into ub-launcher3-burnaby 2015-03-13 18:50:18 +00:00
Winson Chung 888b3a10bf Minor changes to apps view.
- Ensuring that apps with numbers and in other locals have a section header.
- Adding an empty state when there are no apps with the current filter
- Removing unnecessary call to check AppInfos

Change-Id: I9dc541c680475b98745fa257ad7e4af06e3966c9
2015-03-13 11:48:45 -07:00
Sunny Goyal 3739158bd7 Merge "Scrolling folder during drag-drop" into ub-launcher3-burnaby 2015-03-13 16:29:53 +00:00
Sunny Goyal 4846193300 Scrolling folder during drag-drop
> Show a scroll hint (partial scroll) when the icon is over the last icon (some fraction)
> Automatically scroll the folder if the user stays in that position for some time
> Rearrance the icons on the new page only after the scroll animaiton is complete

Change-Id: I7a2dd85ab23802d647801686df069975d197cd39
2015-03-13 09:20:00 -07:00
Winson Chung e425d93674 Merge "Adding app grid layout with fastscroller." into ub-launcher3-burnaby 2015-03-13 02:01:41 +00:00
Winson Chung 93f98eaf18 Adding app grid layout with fastscroller.
- Adding filtering and using alphabetic index for app grouping.

Change-Id: I745b644fa8f90f5ff24a8642ac377ef1c65d8aff
2015-03-12 18:57:02 -07:00
Sunny Goyal d3570ec81c Merge "Refactoring some logic in FolderPagedView" into ub-launcher3-burnaby 2015-03-12 20:57:15 +00:00
Hyunyoung Song 70a48befe4 Fix widget refresh issue on package install/uninstall
Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java

b/19658229

Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
2015-03-11 16:36:52 -07:00
Winson Chung fc52a8fb03 Merge "Initial changes to break out AllApps into its own view." into ub-launcher3-burnaby 2015-03-11 01:31:30 +00:00
Sunny Goyal d0dfc83e34 Merge "Adding a dummy method for fix GSA compilation issues" into ub-launcher3-burnaby 2015-03-11 01:17:42 +00:00
Sunny Goyal c491835804 Adding a dummy method for fix GSA compilation issues
Change-Id: Iec0ab4faf695b9efd3efd3d3b83d729f430a59eb
2015-03-10 18:15:48 -07:00
Winson Chung b745afbdd7 Initial changes to break out AllApps into its own view.
- Moves launcher state-transition code into its own class
- Moves all-apps related code into a separate view/set of classes
- Implements a basic list view for all apps

Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
2015-03-10 18:14:22 -07:00
Sunny Goyal 434e667b5b Merge "Ensuring setQsbSearchBar is called whenever the QSB is created" into ub-launcher3-burnaby 2015-03-10 21:02:46 +00:00
Sunny Goyal e4766230ff Refactoring some logic in FolderPagedView
> Using a common paths for rearranging items, creating new icon
and creating new page

Change-Id: I85097c7e47b42b79162a8a553a971e44dbc7af3c
2015-03-10 14:01:38 -07:00
Sunny Goyal 28ad58478e Merge "Adding a scrollable folder content implementation" into ub-launcher3-burnaby 2015-03-09 21:50:03 +00:00
Sunny Goyal 290800b5b7 Adding a scrollable folder content implementation
> Size is restricted to 3x3 for now
> Drag-drop across page s not implemented yet
> A-Z sorting is not implemented yet

Change-Id: I84328caa6ad910d1edeeac6f3a7fb61b7292ea7e
2015-03-09 14:21:43 -07:00
Adam Cohen ec3682b564 Merge "Enabling accessible drag and drop" into ub-launcher3-burnaby 2015-03-09 19:47:33 +00:00
Adam Cohen c9735cff2e Enabling accessible drag and drop
-> Using the context menu, and a new two stage system, this allows
   users to curate icons and widgets on the workspace
-> Move icons / widgets to any empty cell on any existing screen, or
   create a new screen (appended to the right, as with regular drag
   and drop)
-> Move icons into existing folders
-> Create folders by moving an icon onto another icon
-> Also added confirmations for these and some existing accessibility actions

Limitations:
-> Currently, no support for drag and drop in folders
-> Considering moving the drag view so it doesn't occlude any
   content (in particular, when user changes pages)
-> In this mode, accessibility framework seems to have
   problems with the next / prev operations

Bug: 18482913

Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
2015-03-09 11:29:28 -07:00
Sunny Goyal d5bf4ab5f7 Merge "Refactoring max id logic to a common method" into ub-launcher3-burnaby 2015-03-09 17:08:20 +00:00
Sunny Goyal 1c0e633bd5 Handling getLastItem when the folder is closed
Change-Id: I6afebd7c0a92edb25e3658e7f860244d7457c852
2015-03-05 18:03:08 -08:00
Sunny Goyal ee995106d8 Some parameter cleanup
Change-Id: Iedc7c97bd9c513ff046f7bf64a6e13f1fc8e8b54
2015-03-05 16:27:37 -08:00
Sunny Goyal cd851f1813 Merge "Using left and top instead of getLocationInWindow for getting target view position" into ub-launcher3-burnaby 2015-03-05 23:47:55 +00:00
Sunny Goyal fd3ea4f20b Merge "Setting hotseat padding to the container for symmetry" into ub-launcher3-burnaby 2015-03-05 23:46:33 +00:00
Sunny Goyal a39b82e2eb Using left and top instead of getLocationInWindow for getting target view position
Change-Id: I1c295b8fd8be46ed9f0b12d7019572d9adc4af54
2015-03-05 15:45:02 -08:00
Sunny Goyal 82e861d71a Using unique view id for each item in folder
Change-Id: I413de3db94dbab54a9c1e5799286ac78a1ae5102
2015-03-05 14:56:29 -08:00
Sunny Goyal d81992b6e7 Setting hotseat padding to the container for symmetry
Change-Id: I953aa4e8d729db88dae29f51af28c6cf01891bd6
2015-03-05 14:00:18 -08:00
Sunny Goyal 49b39d667d Merge "Extracting a common interface out of FolderCellLayout" into ub-launcher3-burnaby 2015-03-05 19:24:51 +00:00
Sunny Goyal 95deb3a57c Fixing icon disappearing on dropping to workspace
> It was created in ag/645900

Change-Id: I31ca5bf9763292517fa5ee3ccd867897bca45bad
2015-03-05 10:27:01 -08:00
Sunny Goyal bc753359f8 Extracting a common interface out of FolderCellLayout
Change-Id: Ia94a75ac232b8b425c8befdf2e4f064678531505
2015-03-05 10:14:22 -08:00