Commit Graph

9925 Commits

Author SHA1 Message Date
Sunny Goyal bcbc2ec2cd Merge "Removing call to isButtonPressed as its only Lollipop and above" into ub-launcher3-burnaby 2015-08-24 17:15:01 +00:00
Sunny Goyal dd306188a6 Updating theme to use the light theme by default, instead of wallpaper theme
> This allows us to use all the goodness of material theme
  > Cursor in folder edit text is no longer 1px wide

Change-Id: I705f5472ff71969ae45747dd127a8ba5253df44d
2015-08-21 10:03:15 -07:00
Sunny Goyal 93adff28ed Merge "Using the usermanager api to get creation time" into ub-launcher3-burnaby 2015-08-21 16:41:50 +00:00
Sunny Goyal 830b5e08ef Updating the target sdk to launcher
Change-Id: Icf8e22f6ceb57dcd4e101b8b1d3ae86c52d12b30
2015-08-21 09:26:10 -07:00
Sunny Goyal ad0c2f28ce Using the usermanager api to get creation time
Bug: 22539048
Change-Id: I17647f2456434ca66a9778300e1a2910cec171d4
2015-08-21 09:24:01 -07:00
Winson 81c5f7e397 Fixing issue with search bar not being visible.
- If you queue up two SearchBarDropTarget state transitions one right after
  another, the second animation will skip (since the values haven't started
  animating yet) and the first animation will complete instead, leaving the
  visibility of the search and drop target bars at odds with the current
  bar state.
- Instead, we should cancel all existing animators first, such that if we
  are already in the final state, no animations will run, and the correct
  bars will be visibile.

Bug: 23201830
Change-Id: I1f8e802821ef2b4904a3efa7edbea6ae615479b9
2015-08-20 22:29:49 +00:00
Winson 6779595bec Updating the scrollbar to make the fastscroller more visible.
Bug: 20035978
Change-Id: I56a865262cd07e6af11b4374a7e6354710116dcd
2015-08-20 19:51:08 +00:00
Winson Chung a67cce2cb3 Merge "Tweaking fast scroller to follow touch closer." into ub-launcher3-burnaby 2015-08-20 19:26:00 +00:00
Winson d2eb49e4c3 Tweaking fast scroller to follow touch closer.
- Issue: The fast scroller currently does not follow the touch input
  because fundamentally, the fixed scrollbar height and the mapping
  of the scroll space to the scrollbar space is fundamentally incompatible.
- This CL changes the fast scroller to allow it to detach when the user
  fast-scrolls, then re-attaches after the user scrolls the screen and
  the current scroll position for the scrollbar picks up the thumb position.
- Since the scroll position and the fast scroller thumb is now detached,
  we can change the distribution of the fast scroll letters to make it
  independent of the rows for each section and instead uniformly distribute
  it along the scrollbar, which allows for more stability.
- There are edge cases where this fails, especially when there are few
  apps, which we can investigate further.
  
Bug: 20035978

Change-Id: I8322f862107e6f330deff692885233706564bffd
2015-08-20 19:25:48 +00:00
Sunny Goyal 63aa46531a Merge "Fixing empty screen created at the end, even when dragging the last item on the last screen." into ub-launcher3-burnaby 2015-08-19 21:08:10 +00: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 7c3cccf427 Fixing empty screen created at the end, even when dragging the last item on the last screen.
Change-Id: If0d4faf0ca15e71facb6ed2fd81ed6a589527836
2015-08-18 18:49:08 -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 522142af51 Removing call to isButtonPressed as its only Lollipop and above
Change-Id: I0d70befa25baf4864303833111652dbf1d19daa5
2015-08-17 13:04:40 -07:00
Sunny Goyal b62a976346 Merge "Updating the UI for the pending widget view" into ub-launcher3-burnaby 2015-08-17 18:25:38 +00:00
Sunny Goyal ac36643be1 Updating the UI for the pending widget view
Bug: 23183034
Change-Id: I2b3f6f765a51edf75e666186650bbd3cf7b66a7a
2015-08-17 11:16:31 -07:00
Geoff Mendal 13da3efb7a Import translations. DO NOT MERGE
Change-Id: Iedffa6e0a67907f0d86dfaf9b9863c4580cc3cf5
Auto-generated-cl: translation import
2015-08-17 07:09:24 -07:00
Sunny Goyal d21f9404da Merge "Disabling auto restore of widgets. > Always show "Setup" button for a widget which has a config activity." into ub-launcher3-burnaby 2015-08-14 19:23:57 +00: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
Sunny Goyal d468ee9091 Merge "Reloading launcher whenever there is an external update to contentprovider, irrespective of the uri" into ub-launcher3-burnaby 2015-08-13 23:48:04 +00:00
Winson 97b0d08d92 Refactoring to ExtendedEditText. 2015-08-13 15:58:51 -07:00
Sunny Goyal d106418dee Reloading launcher whenever there is an external update to contentprovider, irrespective of the uri
Change-Id: If1a06da57171be30adb74f09ac256a8b03ab8549
2015-08-13 14:09:43 -07:00
Sunny Goyal 81056da1de Merge "Refreshing widget list when a package containing a widget changes" into ub-launcher3-burnaby 2015-08-13 20:05:11 +00:00
Sunny Goyal f29471c751 Merge "Ensure that crop view is loaded before applying a wallpaper" into ub-launcher3-burnaby 2015-08-12 23:58:05 +00:00
Sunny Goyal 79a640ec35 Ensure that crop view is loaded before applying a wallpaper
Bug: 22293299
Change-Id: I64d5268cc263bbb6595a0b28bdd5ec73d540da41
2015-08-12 15:28:33 -07:00
Vadim Tryshev 56c3248341 Merge "Fixing crash upon cancellation of an accessible drag." into ub-launcher3-burnaby 2015-08-12 17:37:15 +00:00
Geoff Mendal a09130b307 Import translations. DO NOT MERGE
Change-Id: I6b0d7c6db67ef4de9a6ee0b7752cccf070223df4
Auto-generated-cl: translation import
2015-08-12 06:52:24 -07:00
Sunny Goyal 2d648b057f Refreshing widget list when a package containing a widget changes
Bug: 20698931
Change-Id: I50bafac1fc0a855edb1ace633a8a6f87a5c3040e
2015-08-11 21:25:19 -07:00
Vadim Tryshev cc436d5d95 Fixing crash upon cancellation of an accessible drag.
This fixes perhaps an old bug.

If we started an accessible drag for an only item on a page,
then uninstalled the app while dragging, the page was removed
without unsetting its accessibility delegate. Later, the system asks
the delegate to do something, but the drag is over, and some pointers
are null, so everything crashes.

Fixing this.

Bug: 22028725
Change-Id: I85adcd42ae896603634994e20a7790792f7e84b1
(cherry picked from commit de1e67c388)
2015-08-12 00:50:35 +00:00
Winson Chung a2917f6a0b Merge "Ensuring that AllAppsGridAdapter is public." into ub-launcher3-burnaby 2015-08-11 23:33:55 +00:00
Winson eea9fa4022 Ensuring that AllAppsGridAdapter is public.
- Also show the search action when searching all apps

Change-Id: I3470b0da565e6d1bce637ce09384d966215a4ca7
2015-08-11 16:27:16 -07:00
Sunny Goyal b0d868f730 Merge "Preventing zoom-in animation from running everytime the app updates." into ub-launcher3-burnaby 2015-08-11 22:42:03 +00:00
Sunny Goyal 3fcab663a1 Preventing zoom-in animation from running everytime the app updates.
Bug: 22557455
Change-Id: I3ac1212a2f319397cd18be8f4452047d974312b8
2015-08-11 15:18:02 -07:00
Sunny Goyal 6579e1eee8 Disabling home screen migration logic
Change-Id: I506948852945bfb8ebd7a95fc951880ffe9a3e17
2015-08-11 12:10:34 -07:00
Winson Chung a1ee659e74 Merge "Adding market search." into ub-launcher3-burnaby 2015-08-10 22:55:40 +00:00
Sunny Goyal b33e09a93c Preventing user from selecting any new time, when a tile is already being applied
Bug: 22293299
Change-Id: I6b9bf2b777d33ca23f291c7872ce1f338d41e516
2015-08-10 11:54:14 -07:00
Winson Chung 99eceebfaa Merge "Fixing issue with miscalculation in updating container bounds." into ub-launcher3-burnaby 2015-08-06 23:06:16 +00:00
Winson b0ca1a225f Fixing issue with miscalculation in updating container bounds.
- There was an issue with the previous logic where the test of whether
  the search bounds changed would always be false if valid search bounds
  were given.  This in conjunction with the fact that the padding was
  changed to only take the bounds left/right into account, meant that
  the container bounds would not be updated if the search bar bounds
  shifted via the insets.

Bug: 22918919
Change-Id: Ia810ddc7a56eae4afc0c7cd558fa6dc9e8e7a95b
2015-08-06 15:30:08 -07:00
Adam Cohen cf0c746ec0 Always log if Package is missing while loading default workspace
Change-Id: I7f2e5a9aabdf1fc192ad7912aaefa3f41c059ff1
2015-08-06 14:07:49 -07:00
Winson Chung bedf9232eb Adding market search.
Change-Id: Id41615653cd4fa76213add4595418ad0cc6e7852
2015-08-06 12:22:38 -07:00
Winson Chung 7573123c05 Merge "Fixing invisible search bar" into ub-launcher3-burnaby 2015-08-05 21:19:04 +00: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
Sunny Goyal a2a039b66f Using a reverse hashmap instead of indexOfValue in userManager
Bug: 22980139
Change-Id: I87b633d194ff4e1529dd679dc02da573ed374207
2015-08-05 13:23:25 -07:00
Sunny Goyal d1ea63f24a Removing some synthetic method creation
Change-Id: Icb6b38f78aa56ad2c11e2ccc8005994ac4b86a91
2015-08-05 12:33:05 -07:00
Sunny Goyal 7ca3250a10 Merge "Creating a cache of users to avoid multiple calls to UserManager" into ub-launcher3-burnaby 2015-08-05 19:22:56 +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 dc352761ae Merge "Removing account manager calls" into ub-launcher3-burnaby 2015-08-04 23:24:43 +00:00
Sunny Goyal fb0f109539 Updating the default layouts for launcher3
Change-Id: I088c7195ae1985788e845900463d22973a0f61d4
2015-08-04 16:03:10 -07:00