Commit Graph

16456 Commits

Author SHA1 Message Date
Tony Wickham a431fbb850 Merge "Use default icon if notification icon is null." into ub-launcher3-dorval 2017-03-15 17:25:19 +00:00
Tony Wickham 07e6d591b1 Use default icon if notification icon is null.
This could happen, for instance, if there is a
ResourcesNotFoundException when loading the icon.

Bug: 36134256
Change-Id: If2d13207252a2ec46f581455f5709a95d68f29c1
2017-03-15 10:06:52 -07:00
Jon Miranda 961941f102 Merge "Temporary fix for Folders in battery saver mode." into ub-launcher3-dorval
am: 29318b1aa6

Change-Id: Ib69faba80d7dcba68f5b92c2db9defd09a209569
2017-03-15 16:53:58 +00:00
TreeHugger Robot 29318b1aa6 Merge "Temporary fix for Folders in battery saver mode." into ub-launcher3-dorval 2017-03-15 16:47:59 +00:00
Jonathan Miranda d8b607fe8c Merge "Remove WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED." into ub-launcher3-dorval
am: aa8780a00c

Change-Id: Ia4c3479d61d6d9ed599b40c468a7f697b0024a49
2017-03-15 15:31:52 +00:00
Jonathan Miranda aa8780a00c Merge "Remove WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED." into ub-launcher3-dorval 2017-03-15 15:24:13 +00:00
Jon Miranda 715a322e9a Temporary fix for Folders in battery saver mode.
In battery saver mode, the Folder opens where it appears
the final values of the Animators are not being set.

Bug: 36157561
Bug: 36246234
Change-Id: I8dd58044f5f5ac66f8a8476a77d9899447a973eb
2017-03-15 08:11:09 -07:00
Mario Bertschler 32c3184d5b Setting AppInfo.itemType to ITEM_TYPE_APPLICATION per default
am: e44251247f

Change-Id: Ifae625d7e54905448e3a971a5c698af6d63452b2
2017-03-15 00:30:28 +00:00
Mario Bertschler e44251247f Setting AppInfo.itemType to ITEM_TYPE_APPLICATION per default
It's wrongly set to ITEM_TYPE_SHORTCUT, changing it to ITEM_TYPE_APPLICATION
in the constructor.

Change-Id: I51383d09d50ac90cea15fce816503648d2cb690e
2017-03-14 14:02:00 -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
Jon Miranda fd5163282f Remove WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED.
Original Change-Id: I897063dc803b58e1f3b6ad16c6a721f808a2798a

Bug: 36078152

Change-Id: I7a7e8ffce088694e01e49b6e9b4aa2e551da91f8
2017-03-09 13:14:50 -08: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