OSDN Git Service

android-x86/packages-apps-Launcher3.git
7 years agoMerge "Make landscapeProfile and protraitProfile public." into ub-launcher3-dorval
Justin Cui [Mon, 20 Mar 2017 17:35:49 +0000 (17:35 +0000)]
Merge "Make landscapeProfile and protraitProfile public." into ub-launcher3-dorval

7 years agoMake landscapeProfile and protraitProfile public.
cuijiaxing [Mon, 20 Mar 2017 16:51:36 +0000 (09:51 -0700)]
Make landscapeProfile and protraitProfile public.

This is needed to make prediction sticky: b/21654652

Change-Id: Ie8cb77ed9cbf1bf5b164828d0c4335111039e7c5

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 Mar 2017 11:29:18 +0000 (04:29 -0700)]
Import translations. DO NOT MERGE

Change-Id: I6bd0e70df3bba61196c3eb6a9c33a8800d236648
Auto-generated-cl: translation import

7 years agoAdding support for showing the widget preview based on the provided RemoteViews
Sunny Goyal [Wed, 8 Mar 2017 22:49:55 +0000 (14:49 -0800)]
Adding support for showing the widget preview based on the provided RemoteViews

Bug: 35811129
Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7

7 years agoAllow TalkBack to read sectional headings on Widgets screen.
Jon Miranda [Thu, 16 Mar 2017 22:09:02 +0000 (15:09 -0700)]
Allow TalkBack to read sectional headings on Widgets screen.

Bug: 35027834
Change-Id: Ice512bac83d818a4f8dca6d5f4b041a6bfa4df67

7 years agoMerge "Revert "Temporary fix for Widgets in battery saver mode."" into ub-launcher3...
Jonathan Miranda [Thu, 16 Mar 2017 21:29:13 +0000 (21:29 +0000)]
Merge "Revert "Temporary fix for Widgets in battery saver mode."" into ub-launcher3-dorval

7 years agoMerge "Revert "Temporary fix for Folders in battery saver mode."" into ub-launcher3...
Jonathan Miranda [Thu, 16 Mar 2017 21:28:21 +0000 (21:28 +0000)]
Merge "Revert "Temporary fix for Folders in battery saver mode."" into ub-launcher3-dorval

7 years agoRevert "Temporary fix for Widgets in battery saver mode."
Jonathan Miranda [Thu, 16 Mar 2017 20:24:42 +0000 (20:24 +0000)]
Revert "Temporary fix for Widgets in battery saver mode."

Note: b/36157561 has been properly fixed.

This reverts commit 08d8bb9cde705ef66561fb2dbed0af7af2632812.

Change-Id: I55e04283d2013f965afc17bcb0482a50440a96ee

7 years agoRevert "Temporary fix for Folders in battery saver mode."
Jonathan Miranda [Thu, 16 Mar 2017 20:24:21 +0000 (20:24 +0000)]
Revert "Temporary fix for Folders in battery saver mode."

Note: b/36157561 has been properly fixed.

This reverts commit 715a322e9ad62b4f0fc0ddca17c98a0ed6d048de.

Change-Id: I267db053a45a75fdef71c6d178f140c7abcb8616

7 years agoMerge "Small cleanup for notifications" into ub-launcher3-dorval
Tony Wickham [Thu, 16 Mar 2017 19:22:51 +0000 (19:22 +0000)]
Merge "Small cleanup for notifications" into ub-launcher3-dorval

7 years agoSmall cleanup for notifications
Tony Wickham [Wed, 15 Mar 2017 21:41:18 +0000 (14:41 -0700)]
Small cleanup for notifications

- Add null check when collapsing footer, as container could be null
  if the app is opened
- Remove redundant method that always passed mNotificationItemView
- Set mNotificationItemView to null when it is removed

Change-Id: Ia329815224b213fc688733eaaf6f29ee6888caaf

7 years agoTemporary fix for Widgets in battery saver mode.
Jon Miranda [Wed, 15 Mar 2017 18:01:29 +0000 (11:01 -0700)]
Temporary fix for Widgets in battery saver mode.

Bug: 36246234
Bug: 36240579
Change-Id: Iced0ea87333011aef1dbdadd0036427207e377d9

7 years agoMerge "Use default icon if notification icon is null." into ub-launcher3-dorval
Tony Wickham [Wed, 15 Mar 2017 17:25:19 +0000 (17:25 +0000)]
Merge "Use default icon if notification icon is null." into ub-launcher3-dorval

7 years agoUse default icon if notification icon is null.
Tony Wickham [Wed, 15 Mar 2017 16:57:28 +0000 (09:57 -0700)]
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

7 years agoMerge "Temporary fix for Folders in battery saver mode." into ub-launcher3-dorval
TreeHugger Robot [Wed, 15 Mar 2017 16:47:59 +0000 (16:47 +0000)]
Merge "Temporary fix for Folders in battery saver mode." into ub-launcher3-dorval

7 years agoMerge "Remove WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED." into ub-launche...
Jonathan Miranda [Wed, 15 Mar 2017 15:24:13 +0000 (15:24 +0000)]
Merge "Remove WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED." into ub-launcher3-dorval

7 years agoTemporary fix for Folders in battery saver mode.
Jon Miranda [Wed, 15 Mar 2017 15:11:09 +0000 (08:11 -0700)]
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

7 years agoSetting AppInfo.itemType to ITEM_TYPE_APPLICATION per default
Mario Bertschler [Tue, 14 Mar 2017 21:02:00 +0000 (14:02 -0700)]
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

7 years agoMerge "Remove badge info from map when count is 0." into ub-launcher3-dorval
Tony Wickham [Mon, 13 Mar 2017 18:56:17 +0000 (18:56 +0000)]
Merge "Remove badge info from map when count is 0." into ub-launcher3-dorval

7 years agoRemove badge info from map when count is 0.
Tony [Mon, 13 Mar 2017 16:51:44 +0000 (12:51 -0400)]
Remove badge info from map when count is 0.

Bug: 35803112
Change-Id: I680b92aac24bf5d083d64e9a4cd35471637a3809

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 12 Mar 2017 05:32:36 +0000 (21:32 -0800)]
Import translations. DO NOT MERGE

Change-Id: I3ab8f241299226e0453e654fdbde113646349190
Auto-generated-cl: translation import

7 years agoMerge "Updating test as per API changes" into ub-launcher3-dorval
TreeHugger Robot [Fri, 10 Mar 2017 21:09:18 +0000 (21:09 +0000)]
Merge "Updating test as per API changes" into ub-launcher3-dorval

7 years agoRemove WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED.
Jon Miranda [Thu, 9 Mar 2017 21:14:50 +0000 (13:14 -0800)]
Remove WindowManager.LayoutParams.SOFT_INPUT_STATE_UNCHANGED.

Original Change-Id: I897063dc803b58e1f3b6ad16c6a721f808a2798a

Bug: 36078152

Change-Id: I7a7e8ffce088694e01e49b6e9b4aa2e551da91f8

7 years agoAdding broadcast receiver to handle SESSION_COMMIT broadcast
Sunny Goyal [Wed, 8 Mar 2017 22:25:09 +0000 (14:25 -0800)]
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

7 years agoAdd checks for FeatureFlags.QSB_ON_FIRST_SCREEN
Louis Begin [Mon, 27 Feb 2017 06:33:11 +0000 (14:33 +0800)]
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

7 years agoUpdating test as per API changes
Sunny Goyal [Tue, 7 Mar 2017 23:27:00 +0000 (15:27 -0800)]
Updating test as per API changes

Change-Id: I746bf48254ebfcad18426d47c61a54f8a11f5cf8

7 years agoMerge "Updating FolderIcon drawing to avoid dependency on software layer." into ub...
Sunny Goyal [Mon, 6 Mar 2017 18:54:55 +0000 (18:54 +0000)]
Merge "Updating FolderIcon drawing to avoid dependency on software layer." into ub-launcher3-dorval

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 6 Mar 2017 14:30:32 +0000 (06:30 -0800)]
Import translations. DO NOT MERGE

Change-Id: I438eb3210577fca407121d91cda2223090fd31f4
Auto-generated-cl: translation import

7 years agoMerge "App discovery integration in All Apps search" into ub-launcher3-dorval
Mario Bertschler [Sat, 4 Mar 2017 00:05:39 +0000 (00:05 +0000)]
Merge "App discovery integration in All Apps search" into ub-launcher3-dorval

7 years agoMerge "Change application launcher icons to adaptive icons b/35429795" into ub-launch...
Hyunyoung Song [Fri, 3 Mar 2017 21:16:37 +0000 (21:16 +0000)]
Merge "Change application launcher icons to adaptive icons b/35429795" into ub-launcher3-dorval

7 years agoApp discovery integration in All Apps search
Mario Bertschler [Fri, 17 Feb 2017 20:16:13 +0000 (12:16 -0800)]
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

7 years agoUpdating FolderIcon drawing to avoid dependency on software layer.
Sunny Goyal [Mon, 20 Feb 2017 04:21:37 +0000 (20:21 -0800)]
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

7 years agoMerge "Setting soft input to adjust resize while all apps is open." into ub-launcher3...
Mario Bertschler [Fri, 3 Mar 2017 20:48:09 +0000 (20:48 +0000)]
Merge "Setting soft input to adjust resize while all apps is open." into ub-launcher3-dorval

7 years agoChange application launcher icons to adaptive icons
Hyunyoung Song [Fri, 3 Mar 2017 19:14:05 +0000 (11:14 -0800)]
Change application launcher icons to adaptive icons
b/35429795

Change-Id: I4fa2fb167040c2470c403a293d1a172c276b2f81

7 years agoMerge "Moving Event dispatcher definition from LAuncher to BaseActivity so that it...
Sunny Goyal [Fri, 3 Mar 2017 20:10:29 +0000 (20:10 +0000)]
Merge "Moving Event dispatcher definition from LAuncher to BaseActivity so that it can be used in other activities as well." into ub-launcher3-dorval

7 years agoSetting soft input to adjust resize while all apps is open.
Mario Bertschler [Fri, 3 Mar 2017 18:58:06 +0000 (10:58 -0800)]
Setting soft input to adjust resize while all apps is open.

Bug: 35947394
Change-Id: I897063dc803b58e1f3b6ad16c6a721f808a2798a

7 years ago[DO NOT MERGE] Add shadow to Adaptive Icons
Hyunyoung Song [Thu, 2 Mar 2017 20:36:08 +0000 (12:36 -0800)]
[DO NOT MERGE] Add shadow to Adaptive Icons
Bug: 35920618

Change-Id: Ib48a656f988d1f007c32ab15cb28d120fab1e94f
(cherry picked from commit da9ac1f01a16a2fe13e321d6fada5cb63f534bc2)

7 years agoUpdate notification visuals (part 2)
Tony Wickham [Fri, 24 Feb 2017 23:08:13 +0000 (15:08 -0800)]
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

7 years agoFixing wrong check being used for application status
Sunny Goyal [Thu, 2 Mar 2017 01:27:16 +0000 (17:27 -0800)]
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

7 years agoMerge "Fixing SDCard and package enabled state checks in PackageManagerHeler" into...
TreeHugger Robot [Thu, 2 Mar 2017 01:23:18 +0000 (01:23 +0000)]
Merge "Fixing SDCard and package enabled state checks in PackageManagerHeler" into ub-launcher3-dorval

7 years agoMerge "Add null check when populating popup" into ub-launcher3-dorval
TreeHugger Robot [Thu, 2 Mar 2017 01:18:50 +0000 (01:18 +0000)]
Merge "Add null check when populating popup" into ub-launcher3-dorval

7 years agoFixing SDCard and package enabled state checks in PackageManagerHeler
Sunny Goyal [Tue, 28 Feb 2017 23:14:58 +0000 (15:14 -0800)]
Fixing SDCard and package enabled state checks in PackageManagerHeler

Bug: 32365540
Change-Id: Iaac3e08ce55457ebbfb3633514ebc8ade6d200c5

7 years agoAdd null check when populating popup
Tony [Thu, 2 Mar 2017 00:51:15 +0000 (16:51 -0800)]
Add null check when populating popup

It was crashing when there were notifications
but no shortcuts.

Change-Id: I92e961e6186ef24736777855e114bd3245f7ac91

7 years agoAdd shadow to badges
Tony Wickham [Mon, 27 Feb 2017 21:30:20 +0000 (13:30 -0800)]
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

7 years agoOnly check for badge setting on notification on O+
Tony Wickham [Wed, 1 Mar 2017 20:04:25 +0000 (12:04 -0800)]
Only check for badge setting on notification on O+

Bug: 33553066
Change-Id: I20b991ae23c92c81510986191c05426ea72d273b

7 years agoMerge "Merge deep shortcuts in rounded rect" into ub-launcher3-dorval
Tony Wickham [Wed, 1 Mar 2017 18:57:22 +0000 (18:57 +0000)]
Merge "Merge deep shortcuts in rounded rect" into ub-launcher3-dorval

7 years agoMerge deep shortcuts in rounded rect
Tony Wickham [Tue, 28 Feb 2017 00:30:47 +0000 (16:30 -0800)]
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

7 years agoMerge "Respect badge settings to filter out badges" into ub-launcher3-dorval
Tony Wickham [Wed, 1 Mar 2017 18:11:54 +0000 (18:11 +0000)]
Merge "Respect badge settings to filter out badges" into ub-launcher3-dorval

7 years agoRespect badge settings to filter out badges
Tony Wickham [Sat, 18 Feb 2017 01:03:30 +0000 (17:03 -0800)]
Respect badge settings to filter out badges

Bug: 35405389
Bug: 32410600
Change-Id: I8e7b928a6cf7d9a66df8cb056bd73eaa45f68e6c

7 years agoClose Folder before doing any automatic updates.
Jon Miranda [Tue, 28 Feb 2017 21:15:28 +0000 (13:15 -0800)]
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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 28 Feb 2017 03:27:58 +0000 (19:27 -0800)]
Import translations. DO NOT MERGE

Change-Id: I81729ad91123d3dc3c365d09f2c7027f62411755
Auto-generated-cl: translation import

7 years agoUpdate Launcher3 AndroidManifest.xml to match NexusLauncher.
Jon Miranda [Mon, 27 Feb 2017 22:32:39 +0000 (14:32 -0800)]
Update Launcher3 AndroidManifest.xml to match NexusLauncher.

Add stateUnchanged flag to activity windowSoftInputMode.
* Original Change-Id: Iad029d1ce327527ae3933c9eca86474be6ba5aa1

Set resizeableActivity to true to enable multi-window for Launcher.
* Original Change-Id: I2d17c89db2eb8d60b3393c2abc3b026e5574085d

Change-Id: I534f6511e7fd7778cc4469f56527d6452ccbc9a9

7 years agoMoving Event dispatcher definition from LAuncher to BaseActivity so that
Sunny Goyal [Mon, 27 Feb 2017 18:07:13 +0000 (10:07 -0800)]
Moving Event dispatcher definition from LAuncher to BaseActivity so that
it can be used in other activities as well.

Bug: 34766840
Change-Id: Ie4b723483792bee93fb75e63146ebea7dfeebeda

7 years agoFix crash when the progress of an installing app decreases
Sunny Goyal [Mon, 27 Feb 2017 17:41:14 +0000 (09:41 -0800)]
Fix crash when the progress of an installing app decreases

Bug: 35793892
Change-Id: I957967c7a11359d951fe055027aa45c7dfd1bd84

7 years agoEnable suggestions for Folder names.
Jon Miranda [Fri, 24 Feb 2017 18:00:14 +0000 (10:00 -0800)]
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

7 years agoUpdate notification view to match newer specs
Tony Wickham [Tue, 21 Feb 2017 23:16:12 +0000 (15:16 -0800)]
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

7 years agoUsing transaction when dropping tables, so that the DB never enters
Sunny Goyal [Fri, 24 Feb 2017 02:30:22 +0000 (18:30 -0800)]
Using transaction when dropping tables, so that the DB never enters
an inconsistant state

Bug: 34720697
Change-Id: I55a26d63be6c06622da6ee3395bf1990f1a58a11

7 years agoMerge "Removing custom state definition from FastBitmapDrawable" into ub-launcher3...
TreeHugger Robot [Fri, 24 Feb 2017 00:37:30 +0000 (00:37 +0000)]
Merge "Removing custom state definition from FastBitmapDrawable" into ub-launcher3-dorval

7 years agoMerge "Remove first icon from notification footer after it animates." into ub-launche...
TreeHugger Robot [Fri, 24 Feb 2017 00:27:19 +0000 (00:27 +0000)]
Merge "Remove first icon from notification footer after it animates." into ub-launcher3-dorval

7 years agoRemoving custom state definition from FastBitmapDrawable
Sunny Goyal [Thu, 16 Feb 2017 21:33:15 +0000 (13:33 -0800)]
Removing custom state definition from FastBitmapDrawable

> For Fast scrolling, using state list animator defined in xml
> For Pressed state, using onState change method in a drawable

Change-Id: Ia608690f593938cf0f77e00afcc2a3076e48d8f4

7 years agoIgnore tasks if the LauncherModel is still pending.
Jon Miranda [Thu, 23 Feb 2017 23:12:42 +0000 (15:12 -0800)]
Ignore tasks if the LauncherModel is still pending.

The tasks will be enqueued after the model is loaded when it
gets to the final state.

Bug: 31509386
Change-Id: Id72aaedb025a91a49b25e1ef103cc1976d603b21

7 years agoMerge "Adding some tests for request pin shortcut/widget flow" into ub-launcher3...
TreeHugger Robot [Wed, 22 Feb 2017 23:53:26 +0000 (23:53 +0000)]
Merge "Adding some tests for request pin shortcut/widget flow" into ub-launcher3-dorval

7 years agoAdding some tests for request pin shortcut/widget flow
Sunny Goyal [Wed, 25 Jan 2017 19:19:59 +0000 (11:19 -0800)]
Adding some tests for request pin shortcut/widget flow

Bug: 33584624
Change-Id: I49df36f60d2ae071b9d2c77c9c3300e010cd3bb9

7 years agoSimplifying Model data load state management
Sunny Goyal [Fri, 17 Feb 2017 19:22:34 +0000 (11:22 -0800)]
Simplifying Model data load state management

Instead of maintaining 3 different states, each tied to a subset of data,
maintaing a single state that represents all the data. Individual subset
data is invalidated in rare cases and these invalidates are tightly tied
to the UI. This also allows us to add new data to the model, without worring
about classifying the data into a subset.

Bug: 34112546
Change-Id: Id9cb273de35b79e84a2ef8d6556fcf1e72fb4b75

7 years agoRemove first icon from notification footer after it animates.
Tony Wickham [Fri, 27 Jan 2017 21:18:30 +0000 (13:18 -0800)]
Remove first icon from notification footer after it animates.

Before, we had a hack where the notifation view would tell the
footer to trim its notifications, which is inefficient and ugly
since we already know exactly what notification to remove. So
now we move the relevant removal logic (keeping things like the
overflow text in sync) to a removeViewFromIconRow() that is
used after the icon animates as well as when trimming notifications.

Bug: 32410600
Change-Id: I19e54e0c28daea869b45649c7f5c74843412bb86

7 years agoMerge "Close Folder when an item is auto added to it." into ub-launcher3-master
TreeHugger Robot [Wed, 22 Feb 2017 19:46:10 +0000 (19:46 +0000)]
Merge "Close Folder when an item is auto added to it." into ub-launcher3-master

7 years agoEmpty commit to trigger a build.
Bill Rassieur [Wed, 22 Feb 2017 19:28:46 +0000 (19:28 +0000)]
Empty commit to trigger a build.
am: 8dfc049598

Change-Id: Ic3dae2d96ac6dac123392c4d232e1362f3206a32

7 years agoEmpty commit to trigger a build.
Bill Rassieur [Wed, 22 Feb 2017 19:23:19 +0000 (11:23 -0800)]
Empty commit to trigger a build.

BUG: 35639108

7 years agoClose Folder when an item is auto added to it.
Jon Miranda [Wed, 22 Feb 2017 18:17:49 +0000 (10:17 -0800)]
Close Folder when an item is auto added to it.

This can happen when items (as part of a Work Profile) are auto added
to the Work profile Folder.

Bug: 35628160
Change-Id: I29d3b277b0e9cd4bb238fb5aff9a52c6b9e764f8

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 22 Feb 2017 15:53:34 +0000 (07:53 -0800)]
Import translations. DO NOT MERGE

Change-Id: I2424c6b29a8d71a3fb697a85f82f2678774c975f
Auto-generated-cl: translation import

7 years agoMerge "Fixing accessibility description for all-apps grid adapter. Only counting...
Sunny Goyal [Wed, 22 Feb 2017 01:18:16 +0000 (01:18 +0000)]
Merge "Fixing accessibility description for all-apps grid adapter. Only counting app icons towards various collection related info" into ub-launcher3-master

7 years agoFixing accessibility description for all-apps grid adapter.
Sunny Goyal [Wed, 22 Feb 2017 00:43:56 +0000 (16:43 -0800)]
Fixing accessibility description for all-apps grid adapter.
Only counting app icons towards various collection related info

Change-Id: I2aca87e1acf6cd7bdaddfbaad174e273e8272d4b

7 years agoClose all open views when binding the Launcher.
Jon Miranda [Tue, 21 Feb 2017 20:37:51 +0000 (12:37 -0800)]
Close all open views when binding the Launcher.

This fixes a bug where a work profile remains opened even
after the work profile is removed from the device. This can
occur when the work profile is removed with the Folder still opened.

Bug: 35627777
Change-Id: I8d5b4bd9931cad2316b6b8786501d6b3780b7aca

7 years agoMerge "Launcher3: fix app shortcuts for suspended apps" into ub-launcher3-master
TreeHugger Robot [Tue, 21 Feb 2017 20:33:33 +0000 (20:33 +0000)]
Merge "Launcher3: fix app shortcuts for suspended apps" into ub-launcher3-master

7 years agoLauncher3: fix app shortcuts for suspended apps
Charles He [Wed, 15 Feb 2017 12:22:56 +0000 (12:22 +0000)]
Launcher3: fix app shortcuts for suspended apps

This CL fixes app shortcuts for suspended packages.

1) When DO/PO suspends an app, its pinned shortcuts are instantly grayed
out, but this is not persisted after the launcher restarts (e.g. device
reboot). We now enforce the launcher to check the suspended state when
loading the workspace, and gray out pinned shortcut icons accordingly.

2) When DO/PO suspends an app, its app shortcut popup is still
available. We now temporarily disable the popup when the app is
suspended, and persist the state across restarts.

Bug: 32365540
Test: manual, by following the steps in the bug above
Test: manual, by restarting the launcher package
Change-Id: I983d7c17fa198beca23b66459b50bd67b447bdd2

7 years agoFix folder icon animation where it animates downwards on 1st run.
Jon Miranda [Tue, 21 Feb 2017 17:06:51 +0000 (09:06 -0800)]
Fix folder icon animation where it animates downwards on 1st run.

The first time FolderIcon#growAndFadeOut is called, the folder
icon pivot x/y is not set. By moving the call after centerAboutIcon
(which sets the pivot point), we get the expected result of the
animation growing upward.

Bug: 35126799
Change-Id: I22fccb6b23550f823eb7b4485b9584022b810323

7 years agoMerge "Remove badges when launcher loses notification access" into ub-launcher3-master
Tony Wickham [Tue, 21 Feb 2017 16:45:04 +0000 (16:45 +0000)]
Merge "Remove badges when launcher loses notification access" into ub-launcher3-master

7 years agoRemove badges when launcher loses notification access
Tony [Mon, 13 Feb 2017 18:17:37 +0000 (10:17 -0800)]
Remove badges when launcher loses notification access

- NotificationListener.getInstance() has been changed to
  getInstanceIfConnected() (same behavior as before).
- When starting launcher, we send a full refresh of badges
  regardless of whether the NotificationListner is connected.
  If it is not connected, we pass an empty list for the
  active notifications, so that all pre-existing badges are
  removed.

Bug: 35221052
Change-Id: If920317f10814c010e02b5a30ce86a58ac7bc61c

7 years agoEnabling translation for string relates to Add to homescreen confirmation prompt
Sunny Goyal [Fri, 17 Feb 2017 20:10:37 +0000 (12:10 -0800)]
Enabling translation for string relates to Add to homescreen confirmation prompt

Bug: 34819119
Change-Id: Id4c522319c92641faa28bb685f4ea4658aa4ec9e

7 years agoMerge "Simplifying some launcher themes" into ub-launcher3-master
Sunny Goyal [Fri, 17 Feb 2017 17:53:58 +0000 (17:53 +0000)]
Merge "Simplifying some launcher themes" into ub-launcher3-master

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-master
TreeHugger Robot [Fri, 17 Feb 2017 07:43:38 +0000 (07:43 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-master

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 17 Feb 2017 07:40:20 +0000 (07:40 +0000)]
Import translations. DO NOT MERGE
am: e5c99a2140  -s ours

Change-Id: Ifffdd23bc65534039a330bf77ceffaba418982ba

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 17 Feb 2017 07:31:06 +0000 (23:31 -0800)]
Import translations. DO NOT MERGE

Change-Id: Id2b9f6fbdd4aea3663ba8e418888bac8cf956da3
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 17 Feb 2017 07:30:20 +0000 (23:30 -0800)]
Import translations. DO NOT MERGE

Change-Id: If87152e5d565c37127110756f1185f82833ec685
Auto-generated-cl: translation import

7 years agoMerge "Add notification listener back to the manifest" into ub-launcher3-master
Adam Cohen [Fri, 17 Feb 2017 00:50:57 +0000 (00:50 +0000)]
Merge "Add notification listener back to the manifest" into ub-launcher3-master

7 years agoAdd notification listener back to the manifest
Tony [Mon, 13 Feb 2017 15:44:01 +0000 (07:44 -0800)]
Add notification listener back to the manifest

This reverts commit d27b65d4d0035d6b66aac3e6040aa791f155e502.

Also added boolean to values/ and values-v25/ and values-v26/
to enabled/disable the listener by API version.

Bug: 35443111
Bug: 33553066
Change-Id: I69465c720f3b3eca7ae2025e01c315720862bec8

7 years agoSimplifying some launcher themes
Sunny Goyal [Sat, 11 Feb 2017 00:52:16 +0000 (16:52 -0800)]
Simplifying some launcher themes

> Replacing some colors with theme attributes
> Simplifying styles definition by removing unnecessary inheritance and inlining some definitions

Change-Id: Ifa167515cae6a7fd3720f1a52ff9ce11abb4495f

7 years agoMerge "Ensure that filtered notifications are removed from BadgeInfo." into ub-launch...
Tony Wickham [Thu, 16 Feb 2017 23:17:31 +0000 (23:17 +0000)]
Merge "Ensure that filtered notifications are removed from BadgeInfo." into ub-launcher3-master

7 years agoMerge "Separating methods for updating the model to a sepatate class." into ub-launch...
TreeHugger Robot [Thu, 16 Feb 2017 21:56:39 +0000 (21:56 +0000)]
Merge "Separating methods for updating the model to a sepatate class." into ub-launcher3-master

7 years agoSeparating methods for updating the model to a sepatate class.
Sunny Goyal [Thu, 2 Feb 2017 21:52:53 +0000 (13:52 -0800)]
Separating methods for updating the model to a sepatate class.

Removing static access to model update methods, to allow for better
access control and testing

Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704

7 years agoMerge "Updating the shortcut preview generation logic" into ub-launcher3-master
Sunny Goyal [Thu, 16 Feb 2017 21:48:28 +0000 (21:48 +0000)]
Merge "Updating the shortcut preview generation logic" into ub-launcher3-master

7 years agoUpdating the shortcut preview generation logic
Sunny Goyal [Mon, 13 Feb 2017 18:44:43 +0000 (10:44 -0800)]
Updating the shortcut preview generation logic

Drawing a shortcut icon on a white round-rect with shadow
Also center aligning the preview

Bug: 34819119
Change-Id: Ic25be6bf301aeb11315a5050f009259b26c6134a

7 years agoRemoving wrapper around ViewPropertyAnimator, and using ObjectAnimator
Sunny Goyal [Mon, 13 Feb 2017 20:13:43 +0000 (12:13 -0800)]
Removing wrapper around ViewPropertyAnimator, and using ObjectAnimator
instead

Bug: 35218222
Change-Id: Ic714cf7d20989cb45f07712e8a6f6659d0e3f30d

7 years agoMerge "Fixing wrong check for grid migration" into ub-launcher3-master
TreeHugger Robot [Thu, 16 Feb 2017 18:08:15 +0000 (18:08 +0000)]
Merge "Fixing wrong check for grid migration" into ub-launcher3-master

7 years agoMerge "Adding some logging around launcher grid when device profile changes" into...
Sunny Goyal [Thu, 16 Feb 2017 18:01:46 +0000 (18:01 +0000)]
Merge "Adding some logging around launcher grid when device profile changes" into ub-launcher3-master

7 years agoMerge "Animate notification background color directly" into ub-launcher3-master
Tony Wickham [Thu, 16 Feb 2017 16:39:17 +0000 (16:39 +0000)]
Merge "Animate notification background color directly" into ub-launcher3-master

7 years agoMerge "Ignore touches before notification is populated" into ub-launcher3-master
Tony Wickham [Thu, 16 Feb 2017 16:38:59 +0000 (16:38 +0000)]
Merge "Ignore touches before notification is populated" into ub-launcher3-master

7 years agoAnimate notification background color directly
Tony [Tue, 14 Feb 2017 18:18:48 +0000 (10:18 -0800)]
Animate notification background color directly

Before we were calling setBackgroundColor() in the update
listener, which is less efficient because it creates a
new ColorDrawable; now we reuse one throughout.

Change-Id: I0cd87e5ee72af41d2dae4375ce3df9fd6e92bd82

7 years agoIgnore touches before notification is populated
Tony Wickham [Thu, 16 Feb 2017 00:03:27 +0000 (16:03 -0800)]
Ignore touches before notification is populated

Bug: 35398757
Change-Id: I24f1b66787af7c7caeb325e9a1f3e6ef86e62b81

7 years agoFallback to WallpaperManager#getDrawable() if getWallpaperFile() is null
Tony Wickham [Wed, 15 Feb 2017 22:53:08 +0000 (14:53 -0800)]
Fallback to WallpaperManager#getDrawable() if getWallpaperFile() is null

Bug: 34521181
Change-Id: Ifc5f7cd9a11ff1f66acaadaea494ba4a0d142c3c