Commit Graph

443 Commits

Author SHA1 Message Date
Sunny Goyal 067e5e0177 Merge "Removing some dead code in paged view" into ub-launcher3-burnaby 2015-05-07 17:19:37 +00:00
Winson Chung 83f59abc9c Explorations in dense grids for all apps.
- Adds sticky section headers
- Removing AppsListAdapter
- Adding search bar field
- Subtitle filtering

Bug: 20222023

Change-Id: I1eaef701b5d68f475615f09d86561eacc91c937f
2015-05-06 20:37:10 -07:00
Sunny Goyal 8e2133b2c2 Removing some dead code in paged view
> Removing fling to delete pages
> Removing delete drop target for pages
> Removing syncpages support (was used by paged all apps)

Change-Id: I0a35ae30da8c48a27aac341bbee9fb5623665902
2015-05-06 14:12:05 -07:00
Winson Chung bb785c6eb3 Ensuring we wait until resume before binding all apps.
Bug: 20759810
2015-05-05 10:05:08 -07:00
Winson Chung 2a53cb7a5e Merge "Launcher-side changes to support prediction bar." into ub-launcher3-burnaby 2015-05-05 00:36:02 +00:00
Hyunyoung Song 80068f518c Merge "WidgetTray performance improvement (less sorting): Part 1" into ub-launcher3-burnaby 2015-05-04 23:28:55 +00:00
Hyunyoung Song 8821ca9a6a WidgetTray performance improvement (less sorting): Part 1
- No longer return sorted list from the package manager since, the only
time the widget list requires to be sorted is when recycler view renders
them.
- Made getWidgetsAndShortcuts private to guarantee that widgets are
being loaded in the worker thread.

Change-Id: I2c35973c1226e831514380dd38fc2f88b1b91d02
2015-05-04 16:28:20 -07:00
Winson Chung cd99cd3ed6 Launcher-side changes to support prediction bar.
Change-Id: Ib9974ad8888ad87137c774f9f531fae9d56b899a
2015-05-04 14:45:54 -07:00
Sunny Goyal 957c13f032 Handling managed profile creation in the model as the activity
can get killed in the background.

Change-Id: I95f62cf268fe642c9a2bb4975eb92bf8e12d23a9
2015-05-01 13:02:20 -07:00
Sunny Goyal a911672f45 Simplifying add to workspace by not going through the worker thread
Change-Id: I3260786bee257aea93ade49e6fa18008232addbe
2015-04-29 14:58:17 -07:00
Sunny Goyal c525d80dcd Removing obsolete resources
Change-Id: I9a8d3d23e772a3ffc161ac97a5f08808aab79d5b
2015-04-29 11:18:27 -07:00
Hyunyoung Song f196394dee Merge "Add drop animation / Toast to widgettray" into ub-launcher3-burnaby 2015-04-24 19:48:52 +00:00
Sunny Goyal e2df0620c1 Adding LongArrayMap as a replacement for HashMap<Long, E>
Change-Id: I4710e6db69abcdbd897a8401fc8b980c09e2ffef
2015-04-24 12:35:29 -07:00
Sunny Goyal d33860f2cc Clearing all pending runnables when Launcher is destroyed.
Change-Id: I00596c11116b5579c1f013b268b6c0b5239f0aa7
2015-04-23 16:18:40 -07:00
Hyunyoung Song b99ff3e832 Add drop animation / Toast to widgettray
- show instruction toast on clicking the widget
- Add animation when widget drops on the workspace.
Added WidgetHostViewLoader to handle short press and assign widget
host view to enable animation

b/19897708

Change-Id: Iec36d72cb21bf09343d0beeb31a09bf8b0cb5e0d
2015-04-23 15:17:50 -07:00
Sunny Goyal 756adbc3e4 Fixing missing updates in package install sessions
> Ensure icon cache never returns null icon
> Enabling install shortuct receiver only after workspace has finished binding
> Making all the model changes for package installs on worker thread and only
posting the updaes on the UI
> Making shortcut exists check on the loaded items and not on the DB
> Explicitely using worker thread for PckageInstallListener
> Removing backward compatibility support from PackageInstallerCompat

Change-Id: I9592771b9670c1c1c84c8208cae8dafa7b393e65
2015-04-22 10:08:14 -07:00
Winson Chung dc61c4d414 Refactoring to single path for overview mode.
Change-Id: I590a813c6f031342d75c3a6c3e9c9afda1808f2e
2015-04-21 15:54:22 -07:00
Winson Chung 2826a401ed Fixing build. 2015-04-17 16:19:46 -07:00
Sunny Goyal fb9ca23928 Merge "Fixing drag-n-drop for folders in hotseat." into ub-launcher3-burnaby 2015-04-16 22:39:00 +00:00
Winson Chung 7e8ba7cfb9 Merge "Fixing regression in AllApps being aggressively dismissed after returning to Launcher." into ub-launcher3-burnaby 2015-04-16 19:44:33 +00:00
Sunny Goyal f406615354 Fixing drag-n-drop for folders in hotseat.
The current drag-n-drop model assums that when a folder is open
it completely covers the folderIcon and its not possible to drop
anything on the icon. But its not true when a folder is in the
hotseat.

> When DnD finishes revert folder to the normal state
> Ensure that only one folder is open at a time
> Prevent folder icon from moving when the folder is open

Bug: 13646281,14680549
Change-Id: I016a4c3f0d9b57c388eaa28f40df9e7b7bbab5fc
2015-04-15 17:12:04 -07:00
Hyunyoung Song 4e8fb91cf1 WidgetTray improvement
UI
- Fixing the issue of widget row not rendering
- Moved the resetting of previous bitmap to the start of onBind
instead of the onDetachedWindow.

Performance
- WidgetModel do not have to keep packageName list around.

Will com in immediate follow up CLs
- use lowRes widgets bitmap before fully loading the fullRes one.
- application icons are fully loaded in background thread.

b/19897708

Change-Id: I5b3b43a5c543a5135c395f90df32e66d57dc86e0
2015-04-13 15:58:30 -07:00
Winson Chung 75cc825f3f Fixing regression in AllApps being aggressively dismissed after returning to Launcher.
- Adding workaround to prevent the built-in search box from being focused when AllApps is shown again

Bug: 20143148
Change-Id: Id546d3e5fedc724d95e067d26115ee716ac1d626
2015-04-10 10:33:40 -07:00
Winson Chung 0f78572066 Initial changes to support a fixed all-apps layout.
- Dynamically update padding and background depending on fixed bounds and searchbar
- Fixes issue with drag layer bg getting clobbered when rotating launcher
- Tapping outside the bounds of all apps should close all apps
- Fixing typo causing widgets to not show in sw720dp devices

Bug: 20127840

Change-Id: I29c3f905bdee940f938ffe054f58434887073092
2015-04-09 13:18:31 -07:00
Hyunyoung Song 3f471440a8 WidgetTray revamp work
- RecyclerView is rendering
- Animation is connected
- Drag and drop is now handled
- UI tweaking: background, margins, more to come.
- Flicker and preview not loading issue:
  fixed height for the horizontal scroll view.
- Shortcuts are added
- Widget Preview loading should support shortPress for drop
- UI tweaks left: overlay of arrow when there are more items to scroll
- icons are added in the section header
- Sorting of widget sections and widget horizontal list
- Adding all the padding constants to dimen.xml file
- RecyclerView should only support one view type

For items to be addressed in follow up patches OR CLs,
TODO is added to the comment.

b/19897708

Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
2015-04-08 19:01:34 -07:00
Adam Cohen 2e52c90b3f resolved conflicts for merge of 68fdeaad to ub-launcher3-burnaby
Change-Id: I29aa5b37968b1ced81cdeb68a021db9310047252
2015-04-06 13:11:38 -07:00
Sunny Goyal 22235bcb40 Reinflating QBS on resume, if the widget orientation is not same as launcher orientation
Bug: 20044969
Change-Id: I5c285ddb09fc8b5d8444795eda64cd28486ab81d
2015-04-03 09:26:48 -07:00
Sunny Goyal 1d4a2df091 Removing ContentObserver from LauncherModel, and calling reload
whereever necessary

Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
2015-04-01 10:20:18 -07:00
Robert Kozikowski 7db312f37b am 67c30861: Adding Launcher3 callbacks for trimming memory.
* commit '67c3086163593db47e57b8cf4fcb034334374000':
  Adding Launcher3 callbacks for trimming memory.
2015-03-30 23:10:00 +00:00
Robert Kozikowski 67c3086163 Adding Launcher3 callbacks for trimming memory.
It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .

Plan after this CL:
- Generate drop CL with launcher3_drop.sh. Add empty metods to
 make code compile.
- Sync the cl/83222937 and hide the code behind the feature flag.

It was previously submitted in ag/628070 and reverted in ag/630423
due to GSA release schedule.

Change-Id: I56eee618b86d518d0afc362b6cf44c3bbec1f19c
2015-03-30 23:57:46 +01:00
Adam Cohen b272ca83f0 am b823ae4f: Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
* commit 'b823ae4fca345e051831732ff2760023ef6ec2c4':
  Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
2015-03-28 22:12:01 +00:00
Adam Cohen b823ae4fca Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
issue 19904413

Change-Id: Ie1b4a2b1331f6a707f8590cd0396138a20946658
2015-03-27 18:09:01 -07:00
Adam Cohen 5f2a098ef3 am 173f711e: Ensure that we capture all paths for starting activity for result
* commit '173f711e03dfce70d76c3b45f764a4f6b682a3b3':
  Ensure that we capture all paths for starting activity for result
2015-03-27 23:18:30 +00:00
Adam Cohen 173f711e03 Ensure that we capture all paths for starting activity for result
-> AppWidgetManagerCompatVL uses an IntentSender to launch the widget
   config activity (to handle the case of cross profile config activities)
-> Launcher was not overriding this method, and so not capturing the fact
   that we are waiting for a result.

issue 19723510

Change-Id: If5751e6d23d31c9f7b3b85f9464a93f935487cec
2015-03-27 22:19:38 +00:00
Winson Chung 3d9490ab95 Removing more code with API 21 dependencies.
Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
2015-03-24 18:02:01 -07:00
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
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
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
Robin Lee 2dd9f018ff Don't clobber widgets with the same component - DO NOT MERGE
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:16:34 +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
Hyunyoung Song fe1dcbf0c5 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 17:40:23 -07: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 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
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 64b3fcc9f7 Ensuring setQsbSearchBar is called whenever the QSB is created
> On launcher3 when the QSB is created for the first time after a
widget drop, it is not set in searchDropTarget and as a result
the "Remove" and "App Info" drop targets are not visible until
Launcher3 restarts and rebinds QSB

Change-Id: I599a9a18cc5d46af790b3145dae2eb385b32b20e
2015-03-04 13:59:21 -08:00
Sunny Goyal 9282059e44 Fixing wrong check to determine the drag source
> target it the drop target, i.e., the InfoDropTarget or DeleteDropTarget

Change-Id: If4a9f8eb72ee6afb4d80c7df6f0f2ada4bc35b22
2015-03-02 15:39:01 -08:00
Sunny Goyal 5b437d8957 Merge "Removed disableAllApps flag" into ub-launcher3-burnaby 2015-03-02 19:33:35 +00:00
Sunny Goyal c9acdd51c4 Removed disableAllApps flag
Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
2015-02-26 12:35:09 -08:00