Commit Graph

34630 Commits

Author SHA1 Message Date
Sunny Goyal 9bb0d72640 Adding feature to support two different swipe targets from all-apps and overview
Change-Id: I7e7b4abbcebcbd6de43805c57ee40b0edd5ba5aa
2018-01-11 14:13:44 -08:00
Sunny Goyal cc96aa1fd4 Running state animations if launcher is visible
Change-Id: Ibc522edec4f86375ea75ac645b748fec43fceb31
2018-01-11 09:56:23 -08:00
Tony Mak 7ccbefcc56 Fix work tab is gone when leaving search mode
1. onSearchResultsChanged is not called if the query is empty.
   Introduce onClearSearchResult and restore the tab there
2. rebindAdapters should only perform the actual logic
   if showTabs != mShowTabs, except the first time when we init the
   layout in onFinishInflate.

Fix: 71737947
Change-Id: I5485d6be0fc33b73aa6e0709be66cef8d43b4dbd
2018-01-11 15:55:24 +00:00
TreeHugger Robot b5d047ca14 Merge "Removing layout handling in DeviceProfile and moving it to individual views" into ub-launcher3-master 2018-01-10 23:25:26 +00:00
Sunny Goyal 07b6929cd9 Removing layout handling in DeviceProfile and moving it to
individual views

Bug: 71709920
Change-Id: I8300fa7a84b31898bdb135d774cca576d2928525
2018-01-10 15:13:25 -08:00
Sunny Goyal b60778114f Merge "Making LauncherIcons thread safe" into ub-launcher3-master 2018-01-10 20:03:15 +00:00
TreeHugger Robot 33be6a1364 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-01-10 18:24:11 +00:00
Tony Mak 4233405016 Add peek to work tab animation
Only the tab is moved, the RV does not.

Fix: 71748023

Change-Id: I99216e9072df03104dd0644f3909e8b49e07faf0
2018-01-10 18:02:47 +00:00
Bill Yi 1b92320c62 Import translations. DO NOT MERGE
Change-Id: Ie11ad3fd010a4c408dcbb9e9d59e6e9861179721
Auto-generated-cl: translation import
2018-01-10 09:03:52 -08:00
Sunny Goyal 18a4e5aefb Making LauncherIcons thread safe
Creating a pool of LauncherIcons so that they can be used from multiple threads

Change-Id: Idc7b5ddb47b6e338a5389f3c4faa6f63de108c72
2018-01-09 17:30:52 -08:00
TreeHugger Robot 383b7fa02a Merge "Fixing dot being drawn at wrong offset" into ub-launcher3-master 2018-01-09 18:48:26 +00:00
Sunny Goyal 2865cf3dba Fixing dot being drawn at wrong offset
Bug: 71730537
Change-Id: I090283596c0137cb751d29dfab54b370e6bbe97e
2018-01-09 10:24:02 -08:00
Tony Wickham 5cf0fbcfc5 Merge "Add onWidgetsBound() callback to TaskMenuView" into ub-launcher3-master 2018-01-09 02:07:33 +00:00
Sunny Goyal 228153d92a Updating landscape layout for launcher/quickstep
> Hotseat is tied to navbar (on left in seascape)
> Search box shows up in Overview (clicking it would crash for now)
> All-apps is no longer fullscreen in landscape
> Recents cards are appropriately scaled down
> Hotseat is visible in Overview

Bug: 70179916
Change-Id: I53149eaeac9557e8a01021b7e2d139f3d6ceef37
2018-01-08 13:53:44 -08:00
android-build-team Robot facf07cb06 Snap for 4531101 from 27fa808b34 to pi-release
Change-Id: I4fcaa2b5f4babb46e47e6661c7b3f16034eaf794
2018-01-07 08:26:17 +00:00
Aurimas Liutikas 27fa808b34 Move Launcher3 to aapt2.
Test: make -j80 Launcher3 Launcher3Go Launcher3QuickStep
Change-Id: I2edc3c9ba8e3e7616ea39c4ebf1fe6e65f113090
2018-01-05 15:59:20 -08:00
Tony Wickham 07b1d670f2 Animate to the workspace card when transitioning from overview to home
Change-Id: Ib2c2288fd935f678a5c7a354be09c6d852d86b41
2018-01-05 14:15:10 -08:00
Sunny Goyal da1e4b31f0 Fixing wrong check used for predictions
Change-Id: I990b101c32abe02a14d95bd00c0b63cda95b4066
2018-01-05 10:49:37 -08:00
TreeHugger Robot 03be2ec743 Merge "Removing some unused code path" into ub-launcher3-master 2018-01-04 19:22:30 +00:00
TreeHugger Robot 01629fea69 Merge "Consume work mode API" into ub-launcher3-master 2018-01-04 19:14:17 +00:00
Sunny Goyal 6bb51f425b Removing some unused code path
Change-Id: I16a651d77c6557b33f8389407a222f058a8168d4
2018-01-04 11:12:44 -08:00
Tony Mak 6eeb040d86 Consume work mode API
Fix: 69905244

Change-Id: I5958b3a2ebba2fa0e0f69448d5526dc72ed6a97b
2018-01-04 19:06:01 +00:00
Sunny Goyal cac002dd0e Do not wait until bindComplete for setting NotificationListener
Notification badges are applied only to the icons which are already
bound. So even if some notification changes in the middle of binding
it will get applied properly.

Change-Id: Icc77981688206b61ea4b9c9d311dff2c72fa8f18
2018-01-04 09:53:15 -08:00
TreeHugger Robot 6c870f2942 Merge "Adding support for auto-cancelling an action mode when interacting with launcher" into ub-launcher3-master 2018-01-04 01:11:59 +00:00
Sunny Goyal 179249d804 Dominant color is part of icon cache
> Calculating extracted color during icon generation and storing it in model and DB
> Removing unused logic avoid various types of badge rendering
> Icons are badged with extracted colors, while folder is badged with theme color

Bug: 35428783
Change-Id: I93e30c52fbded7515c3ae1778422e84672eafb56
2018-01-03 16:55:58 -08:00
Sunny Goyal 8c3c9d2634 Merge "No more waiting around for resume" into ub-launcher3-master 2018-01-04 00:50:25 +00:00
TreeHugger Robot a92638ab7d Merge "Two state swipe interaction fixes" into ub-launcher3-master 2018-01-03 23:20:28 +00:00
Sunny Goyal 2a0659b223 Two state swipe interaction fixes
> Loading the recents plan before showing recents and always starting with page 0
> Fixing thumbnail not getting drawn when layout happens after task plan is loaded
> Disabling two state swipe when touch service is not connected
> When using swite gesture, once user triggers the overview mode, he cannot land
  in NORMAL state in that gesture

Change-Id: I7a2e83318af6e98dcc64849690fcba6dc8f71f77
2018-01-03 15:11:27 -08:00
Tony Wickham 0c52b56db9 Add onWidgetsBound() callback to TaskMenuView
This lets us handle the edge cases where widgets are added or
removed after popuplating the menu, and updating it accordingly.

Change-Id: I5d8fff8714caa718f87aeac3b15a346b80aed7a8
2018-01-02 16:56:49 -08:00
Tony Wickham cd7431d925 Merge "Add system shortcuts when long pressing recent icon" into ub-launcher3-master 2018-01-03 00:37:19 +00:00
Tony Wickham 2fae2a0e9c Add system shortcuts when long pressing recent icon
We add a floating view for the menu that aligns with the task icon.

If available, the following shortcuts are present:
- Widgets
- App info
- Install (for instant apps)

It is designed to be straightforward to add to this list.

Bug: 70294936

Change-Id: I56c1098353d09fc564e0e92e59e4fcf692e486ba
2018-01-02 15:44:34 -08:00
Tony Wickham f62255e3ea Merge "Fix popup container alignment issues" into ub-launcher3-master 2018-01-02 20:07:08 +00:00
Tony efacffa08a Fix popup container alignment issues
- Arrow did not line up with the icon when right aligned
- Popup was always centered horizontally in RTL instead
  of aligning with the icon

Change-Id: I90e065d0b0c1c59166e5c2e5de5e6cff9126ee6f
2017-12-22 13:54:08 -08:00
Sunny Goyal 9328a51271 Adding translationX to workspace card to that it is slightly visible
behind the first card

Change-Id: Idc0c169fb92510e74b983160778bd9dbacf29943
2017-12-22 11:21:18 -08:00
Sunny Goyal 7c8a65e740 Adding support for auto-cancelling an action mode when interacting with launcher
Change-Id: Iba0207e36e9e5bd94bd9016318a4e00c6e1f6393
2017-12-22 11:11:54 -08:00
TreeHugger Robot 8c8fdec3e9 Merge "Surpress missing classes warnings from R8" into ub-launcher3-master 2017-12-19 23:13:57 +00:00
TreeHugger Robot 069946b1ea Merge "Fix bug where Folder gets stuck with an invalid OutlineProvider when cancelled." into ub-launcher3-master 2017-12-19 21:34:49 +00:00
Søren Gjesse 45e89c76bb Surpress missing classes warnings from R8
Bug: 70852369
Test: m -j NexusLauncherRelease

Change-Id: If6056388be67c65d84d696940171f7918d203efc
2017-12-19 22:19:19 +01:00
George Hodulik 9e3056071b Merge "Added constructor to ShortcutKey." into ub-launcher3-master 2017-12-19 21:06:25 +00:00
Sunny Goyal 29947f0b53 No more waiting around for resume
Apply model updates as son as they arrive instead of waiting for onResume.
Various workspace items do not use any configuration dependent resources.
For Widgets, we wait until the host starts lietening before inflating the actual view.

Change-Id: Icb2f5e5940c1ce6c27062ccd34eff87e80af5ab1
2017-12-19 12:50:17 -08:00
Jon Miranda 9b74306ff0 Fix bug where Folder gets stuck with an invalid OutlineProvider when cancelled.
Bug: 70300667
Change-Id: I05d82c402584175d5fff336a8b7d9811dcf15633
2017-12-19 12:09:04 -08:00
Sunny Goyal e15e2a8267 Adding an empty page in Recents view corresponding to workspace
The page is aligned to the workspace card and shows a widgets button
in the empty region

Change-Id: I479c47a2fbac4b3ef1aaf833d9fe82b5d7e10ddc
2017-12-19 10:06:15 -08:00
Tony Mak 9558a884dd Fix tab selected color is not rendered properly
We used to use mSelectedPosition for both tab / indicator position.
However, they are not always in sync.
For example, if user taps on a tab, that tab will be in "selected state"
right away when we are still showing the sliding animation.

The fix is to use two separate variables to keep track of
tab / indicator position.

Fix: 70778492

Change-Id: I9b01fa2108b256448d3de0113f9bed75043afefd
2017-12-18 11:56:48 +00:00
Winson Chung 50f85e04f0 Temporarily disable HW bitmaps
- Causes crash due to sampling bitmap for badge color.

Change-Id: I5c9186fb22769c5b7dcf88d9820aabae5ce486f5
2017-12-15 11:43:29 -08:00
Tony Mak d33d081db3 Merge changes I218fe7d9,I60ef59de into ub-launcher3-master
* changes:
  Make work footer stick to the bottom if there are only a few apps #2
  Make work footer stick to the bottom if there are only a few apps
2017-12-15 17:11:17 +00:00
Tony Mak 2bfa4d469a Make work footer stick to the bottom if there are only a few apps #2
1. Move the work footer divider into the container, so it is translated
   with the rest of the footer.

2. Fixed the scrollbar issue in work tab by putting the footer height
   in AllAppsRecyclerView

3. We planned to drop the company name, and decided to use
   "Managed by your organisation".

4. Rename WorkModeToggleContainer to WorkFooterContainer as
   we are using work footer in else where.

BUG: 70571983
Change-Id: I218fe7d9970780a1a457ee450f1a32e7a46d9766
2017-12-15 11:40:07 +00:00
TreeHugger Robot d56d7b9700 Merge "Updating the hotseat background to a solid color with rounded corners" into ub-launcher3-master 2017-12-14 20:27:44 +00:00
TreeHugger Robot 86cc383d6b Merge "Moving divider line into predictionview." into ub-launcher3-master 2017-12-14 20:04:08 +00:00
Sunny Goyal b532dfe45d Updating the hotseat background to a solid color with rounded corners
Change-Id: I297920518f925e122f2e9f55a68228b96b42ea27
2017-12-14 11:43:48 -08:00
Mario Bertschler d8ab4671e3 Moving divider line into predictionview.
Change-Id: I40753aaa154023641cead2bd7dcf906fa5a4c2d7
2017-12-14 11:20:46 -08:00