Commit Graph

16725 Commits

Author SHA1 Message Date
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
Tony Wickham 0b4a430aac Only check for badge setting on notification on O+
am: cf18c3c2d1

Change-Id: I0836999832eae7f90e9ee1ad5c823180e1e22ad4
2017-03-01 21:57:59 +00:00
Tony Wickham cf18c3c2d1 Only check for badge setting on notification on O+
Bug: 33553066
Change-Id: I20b991ae23c92c81510986191c05426ea72d273b
2017-03-01 12:04:25 -08:00
Tony Wickham f41b889b38 Merge "Merge deep shortcuts in rounded rect" into ub-launcher3-dorval
am: 12fec49834

Change-Id: I7662f40eade7665f2aa1aba2e341c4ed126a8f14
2017-03-01 19:01:19 +00:00
Tony Wickham 12fec49834 Merge "Merge deep shortcuts in rounded rect" into ub-launcher3-dorval 2017-03-01 18:57:22 +00:00
Tony Wickham 51889b0be8 Merge deep shortcuts in rounded rect
- DeepShortcutViews are added to ShortcutsItemView, which
  is in PopupContainerWithArrow
- Moved some shortcut-specific logic to ShortcutsItemView
  (namely, touch/long-click handling for draggin shortcuts)
- Moved round-rect clipping to PopupItemView
- Removed collapseToIcon() logic, including
  PillWidthRevealOutlineProvider, which was only used for
  that purpose. It isn't necessary now that the deep
  shortcuts have no background themselves.
- Replaced focus pill drawable with ripple effect on
  shortcuts and notification view.

Bug: 35766387
Change-Id: I6bc09f1851cfbb806df4bf75a6e435b0f1900c9c
2017-03-01 10:16:16 -08:00
Tony Wickham e5298a5715 Merge "Respect badge settings to filter out badges" into ub-launcher3-dorval
am: 5bbba815fd

Change-Id: I76a153ab357c5597758aac11348f1e304495fd70
2017-03-01 18:15:46 +00:00
Tony Wickham 5bbba815fd Merge "Respect badge settings to filter out badges" into ub-launcher3-dorval 2017-03-01 18:11:54 +00:00
Tony Wickham d670b995d2 Respect badge settings to filter out badges
Bug: 35405389
Bug: 32410600
Change-Id: I8e7b928a6cf7d9a66df8cb056bd73eaa45f68e6c
2017-03-01 09:35:17 -08:00
TreeHugger Robot efa0ff8ea6 Merge "Prepare Folder for new Folder animation implementation." into ub-launcher3-master 2017-03-01 15:24:58 +00:00
Jon Miranda 529af302dc Use FolderIconPreviewVerifier to check if item is in preview.
Bug: 35064148
Bug: 33600656
Change-Id: I71a03636276e6169c7eb8c68eecf31f37fde2d56
2017-02-28 17:52:42 -08:00
Jon Miranda fc0ce83745 Prepare Folder for new Folder animation implementation.
Refactored animator logic to separate methods, so that it is easier
to swap out implementation with the LAUNCHER3_NEW_FOLDER_ANIMATION flag.

ie.

AnimatorSet anim = LAUNCHER3_NEW_FOLDER_ANIMATION
    ? getNewOpeningAnimatorSet()
    : getOpeningAnimatorSet();

Bug: 35064148
Change-Id: I32a646aaed5081438d7a733dc3e7cceb484998ab
2017-02-28 17:51:03 -08:00
Jonathan Miranda d8745db015 Merge "Added FolderIconPreviewVerifier class." into ub-launcher3-master 2017-02-28 22:09:45 +00:00
Jon Miranda 608d0dba87 Close Folder before doing any automatic updates.
We already close the Folder when Work Profile apps are
auto added to the Work Profile Folder. This change extends that
functionality to when apps are being auto removed from the
Work Profile Folder.

Bug: 35845161
Change-Id: I2aa6a6a0ed28a95f6a59a549430f91482583548b
2017-02-28 13:15:28 -08:00
Jon Miranda 655ec42ce5 Added FolderIconPreviewVerifier class.
This class verifies whether an item in a Foder is displayed in
the FolderIcon preview, based on the item's rank.

We use this class to determine which items in a Folder will be
displayed in the preview.

Bug: 35064148
Change-Id: Ia21bccbd95c348efeac62591ae3696a4c60b5339
2017-02-28 11:57:26 -08:00
Sunny Goyal a535ae423b Moving Event dispatcher definition from LAuncher to BaseActivity so that
it can be used in other activities as well.

Bug: 34766840
Change-Id: Ie4b723483792bee93fb75e63146ebea7dfeebeda
2017-02-27 10:09:09 -08:00
Sunny Goyal 879037d86a Fix crash when the progress of an installing app decreases
Bug: 35793892
Change-Id: I957967c7a11359d951fe055027aa45c7dfd1bd84
2017-02-27 09:41:33 -08:00
Jon Miranda 54d4e645b3 Enable suggestions for Folder names.
We turn on suggestions, turn off auto complete, and disable the
default behavior where red lines appear under typos.

Bug: 30055146
Change-Id: Ia151b7a4db1dfc6908504e6ea82a1f6989f05ca5
2017-02-24 15:51:09 -08:00
Tony Wickham 7f3526a1a4 Update notification view to match newer specs
- Use smaller radius for notifications round rect background
- Remove "Notifications" header, and clip children to round rect path
- Flip main notification so that icon shows on the right instead of
  left; footer is also flipped so animation makes sense
- Clean up animations to animate view outline instead of height

Bug: 32410600
Change-Id: I6bd1e1f8395b3703f28c3b0056a89e67672368ab
2017-02-24 12:09:06 -08:00
Jon Miranda 2e61fba625 Log when users exit Overview mode by tapping on the Workspace.
Bug: 31779207
Change-Id: Ia57e27d392831686c5837b33a243b72c1418782a
2017-02-24 09:12:59 -08:00
Sunny Goyal e05b08f705 Using transaction when dropping tables, so that the DB never enters
an inconsistant state

Bug: 34720697
Change-Id: I55a26d63be6c06622da6ee3395bf1990f1a58a11
2017-02-23 18:30:56 -08:00
TreeHugger Robot ea53ca3a17 Merge "Removing custom state definition from FastBitmapDrawable" into ub-launcher3-dorval 2017-02-24 00:37:30 +00:00
TreeHugger Robot 1cabfa1d01 Merge "Remove first icon from notification footer after it animates." into ub-launcher3-dorval 2017-02-24 00:27:19 +00:00