Commit Graph

541 Commits

Author SHA1 Message Date
Winson 4616347537 Fixing workspace state issue with option menu.
- Hitting a ctrl key combo will actually call onPrepareOptionsMenu(), which
  will change the state of the workspace incorrectly.  Instead, listen for
  the menu button, and only allow the user to enter overview mode if they
  are currently not dragging or in an overlay state (like all apps or
  widgets).
- Also making the overview buttons focusable so that they are focused when
  you go into overview mode.

Bug: 22483367
Change-Id: Ie6e9febd8a5a4e7ad25d745639d42d1c7b9801b4
2015-09-22 17:33:39 -07:00
Adam Cohen 9ae42fff6f am b3fff9d9: Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby
* commit 'b3fff9d98a3e3c886d4efa912d7ad6753dd7ec9c':
  Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide
2015-09-21 17:40:50 +00:00
Adam Cohen b3fff9d98a Merge "Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide" into ub-launcher3-burnaby 2015-09-21 17:34:05 +00:00
Adam Cohen 4b66bf3cff Cleanup some incorrect / noisey calls to CustomContentCallbacks#onShow / onHide
-> In some instances, onResume would incorrectly call onShow
-> When pressing Home from CustomContent, we'd get a sequence of onHide,
   onShow, and then onHide due to some deferred actions in onNewIntent.
   Got rid of the onShow.

issue 17629011

Change-Id: I9b4f2ef682f5a7060e68210866fa05452076e428
2015-09-18 17:32:00 -07:00
Tony Wickham 20bd2c10c1 am 6ed058cb: Wallpaper preview parallax matches the actual wallpaper\'s.
* commit '6ed058cb6bfbb5756721e0d7f4a80a1c08ee665c':
  Wallpaper preview parallax matches the actual wallpaper's.
2015-09-18 20:41:14 +00:00
Tony Wickham 6ed058cb6b Wallpaper preview parallax matches the actual wallpaper's.
Cherry picking the following changes from ub-launcher3-master:
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

Bug: 23568800
Change-Id: I343169b9fdc5ceaab3d4b39044627d78b7267868
(cherry picked from commit 3e776a87dc)
2015-09-18 13:09:01 -07:00
Winson Chung a3c9fb125c Merge "Requiring key chord to delete icons and folders on the workspace" into ub-launcher3-burnaby-polish 2015-09-18 18:49:25 +00:00
Winson fa56b3f2f1 Requiring key chord to delete icons and folders on the workspace
- Also fixing case where the all apps button to search for more apps
  was not focusable

Bug: 20639227
Change-Id: Ie4d9092e654d3cafc0eb346b3bb744ec3e295e92
2015-09-14 19:47:19 +00:00
Tony Wickham 8a511b9123 Merge "Wallpaper preview parallax matches the actual wallpaper's." into ub-launcher3-burnaby-polish 2015-09-14 18:39:56 +00:00
Winson c0b52fefbc Refactoring to ensure item deletion always removes from the DB.
- Routing the various places where we call through to delete from
  LauncherModel through Launcher, which will delegate the removal
  of the icon from the workspace, and properly handle the removal
  of all items and their contents from the db.

Bug: 23944119

Change-Id: I022fe2b3e79da16b5af87505c4362490b8422686
2015-09-10 14:55:17 -07:00
Tony Wickham 3e776a87dc Wallpaper preview parallax matches the actual wallpaper's.
Cherry picking the following changes from ub-launcher3-master:
Change-Id: I41c5bbbfdabfeb4e20d77e9b5804842a03211edf
Change-Id: I69afa3f8cc59c77e9c4c25e29e8db8c4beb87462
Change-Id: I82b7ba506d51ee4b3812af5fbdf95d3303b37aef
Change-Id: Id7c2b5483c5535d59be2f8a459ce7788e3c8318a

Bug: 23568800
Change-Id: I343169b9fdc5ceaab3d4b39044627d78b7267868
2015-09-10 11:56:54 -07:00
Tony Wickham 6b7653d37f Long-clicking workspace overlay buttons does the same thing as clicking them.
Bug: 15000525
Change-Id: I4123863de888989ad6171cb43001c3ad86c19edb
(cherry picked from commit c75917f129)
2015-09-04 21:53:17 +00:00
Ivan Lee f96b1ad27f am 667d6888: Revert workaround for move to default screen on home intent.
* commit '667d6888f4a7f1a6267c1968f22fdb8ff3af8d34':
  Revert workaround for move to default screen on home intent.
2015-09-04 17:14:46 +00:00
Winson 5c6bdbbc27 Fixing regression, reset AllApps when the screen turns off.
- Now that we are debouncing the workspace state, we were no longer resetting
  the all apps view when the screen turns off when the user is already on the
  workspace.

Bug: 23759455
Change-Id: I996b595945de96ae6ff2344349027d4722921984
2015-09-03 12:15:32 -07:00
Ivan Lee 667d6888f4 Revert workaround for move to default screen on home intent.
BUG=23556755

Change-Id: Ia268a58389b90fd0503e474f02f33a312c051c0e
2015-09-03 10:16:07 -06:00
Winson Chung 1b247d9f37 Merge "Adding workaround for regression caused by ag/752175" into ub-launcher3-burnaby 2015-08-31 18:40:41 +00:00
Winson 16615f29f6 Adding workaround for regression caused by ag/752175
Change-Id: I92617c88f17a5827454e147f93d822975587d5b4
2015-08-31 11:32:38 -07:00
Sunny Goyal ebfae6e266 Revert "Adding viewId for the QSB"
Using QSB widget id from xml

This reverts commit 9956859139.

Change-Id: I33c48cf074f2dc1cf509c2d9f1f19b40b91f6a22
2015-08-27 15:32:05 -07:00
Sunny Goyal 9956859139 Adding viewId for the QSB
Change-Id: I4ad6bc8c0d94e60a4d354dfc29f456ca561fc500
2015-08-27 13:48:30 -07:00
Sunny Goyal 22aa3813f8 Pending bind callbacks should be cleared before starting the loader,
similar to startBinding

Bug: 23310446
Bug: 19422965
Bug: 23304651
Change-Id: I4821b4c0c7796c33ad9691b6735235a220fa635a
2015-08-27 09:54:07 -07:00
Sunny Goyal 639e906a0f Fixing work folder addition logic
> Showing animation when folder is added
  > Not showing animation while cling is visible
  > Checking is loader completed from UI thread
  > Running bind complete runnables when bind is completed

Bug: 21772992
Bug: 23181585
Change-Id: I50742850da8294a877478ce02b107a026f68b563
2015-08-20 11:25:02 -07:00
Winson Chung 1cd32a2144 Merge "Deferring the move to the default screen until after we callback to the callbacks." into ub-launcher3-burnaby 2015-08-19 19:19:26 +00:00
Winson 15f8b17adb Deferring the move to the default screen until after we callback to the callbacks.
- Since move to default screen starts the scroller immediately, any delays in
  handling onNewIntent and onHomeIntent in the callbacks will cause the scroller
  to skip frames the next time it updates.  This change will defer updating the
  page to the default screen until after onNewIntent is called back (and all its
  posted runnables).

Bug: 22929080
Change-Id: Ibab6106938721702d4da23faaca99039861e10dc
2015-08-19 12:13:20 -07:00
Sunny Goyal 9fc953b94d Version code cleanup
> Renaming Lmp to Lollipop
  > Lollipop_MR1 instead of directly using 22
  > Using M APIs directly instead of reflection

Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
2015-08-17 13:26:01 -07:00
Sunny Goyal 84b4adc3fb Disabling auto restore of widgets.
> Always show "Setup" button for a widget which has a config activity.

Bug: 23155863
Change-Id: I60683889e76be830a76ac1245e079574aaf0ad10
2015-08-14 11:42:01 -07:00
Winson Chung a1ee659e74 Merge "Adding market search." into ub-launcher3-burnaby 2015-08-10 22:55:40 +00:00
Winson Chung bedf9232eb Adding market search.
Change-Id: Id41615653cd4fa76213add4595418ad0cc6e7852
2015-08-06 12:22:38 -07:00
Winson a1f79d3e16 Fixing invisible search bar
- We used to rely on the state transition to inflate the search
  widget after the permission to bind widgets was granted, which
  is fragile.  Now we try and inflate the search widget after
  user grants the permission if necessary.

Bug: 22515084
Bug: 22980143
Change-Id: Id111d263bc8a864e0fa652cfd0e07e66ec690fe7
2015-08-05 21:18:53 +00:00
Winson Chung 0ad3306684 Merge "Refactoring search bar animations." into ub-launcher3-burnaby 2015-08-05 19:21:03 +00:00
Winson Chung 006ee269ba Refactoring search bar animations.
- This refactoring ensures that LauncherStateTransition does not
  do its own animation on the QSB, and that all animations to the
  SearchDropTargetBar go through its own animators.

Bug: 22515084

Change-Id: Ia7d13c44d861eac7517076b52a9651a90911ed0a
2015-08-05 12:04:06 -07:00
Sunny Goyal 317698bd01 Loading high resolution icons for first 3 items in a folder
> Sometimes a folder gets rearranged, without updating the model,
   like when an app in uninstalled. In that case, we need to update
   the icons for folder items, which were previously hidden

Bug: 22813360
Change-Id: I99754911c969bf2153efb2948c226c1c69219b88
2015-08-04 11:05:15 -07:00
Sunny Goyal 3f7550c1ed Merge "Calculating widget minSpans and spans statically/independent of orientation > Filtering the widget list and excluding widgets which dont fit the grid > setting minSpans for the widget item when binding." into ub-launcher3-burnaby 2015-08-04 17:27:48 +00:00
Sunny Goyal 233ee964a9 Calculating widget minSpans and spans statically/independent of orientation
> Filtering the widget list and excluding widgets which dont fit the grid
 > setting minSpans for the widget item when binding.

Bug: 22541314
Bug: 22559137
Change-Id: Ieda48b56c95bee0c7ec71dd691af7e23e2d43db6
2015-08-03 16:39:49 -07:00
Winson Chung 88fa741e50 Remove handler for searchables changed broadcast.
Bug: 22515084
2015-08-03 14:25:28 -07:00
Hyunyoung Song 98ff38aa48 Animation should start and finish on widgets button when opening/closing widget tray.
b/21301759

Change-Id: Ib0b9132d8709426598d95fc9f60d37752e05b711
2015-07-10 17:50:13 -07:00
Winson Chung 76648c58d5 Making long-press of AllApps to jump directly to search.
Bug: 22210146
Change-Id: Iacf28416d6e31233a68e3b41576a8860b4b72b88
2015-07-10 16:08:56 -07:00
Adam Cohen d98fff3055 Merge "Adding custom slide up activity transition for L MR1" into ub-launcher3-burnaby 2015-07-08 01:59:57 +00:00
Adam Cohen 947e02b638 Adding custom slide up activity transition for L MR1
issue 21402755

Change-Id: Id2542c0a3c38bd71aa407a3b0fe00fdee24e2f69
2015-07-07 18:52:09 -07:00
Sunny Goyal dd2e6dfc16 Updating onRequestPermissionsResult signature to public
Change-Id: Ie08caa55a195e9062006d13e86238cca827ef249
2015-07-07 10:57:57 -07:00
Sunny Goyal 8d59509f1a Using an empty error view for QSB
Bug: 21731323
Change-Id: I837b7bf9bac443cd2062ab2d4c24e081eb01732d
2015-07-06 12:22:39 -07:00
Dave Hawkey cb5f619770 am 79f25bed: Merge "Add LauncherCallbacks for requesting permissions on MNC" into ub-launcher3-almonte
* commit '79f25bedd2ed13613323b085b46b9b42aee21696':
  Add LauncherCallbacks for requesting permissions on MNC
2015-06-29 17:41:14 +00:00
Sunny Goyal a1d1bf3119 Allowing UserHandle to be passed in the intent when creating AppInfo
> Removing createShortcut with userHandle, as shortcuts can only be
for the primary user.

Bug: 22070517
Change-Id: Ifc58a76d0f1e0ab8f1943b46588cc19dd88bdda1
2015-06-26 13:51:11 -07:00
Dave Hawkey 3a43ed61cb Add LauncherCallbacks for requesting permissions on MNC
Change-Id: Ia8f704590e03e16db04c2f7acee1e79ce7334749
2015-06-26 10:27:47 -06:00
Hyunyoung Song 1a8a6e0baa Merge "Announce content desc of workspace immediately after unlocking the lock screen. b/22051420" into ub-launcher3-burnaby 2015-06-26 04:08:14 +00:00
Hyunyoung Song 166e6488e6 Announce content desc of workspace immediately after unlocking the lock screen.
b/22051420

Change-Id: I41ab93782383c04e0074d87632ebe8d884a8e208
2015-06-25 21:06:07 -07:00
Winson Chung ca0f7d7728 Merge "Exposing drag methods with user info." into ub-launcher3-burnaby 2015-06-25 20:19:49 +00:00
Winson Chung 5ffd51db0c Exposing drag methods with user info.
Change-Id: I974b67d23d3d29795c1c1d24e1ecf212b52e3912
2015-06-25 13:14:14 -07:00
Winson Chung 91c0595443 Ensuring that we always update the predicted apps set.
Change-Id: Ieecf019442dcf4af42463ed6cbc4cdcd19468dec
2015-06-25 19:24:24 +00:00
Winson Chung b1777447d9 Refactoring fast scroller.
- Fixing issue with fast scroller not fitting name width.
- Refactoring fast scrolling/scroll bar code out of base recycler view
- Adding animations to fast scroller to match design
- Smooth scrolling when jumping between app rows
- Fixing issue with fast scroller jumping when you first pick it up
- Fixing issue with wrong background paddings being used

Bug: 21874346
Bug: 22031923
Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
2015-06-23 14:24:15 -07:00
Winson Chung d3800208aa Merge "Moving predicted apps callbacks to use ComponentKey." into ub-launcher3-burnaby 2015-06-18 21:10:41 +00:00