Commit Graph

6246 Commits

Author SHA1 Message Date
Mario Bertschler 817afa3447 Show promise app icon in All Apps while installation process.
This CL only modifies the model and is behind a feature flag
which per default is set to false.
The app icon will appear as a promise icon, it reacts on icon
or label changes and the icon will be remove on finishing the
installation process. With this CL the progress of the installation
process is not visible.

Bug: 23952570

Change-Id: I510825d0b0b1b01eb14f7e50f0a2358b0d8b99b5
2017-03-17 09:21:35 -07:00
Tony Wickham 04030d5a44 Merge "Remove badge info from map when count is 0." into ub-launcher3-dorval
am: 0402efbad8

Change-Id: I4134b0df23339d5c376a31b9e0f9cd8518e62f0e
2017-03-13 19:01:10 +00:00
Sunny Goyal 4eaacc7485 Merge "Defining HomeScreenElementTheme for elements which appear on top of wallpaper" into ub-launcher3-master 2017-03-13 18:58:03 +00:00
Tony Wickham 0402efbad8 Merge "Remove badge info from map when count is 0." into ub-launcher3-dorval 2017-03-13 18:56:17 +00:00
Tony ff7364a883 Remove badge info from map when count is 0.
Bug: 35803112
Change-Id: I680b92aac24bf5d083d64e9a4cd35471637a3809
2017-03-13 12:51:44 -04:00
Sunny Goyal ec37c50b63 Adding broadcast receiver to handle SESSION_COMMIT broadcast
am: 4179e9b88f

Change-Id: Ida895e5723b5d6d02b72ce7b04666b529eabb1cc
2017-03-10 20:20:48 +00:00
Sunny Goyal 4179e9b88f Adding broadcast receiver to handle SESSION_COMMIT broadcast
> Disabling Install shortcut broadcast for O and above
> Adding a preference to control automatic icon addition on homescreen
> Adding icons on homescreen for new installs based on the above preference

Bug: 32920609
Bug: 27967412
Change-Id: I92e5cb7c841fb445dc8bc058d975f212ee54f8d1
2017-03-09 10:56:09 -08:00
Louis Begin c5332f4c04 Add checks for FeatureFlags.QSB_ON_FIRST_SCREEN
am: b07a355fe2

Change-Id: Iae464c9acf99f8f66eb7c6a6b7f0567c79b447be
2017-03-09 00:20:59 +00:00
Louis Begin b07a355fe2 Add checks for FeatureFlags.QSB_ON_FIRST_SCREEN
When false, it correctly does not show the QSB but leaves
a default style search bar which cannot be removed.

Add checks to control default view visibility in device
profile layout & re-layout, QSB container and in
Workspace's onMeasure

Bug: 35967694

Change-Id: I3d0f89e1022d838eeb95762fd1fb3f7257956c41
2017-03-08 16:10:46 -08:00
Jon Miranda 5f3f4d4280 Added new interpolators for preview items in large folders.
With larger folders, we want the preview items to reach their final positions faster
(when opening) and later (when closing) so that they appear aligned with the rest of
the folder items when they are both visible.

Bug: 35064148
Change-Id: I170ac2db36a3a20ebe5505711ea59e625050bc1b
2017-03-08 12:22:34 -08:00
TreeHugger Robot 93ce56fdb2 Merge "Separating the config and flags in different directories so that it is easier to override one or the other" into ub-launcher3-master 2017-03-07 22:42:14 +00:00
Sunny Goyal b265ba7449 Removing DeferredHandler and using a simple Handler to post callbacks
DeferredHandler was added when we were posting each icon separately,
to prevent starvation. But since then we have moved to binding batct
items during bind.

Also fixing waitForIdle not waiting the second time. waitForIdle was
using a global variable to maintain state, and was not waiting properly
when its called the second time before binding deep shortcuts

Original Change-Id: I9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d

Change-Id: I9e6b3ae65fbd3aec3a46092efc5249c4525efedf
2017-03-07 13:44:52 -08:00
Jon Miranda ac3a64dbf4 Fix bug where FolderIcon is invisible when closing Folder with no animation.
When we open the Folder, we set the FolderIcon to View.INVISIBLE.
It is possible to close the Folder without animating it (ie. when apps
are being auto added / auto closed to Work Profile Folder), and so the
FolderIcon is never set to View.VISIBLE.

Bug: 35064148
Change-Id: I2fc5b7ecaceffde0a3f3875870897c18e6e8dadf
2017-03-07 09:41:20 -08:00
Sunny Goyal 3d706ad703 Separating the config and flags in different directories so that
it is easier to override one or the other

Bug: 36001650
Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
2017-03-07 09:30:51 -08:00
Jon Miranda 39f817e60a Fix bug where first page Folder text stays transparent.
This can happen where you drag a new item to a Folder that has
a full first page.

Bug: 36022385
Bug: 35064148
Change-Id: I092a79a13b7f779f09ee7a79488a16fe8bfbc2fd
2017-03-07 08:38:22 -08:00
Jon Miranda 4717011626 New folder animations.
Added FolderAnimationManager, which manages the opening
and closing animations.

All of the animations are done in the Folder.
ie. When the users taps on the FolderIcon, we immediately hide the
FolderIcon and show the Folder inits place before starting the animation.

Bug: 35064148
Change-Id: Icacdbbf78a25489f2eab4fd352f2c6ed71eb710b
2017-03-06 16:25:54 -08:00
Sunny Goyal dec75d5add Merge "Updating FolderIcon drawing to avoid dependency on software layer." into ub-launcher3-dorval
am: 3ba48fa019

Change-Id: Id18f5a34264411582115cde8cddd0dc8ecded8df
2017-03-06 18:59:41 +00:00
Sunny Goyal 3ba48fa019 Merge "Updating FolderIcon drawing to avoid dependency on software layer." into ub-launcher3-dorval 2017-03-06 18:54:55 +00:00
Mario Bertschler d6e5577e0f Merge "App discovery integration in All Apps search" into ub-launcher3-dorval
am: 86515dd148

Change-Id: I9c912d0ccec6c999547b1bce1f3e3b0b430a147f
2017-03-04 00:11:18 +00:00
Mario Bertschler 86515dd148 Merge "App discovery integration in All Apps search" into ub-launcher3-dorval 2017-03-04 00:05:40 +00:00
Jon Miranda d4d171425e Added RoundedRectRevealOutlineProvider.
This will be used in the new Folder animation. In the opening
animation, the reveal starts out as a circle and progessively
turns into a rounded rectangle. The closing animation is the reverse.

Bug: 35064148
Change-Id: I8accbaa83abee881bc3e16119c7602796c9963cb
2017-03-03 14:29:37 -08:00
Jon Miranda af47902652 Moves OutlineProvider / Animation files to anim package.
Change-Id: If444bbc71009510ded54d50ef746717f6c8b277f
2017-03-03 14:03:55 -08:00
Hyunyoung Song 1e4168ffb1 Merge "Change application launcher icons to adaptive icons b/35429795" into ub-launcher3-dorval
am: 61d351fe82

Change-Id: I6164a86a2205fbf006e635c7010142df764deac6
2017-03-03 21:19:36 +00:00
Hyunyoung Song 61d351fe82 Merge "Change application launcher icons to adaptive icons b/35429795" into ub-launcher3-dorval 2017-03-03 21:16:37 +00:00
Mario Bertschler 0fc6f684e7 App discovery integration in All Apps search
This is the basis for app discovery integration while searching in all apps.
This does NOT include binding to the actual service and retrieving results,
but instead provides all the UI to show suggested instant apps and apps
from a store with star rating and pricing.

Change-Id: I1605b52848491acee4ac1d15c0112e6a768363f6
2017-03-03 13:05:57 -08:00
Mario Bertschler 5ea9fbafee Merge "Setting soft input to adjust resize while all apps is open." into ub-launcher3-dorval
am: 74480b7bca

Change-Id: I62f9352a3e07d9b351f221b70c629fd2cf2a21b1
2017-03-03 20:52:35 +00:00
Sunny Goyal 19b93b7988 Updating FolderIcon drawing to avoid dependency on software layer.
Instead of cliping using clipPath, using PorterDuffXfermode to clear
area outside the bounds. This provides much better support for antialiasing.
Software layer was also being used for drawing shadow. But since the paint
color was set to transparent, no shadow was being drawn in O. Instead drawing
the shadow using radial gradient.

Bug: 35680116
Bug: 35428783
Change-Id: I0431664400628d5d01675fe72fe7ade01b64d611
2017-03-03 12:51:26 -08:00
Mario Bertschler 74480b7bca Merge "Setting soft input to adjust resize while all apps is open." into ub-launcher3-dorval 2017-03-03 20:48:10 +00:00
Hyunyoung Song 837eb1f47d Change application launcher icons to adaptive icons
b/35429795

Change-Id: I4fa2fb167040c2470c403a293d1a172c276b2f81
2017-03-03 12:48:05 -08:00
Sunny Goyal 1dd790b43d Merge "Moving Event dispatcher definition from LAuncher to BaseActivity so that it can be used in other activities as well." into ub-launcher3-dorval
am: 4ff3457e77

Change-Id: Ib6e1f0228ccf74613e26be3d2775b87ab38082d4
2017-03-03 20:15:02 +00:00
Sunny Goyal 4ff3457e77 Merge "Moving Event dispatcher definition from LAuncher to BaseActivity so that it can be used in other activities as well." into ub-launcher3-dorval 2017-03-03 20:10:29 +00:00
Mario Bertschler acbf570449 Setting soft input to adjust resize while all apps is open.
Bug: 35947394
Change-Id: I897063dc803b58e1f3b6ad16c6a721f808a2798a
2017-03-03 12:03:32 -08:00
Hyunyoung Song 12584781e4 [DO NOT MERGE] Add shadow to Adaptive Icons
Bug: 35920618

Change-Id: Ib48a656f988d1f007c32ab15cb28d120fab1e94f
(cherry picked from commit da9ac1f01a)
2017-03-02 22:36:02 +00:00
TreeHugger Robot 652f59c317 Merge "Add shadow to Adaptive Icons Bug: 35920618" into ub-launcher3-master 2017-03-02 22:02:51 +00:00
Hyunyoung Song da9ac1f01a Add shadow to Adaptive Icons
Bug: 35920618

Change-Id: Ib48a656f988d1f007c32ab15cb28d120fab1e94f
2017-03-02 13:39:27 -08:00
Tony Wickham 3e90d4350a Update notification visuals (part 2)
am: 9407d4ab57

Change-Id: Ie6a8c6605fdb115fee6c46a0e7b60f1e5a3525ac
2017-03-02 19:51:02 +00:00
Tony Wickham 9407d4ab57 Update notification visuals (part 2)
- Background is now white, and color beneath and divider color
  updated accordingly (not from color extraction)
- Removed overflow text ("+6") and added it to a header
  ("6 Notifications"). Use "..." instead if there is an overflow.
- Even spaced out icons in notification footer between the
  far right icon and the ellipsis
- Remove code to change arrow tint, since it is always white
  now. This also fixes the issue where it was drawn as a rect.

Bug: 35766387
Change-Id: I03bfda4ff029f23dd8b3dd1b72f534ea0e2c0816
2017-03-02 11:27:16 -08:00
Sunny Goyal 8a3374e0a8 Fixing wrong check being used for application status
am: f2db25398a

Change-Id: Id80a6fcc30023bf9ebea3c73e34af2d4bf186300
2017-03-02 17:15:52 +00:00
Hyunyoung Song 6bfcbecbb4 Merge "Launcher dump proto that will be used for:" into ub-launcher3-master 2017-03-02 02:01:42 +00:00
Sunny Goyal f2db25398a Fixing wrong check being used for application status
Earlier we were relying on activity list to check is an app is
installed or not. It fails if the app only exposes widgets and
no visible activity. Hence dragging an icon to AppInfo sometimes
causes the icon to get disappear.

Bug: 33241335
Change-Id: Ieb71e298a0930dd0a831cf09bd1e998514a427fd
2017-03-01 17:38:12 -08:00
Sunny Goyal 69d520cc86 Merge "Fixing SDCard and package enabled state checks in PackageManagerHeler" into ub-launcher3-dorval
am: ed7bef195c

Change-Id: Ifb4ab24887d58fa1ffa85f86a579ef31aef75394
2017-03-02 01:31:23 +00:00
Tony 96ab9d2c57 Merge "Add null check when populating popup" into ub-launcher3-dorval
am: 7a0010d20e

Change-Id: Ia89cbcec58fbfbf509187538a51ffa68d3353467
2017-03-02 01:31:14 +00:00
TreeHugger Robot ed7bef195c Merge "Fixing SDCard and package enabled state checks in PackageManagerHeler" into ub-launcher3-dorval 2017-03-02 01:23:18 +00:00
Hyunyoung Song 6aa3729e98 Launcher dump proto that will be used for:
$ adb shell dumpsys activity provider com.android.launcher3/com.android.launcher3.LauncherProvider
To see how the proto is filled: go/launcher-proto-dump

b/31772480

Change-Id: I8e0f1e5e38148a3dfeabd2fc057392193b2625dd
2017-03-01 17:21:19 -08:00
TreeHugger Robot 7a0010d20e Merge "Add null check when populating popup" into ub-launcher3-dorval 2017-03-02 01:18:50 +00:00
Sunny Goyal ad2e91a216 Fixing SDCard and package enabled state checks in PackageManagerHeler
Bug: 32365540
Change-Id: Iaac3e08ce55457ebbfb3633514ebc8ade6d200c5
2017-03-01 17:17:40 -08:00
Tony 3ce144b41b Add null check when populating popup
It was crashing when there were notifications
but no shortcuts.

Change-Id: I92e961e6186ef24736777855e114bd3245f7ac91
2017-03-01 17:14:28 -08:00
Tony Wickham 2dcd0ad935 Add shadow to badges
am: 6c82867a7e

Change-Id: I3f54b5908c56c0702772908a8eaf740a95b063bd
2017-03-02 00:54:40 +00:00
Tony Wickham 6c82867a7e Add shadow to badges
- Add static method to ShadowGenerator to generate a
  circle Bitmap with a shadow.
- Move setColorScale() from DragView to Themes, and
  use it to apply color to the shadowed Bitmap.

Bug: 35744066
Change-Id: I8d1da528bbf94dc83851f0b4016361ed9f8d5349
2017-03-01 16:36:04 -08:00
Jon Miranda 5fcbad03ef Added getIconSize method to PreviewLayoutRule interface.
This will be used in new Folder animation.

Bug: 35064148
Change-Id: I5573336c0b8a9db8d1e600b1e16de07f48f35a21
2017-03-01 16:06:21 -08:00