OSDN Git Service

android-x86/packages-apps-Launcher3.git
7 years agoMerge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3...
TreeHugger Robot [Mon, 17 Apr 2017 17:21:34 +0000 (17:21 +0000)]
Merge "Updating getApplicationInfo to handle NameNotFoundException" into ub-launcher3-dorval

7 years agoUpdating getApplicationInfo to handle NameNotFoundException
Sunny Goyal [Mon, 17 Apr 2017 17:03:01 +0000 (10:03 -0700)]
Updating getApplicationInfo to handle NameNotFoundException

Bug: 37324177
Change-Id: If4caf7c61667fc874e7dbaff9f8c48b2c2cc107f

7 years agoMerge "Separating the DB upgrade into two paths: > schema update: changes in the...
TreeHugger Robot [Mon, 17 Apr 2017 16:42:34 +0000 (16:42 +0000)]
Merge "Separating the DB upgrade into two paths: > schema update: changes in the table schema > data update: backward compatible changes to the data" into ub-launcher3-dorval

7 years agoSeparating the DB upgrade into two paths:
Sunny Goyal [Thu, 13 Apr 2017 19:01:47 +0000 (12:01 -0700)]
Separating the DB upgrade into two paths:
> schema update: changes in the table schema
> data update: backward compatible changes to the data

Bug: 37257575
Change-Id: I856854ff2bffa2701f903a24fdc3baf6641175fd

7 years ago[DO NOT MERGE] legacy icon treatment / circle detection
Hyunyoung Song [Mon, 17 Apr 2017 04:32:20 +0000 (21:32 -0700)]
[DO NOT MERGE] legacy icon treatment / circle detection
Bug: 37357483

Change-Id: I63049ad61ad259f546fcf5077ded0a5f444e4395

7 years agoFix popup item animation pivot
Tony Wickham [Tue, 11 Apr 2017 21:42:17 +0000 (14:42 -0700)]
Fix popup item animation pivot

Now it is based on the arrow center instead of height / 2
(this used to be the same when all items were separate)

Change-Id: I76c04344400c6d306e8404c1e93765adfbd0fe23

7 years agoMerge "Ensure system shortcut icons always appear in correct order" into ub-launcher3...
Tony Wickham [Fri, 14 Apr 2017 18:01:33 +0000 (18:01 +0000)]
Merge "Ensure system shortcut icons always appear in correct order" into ub-launcher3-dorval

7 years agoMerge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval
Tony Wickham [Thu, 13 Apr 2017 22:55:57 +0000 (22:55 +0000)]
Merge "Update widgets bottom sheet to match redlines" into ub-launcher3-dorval

7 years agoEnsure system shortcut icons always appear in correct order
Tony Wickham [Thu, 13 Apr 2017 22:31:37 +0000 (15:31 -0700)]
Ensure system shortcut icons always appear in correct order

- Remove "|| true" that I accidentally left in from testing on a
  different CL
- Always reverse system shortcut icons that appear in the header of the
  ShortcutsItemView, so they are in priority order from right to left

Bug: 35766387
Change-Id: Ia7ac5a72eb2f6d3795e35bd044c426ef46fc0ccc

7 years agoUpdate widgets bottom sheet to match redlines
Tony Wickham [Wed, 12 Apr 2017 00:21:12 +0000 (17:21 -0700)]
Update widgets bottom sheet to match redlines

- Remove "Configurable shortcuts" row, and put all widgets in one row
- Update some sizes and colors and text
- Center widget row if only one widget

Bug: 35766387
Change-Id: Ic3850feadee1cbbbdd68a772f597741d54949703

7 years agoMerge "Updating gradle and build tools version" into ub-launcher3-dorval
TreeHugger Robot [Thu, 13 Apr 2017 18:46:17 +0000 (18:46 +0000)]
Merge "Updating gradle and build tools version" into ub-launcher3-dorval

7 years agoUpdating gradle and build tools version
Sunny Goyal [Thu, 13 Apr 2017 18:24:54 +0000 (11:24 -0700)]
Updating gradle and build tools version

Change-Id: I269788d6d7798a5324a9170935c31a7c565cc214

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-dorval
TreeHugger Robot [Thu, 13 Apr 2017 13:52:06 +0000 (13:52 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 13 Apr 2017 10:57:49 +0000 (03:57 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Add app info icon with no shadow for popup" into ub-launcher3-dorval
Tony Wickham [Wed, 12 Apr 2017 22:35:51 +0000 (22:35 +0000)]
Merge "Add app info icon with no shadow for popup" into ub-launcher3-dorval

7 years agoAdd app info icon with no shadow for popup
Tony Wickham [Tue, 11 Apr 2017 23:21:41 +0000 (16:21 -0700)]
Add app info icon with no shadow for popup

- Also changed opacities of the system shortcut icons to match spec
  (38% black in header, 54% when expanded view is shown)

Bug: 35766387
Change-Id: I73881bf1c72c98d78a38d82c632c4954b02eff4e

7 years agoMerge "Remove reflection for a couple of methods" into ub-launcher3-dorval
TreeHugger Robot [Wed, 12 Apr 2017 00:35:01 +0000 (00:35 +0000)]
Merge "Remove reflection for a couple of methods" into ub-launcher3-dorval

7 years agoUpdate popup to match redlines
Tony Wickham [Mon, 10 Apr 2017 21:05:34 +0000 (14:05 -0700)]
Update popup to match redlines

- Update specs in dimens.xml and colors.xml
- Move notification count to top right, and keep "Notifications" in left
    - Also removed NotificationHeaderView and instead use FrameLayout
- Limit to 2 shortcuts instead of 3 if there are notifications
- Use SP instead of DP for text (b/35869307)

Bug: 35766387
Change-Id: I892640933ad6351946af3df6c805b98bb4e7cb50

7 years agoRemove reflection for a couple of methods
Tony Wickham [Tue, 11 Apr 2017 23:39:58 +0000 (16:39 -0700)]
Remove reflection for a couple of methods

Bug: 36855196
Change-Id: I3e6b2901d1c12fffd0172e85df98e2e17e737168

7 years agoMerge "Disable notification listener on pre-26" into ub-launcher3-dorval
Tony Wickham [Mon, 10 Apr 2017 23:19:51 +0000 (23:19 +0000)]
Merge "Disable notification listener on pre-26" into ub-launcher3-dorval

7 years agoDisable notification listener on pre-26
Tony Wickham [Mon, 10 Apr 2017 22:18:48 +0000 (15:18 -0700)]
Disable notification listener on pre-26

Also remove isAtLeastO() checks in NotificationListener

Bug: 35443111
Bug: 37207407
Change-Id: If3eef406328f73d114d826e6c8a158bdc3788cac

7 years agoMerge "Marking icon paths as non-translatable" into ub-launcher3-dorval
TreeHugger Robot [Mon, 10 Apr 2017 18:36:47 +0000 (18:36 +0000)]
Merge "Marking icon paths as non-translatable" into ub-launcher3-dorval

7 years agoMerge "Only create one bitmap to clip popup item corners" into ub-launcher3-dorval
Tony Wickham [Mon, 10 Apr 2017 16:33:35 +0000 (16:33 +0000)]
Merge "Only create one bitmap to clip popup item corners" into ub-launcher3-dorval

7 years agoMarking icon paths as non-translatable
Sunny Goyal [Mon, 10 Apr 2017 15:27:28 +0000 (08:27 -0700)]
Marking icon paths as non-translatable

Change-Id: Ifbe6c5a7edbc3ea361ae4a8ee38f9cde681813dc

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 8 Apr 2017 05:20:58 +0000 (22:20 -0700)]
Import translations. DO NOT MERGE

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

7 years agoOnly create one bitmap to clip popup item corners
Tony Wickham [Fri, 7 Apr 2017 16:21:25 +0000 (09:21 -0700)]
Only create one bitmap to clip popup item corners

Previously we created a bitmap the size of the entire popup item and
drew a rounded rect in it to clip the corners. Now we create a bitmap
that is only the size of the rounded corner radius, and rotate and
translate it to all four corners to achieve the same clipping.

Besides the reduced memory of this approach, it also simplifies things
when we reduce the item's height (e.g. when the second to last
notification is dismissed), because we no longer have to recreate the
background bitmap to match the new size; the translation calculations
in dispatchDraw() automatically take the current size into account.

Bug: 35869307
Change-Id: I938bbc4bd87479580287426b4197516caf1a64d4

7 years agoMerge "Launcher dump proto that will be used for:" into ub-launcher3-dorval
Hyunyoung Song [Thu, 6 Apr 2017 22:42:10 +0000 (22:42 +0000)]
Merge "Launcher dump proto that will be used for:" into ub-launcher3-dorval

7 years ago[cleanup] Shadows should not be clipped on AdaptiveIconDrawable
Hyunyoung Song [Wed, 5 Apr 2017 22:01:06 +0000 (15:01 -0700)]
[cleanup] Shadows should not be clipped on AdaptiveIconDrawable
b/36702964

Change-Id: I28d460eee6de84cd74866223b92d43274d64d334

7 years agoShadows should not be clipped on AdaptiveIconDrawable
Hyunyoung Song [Wed, 5 Apr 2017 20:15:13 +0000 (13:15 -0700)]
Shadows should not be clipped on AdaptiveIconDrawable
b/36702964

Change-Id: Ic7363196aa493b4aa6a2dffa9c3e8f3399b1b3f3

7 years agoMerge "Add support for getting widgets/shortucts for a particular package/user" into...
Tony Wickham [Wed, 5 Apr 2017 19:54:40 +0000 (19:54 +0000)]
Merge "Add support for getting widgets/shortucts for a particular package/user" into ub-launcher3-dorval

7 years agoLauncher dump proto that will be used for:
Hyunyoung Song [Mon, 6 Feb 2017 18:46:24 +0000 (10:46 -0800)]
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
(cherry picked from commit 6aa3729e98502d4cffc40a7e602628b85d558edd)

7 years agoAdd support for getting widgets/shortucts for a particular package/user
Tony Wickham [Wed, 29 Mar 2017 22:30:43 +0000 (15:30 -0700)]
Add support for getting widgets/shortucts for a particular package/user

Bug: 34940468
Bug: 33553066
Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df

7 years agoAdding support for dynamically change icon shape for AdaptiveIcons
Sunny Goyal [Sat, 1 Apr 2017 03:09:34 +0000 (20:09 -0700)]
Adding support for dynamically change icon shape for AdaptiveIcons

> This would allow developers to verify their icon designs on different
device configurations
> This settings is only visible when developer settings is enabled

Change-Id: I7e32abfede001c134f23390734dcd39c93b68b9a

7 years agoSmall UI fix for widgets/app info shortcuts
Tony Wickham [Mon, 3 Apr 2017 21:27:04 +0000 (14:27 -0700)]
Small UI fix for widgets/app info shortcuts

- Switch order of widgets & more and app info.
- Start binding widgets after starting to update these shortcuts on the
  UI thread, so that they will show up without waiting for the bind
  logic, which can take a while. We already have a callback mechanism
  for enabling widgets & more after widgets are bound, so this was how
  it was supposed to work already.

Change-Id: I5f702f9c0814d30acf6298be309c6dc30727316e

7 years agoClearing icon cache due to system app icon changes (without any SDK change)
Sunny Goyal [Mon, 3 Apr 2017 21:12:15 +0000 (14:12 -0700)]
Clearing icon cache due to system app icon changes (without any SDK change)

Bug: 36366450
Change-Id: I23b77bd2bff292dee0e9ec576ba49f03e34628a6

7 years agoMerge "Temporarily use reflection to get notification badge icon type" into ub-launch...
TreeHugger Robot [Mon, 3 Apr 2017 17:44:13 +0000 (17:44 +0000)]
Merge "Temporarily use reflection to get notification badge icon type" into ub-launcher3-dorval

7 years agoTemporarily use reflection to get notification badge icon type
Tony Wickham [Mon, 3 Apr 2017 17:18:42 +0000 (10:18 -0700)]
Temporarily use reflection to get notification badge icon type

Bug: 36855196
Change-Id: I408a98140c68f38327a6cd8ce4cc46c5f2fe34e6

7 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-dorval
TreeHugger Robot [Fri, 31 Mar 2017 21:25:37 +0000 (21:25 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-dorval

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 31 Mar 2017 01:26:20 +0000 (18:26 -0700)]
Import translations. DO NOT MERGE

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

7 years agoAdd support for system shortcuts in popup container
Tony Wickham [Tue, 21 Mar 2017 00:12:24 +0000 (17:12 -0700)]
Add support for system shortcuts in popup container

- Currently the system shortcuts are just widgets and app info
- As shortcuts, they live in ShortcutsItemView
- They are populated either as icons only (if there are deep
  shortcuts) or as icons + text
- Widgets are disabled until binding them is complete (we request for
  them to be bound on long-press now). We should revisit this.

Bug: 34940468
Change-Id: Ia51d002c3b3ede87658bdab57abfc3eeca1ed242

7 years agoMerge "Delay the PinItemRequest#accept() call until the drop animation is finished...
TreeHugger Robot [Thu, 30 Mar 2017 23:32:57 +0000 (23:32 +0000)]
Merge "Delay the PinItemRequest#accept() call until the drop animation is finished." into ub-launcher3-dorval

7 years agoMerge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval
Tony Wickham [Thu, 30 Mar 2017 23:21:39 +0000 (23:21 +0000)]
Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval

7 years agoAdd WidgetsAndMore bottom sheet
Tony Wickham [Tue, 21 Mar 2017 00:12:24 +0000 (17:12 -0700)]
Add WidgetsAndMore bottom sheet

- Contains two rows, one for widgets, and one for "configurable
  shortcuts" that have customization activities
- Extends AbstractFloatingView and uses VerticalPullDetector for
  touch interactions
- No way to show this currently; will add options to popup in followup

Bug: 34940468
Change-Id: Iab62c2cb89428f91119c9c86f9db886496c321fd

7 years agoDelay the PinItemRequest#accept() call until the drop animation is finished.
Sunny Goyal [Thu, 30 Mar 2017 22:30:47 +0000 (15:30 -0700)]
Delay the PinItemRequest#accept() call until the drop animation is finished.

This prevents the caller app from taking over the focus while animation
it running.

Change-Id: I51b6673c59e848c263727502dee90504ed3a2162

7 years agoUpdating some strings in add widget/shortcut flow
Sunny Goyal [Thu, 30 Mar 2017 19:30:41 +0000 (12:30 -0700)]
Updating some strings in add widget/shortcut flow

Bug: 36725328
Change-Id: I1006a48201fc5abb5c1f70c244c79a63f3195565

7 years agoMerge "Fixing multiwindow drag operation during with rotation." into ub-launcher3...
TreeHugger Robot [Thu, 30 Mar 2017 19:18:00 +0000 (19:18 +0000)]
Merge "Fixing multiwindow drag operation during with rotation." into ub-launcher3-dorval

7 years agoMerge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3...
TreeHugger Robot [Thu, 30 Mar 2017 18:58:17 +0000 (18:58 +0000)]
Merge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3-dorval

7 years agoMerge "Add isInMultiWindowMode bool to all logs." into ub-launcher3-dorval
TreeHugger Robot [Tue, 28 Mar 2017 19:02:14 +0000 (19:02 +0000)]
Merge "Add isInMultiWindowMode bool to all logs." into ub-launcher3-dorval

7 years agoMerge "Log when users exit Overview mode by tapping on the Workspace." into ub-launch...
TreeHugger Robot [Tue, 28 Mar 2017 19:00:58 +0000 (19:00 +0000)]
Merge "Log when users exit Overview mode by tapping on the Workspace." into ub-launcher3-dorval

7 years agoFixing multiwindow drag operation during with rotation.
Sunny Goyal [Mon, 20 Mar 2017 22:08:06 +0000 (15:08 -0700)]
Fixing multiwindow drag operation during with rotation.

> Finishing activity when rotation preference change. This ensures that
  any prefenrece change is immediately applied instead of waiting for resume
  as the new activity is always started with proper setting.
> Clearing task when starting drag in landscape mode. This ensures that a new
  activity instance is started in this case, which overrides previous locked
  rotation by launcher activity.
> Handling drag request in onCreate and enabling rotation based on it.
> Clearing any request from the launcher intent once the drag operation
  is complete

Bug: 36226746
Change-Id: I69f56c13827c25f3e1bc84935cb2acc59b6bd349

7 years agoMerge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval
TreeHugger Robot [Mon, 27 Mar 2017 18:33:52 +0000 (18:33 +0000)]
Merge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval

7 years agoRemoving some unnecessary stacktraces from the log
Sunny Goyal [Mon, 27 Mar 2017 18:22:36 +0000 (11:22 -0700)]
Removing some unnecessary stacktraces from the log

Bug: 36604650
Change-Id: If754aacf37fed5fdc9ff419812c0924ad136eb45

7 years agoMerge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval
Tony Wickham [Mon, 27 Mar 2017 17:53:40 +0000 (17:53 +0000)]
Merge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval

7 years agoMerge "De-dupe shortcuts with the same id as the main notification." into ub-launcher...
TreeHugger Robot [Mon, 27 Mar 2017 17:51:46 +0000 (17:51 +0000)]
Merge "De-dupe shortcuts with the same id as the main notification." into ub-launcher3-dorval

7 years agoMerge "Revert "Adding some logging around launcher grid when device profile changes...
TreeHugger Robot [Mon, 27 Mar 2017 17:21:48 +0000 (17:21 +0000)]
Merge "Revert "Adding some logging around launcher grid when device profile changes"" into ub-launcher3-dorval

7 years agoUse notification counts (instead of assuming all 1)
Tony Wickham [Sat, 25 Feb 2017 02:06:14 +0000 (18:06 -0800)]
Use notification counts (instead of assuming all 1)

We still ignore group summary headers, which means, for example,
we won't get Gmail unread count. But single notifications that
have numbers associated, such as messages from a single contact
will be included in the badge count. So if you have 2 hangounts
threads, one with 10 messages and one with 8, the badge would
say 18.

Bug: 34939841
Change-Id: I20b9a857d91715e10c0da400a1cee209d7b837b8

7 years agoDe-dupe shortcuts with the same id as the main notification.
Tony Wickham [Fri, 24 Mar 2017 18:31:12 +0000 (11:31 -0700)]
De-dupe shortcuts with the same id as the main notification.

- Pass NotificationKeyData, which includes the shortcut id, instead of
  just the notification key from NotificationListener
- Remove the shortcut with the same shortcut id as the first
  notification, if it has one, in PopupPopulator#sortAndFilterShorcuts()
- Add some unit tests

Bug: 36571718
Change-Id: I308941b34c525b34686583476e3f82ccb8b7e2d8

7 years agoTemporarily ignoring session broadcasts for 3 hours
Sunny Goyal [Fri, 24 Mar 2017 16:07:05 +0000 (09:07 -0700)]
Temporarily ignoring session broadcasts for 3 hours

Bug: 34957633
Change-Id: Ia82a4a33f3ab07c12e98bd9060a839d660827acd

7 years agoShow recently used instant apps provided by the app discovery service
Mario Bertschler [Thu, 23 Mar 2017 21:48:53 +0000 (14:48 -0700)]
Show recently used instant apps provided by the app discovery service
in the same section as installed apps.

Change-Id: I2efd41c69960c4982523c58893aacfc7a5d0bb2e

7 years agoAdding logging for various interaction in PinItemRequest UI
Sunny Goyal [Tue, 21 Mar 2017 18:59:04 +0000 (11:59 -0700)]
Adding logging for various interaction in PinItemRequest UI

Bug: 34766840
Change-Id: Ib29d7d4b53ab99cdf3ff253976ef55345729487b

7 years agoAdd isInMultiWindowMode bool to all logs.
Jon Miranda [Wed, 22 Mar 2017 17:25:17 +0000 (10:25 -0700)]
Add isInMultiWindowMode bool to all logs.

Example output:
D/UserEvent: action:LONGPRESS
       Source child:WORKSPACE id=0
       Elapsed container 1850 ms session 1850 ms action 0 ms
       isInMultiWindowMode true

Bug: 34250955

Change-Id: If21484e8bbb0f4f311c2eb6e94b7dcea6d2431af

7 years agoMerge "Removing the profile extra from intent and using the profile id from the profi...
Sunny Goyal [Tue, 21 Mar 2017 23:15:58 +0000 (23:15 +0000)]
Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval

7 years agoRemoving the profile extra from intent and using the profile id from the profile...
Sunny Goyal [Tue, 21 Mar 2017 22:12:01 +0000 (15:12 -0700)]
Removing the profile extra from intent and using the profile id from the profile column

The intent extra is not always correct as the profile id can change during backup restore.
This allows us to use a consistant behavior everywhere.

Change-Id: I004bd244204ca91758b1d42488e1fc13b0ccb998

7 years agoAdd support for making nav bar light separately from status bar
Tony Wickham [Mon, 20 Mar 2017 23:49:37 +0000 (16:49 -0700)]
Add support for making nav bar light separately from status bar

Bug: 34940468
Change-Id: Ie5543895e4c8b8753c84ef24633377cc985efc0d

7 years agoMerge "Move some code from AllAppsTransitionController to VeriticalPullDetector"...
Tony Wickham [Mon, 20 Mar 2017 23:52:39 +0000 (23:52 +0000)]
Merge "Move some code from AllAppsTransitionController to VeriticalPullDetector" into ub-launcher3-dorval

7 years agoMerge "Add padding to pending widget background." into ub-launcher3-dorval
Jonathan Miranda [Mon, 20 Mar 2017 23:34:42 +0000 (23:34 +0000)]
Merge "Add padding to pending widget background." into ub-launcher3-dorval

7 years agoMove some code from AllAppsTransitionController to VeriticalPullDetector
Tony Wickham [Mon, 20 Mar 2017 23:11:54 +0000 (16:11 -0700)]
Move some code from AllAppsTransitionController to VeriticalPullDetector

This makes VerticalPullDetector more generic
and able to be used elsewhere.

Bug: 34940468
Change-Id: I78f70529cb30e5c9e7748ca548f2d638c6d0811f

7 years agoRevert "Adding some logging around launcher grid when device profile changes"
Sunny Goyal [Mon, 20 Mar 2017 23:07:10 +0000 (23:07 +0000)]
Revert "Adding some logging around launcher grid when device profile changes"

Bug: 35425060
This reverts commit c29de857807680bf72ebd386cbec716b33d64780.

Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de

7 years agoMerge "Removing config shortcut activities for managed profiles for apps build with...
TreeHugger Robot [Mon, 20 Mar 2017 22:20:06 +0000 (22:20 +0000)]
Merge "Removing config shortcut activities for managed profiles for apps build with older sdk" into ub-launcher3-dorval

7 years agoRemoving config shortcut activities for managed profiles for
Sunny Goyal [Mon, 20 Mar 2017 20:57:28 +0000 (13:57 -0700)]
Removing config shortcut activities for managed profiles for
apps build with older sdk

> Also fixing the bug where legacy icon with primary user gets
created when managed user failed to provide the new icon

Bug: 34392403
Change-Id: I1d56962e9520742781df6cbeb03be2b9767a8c0b

7 years agoAdd padding to pending widget background.
Jon Miranda [Mon, 20 Mar 2017 21:47:08 +0000 (14:47 -0700)]
Add padding to pending widget background.

Bug: 36450202
Change-Id: I12c754d0ff1ac2f9a63d2e475bff5524fe51cb57

7 years agoMerge "Filter out some notifications." into ub-launcher3-dorval
Tony Wickham [Mon, 20 Mar 2017 21:29:20 +0000 (21:29 +0000)]
Merge "Filter out some notifications." into ub-launcher3-dorval

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 agoFilter out some notifications.
Tony Wickham [Wed, 15 Mar 2017 16:44:40 +0000 (09:44 -0700)]
Filter out some notifications.

- Filter out any notification without title and text
- Filter out ongoing notifications on the default, legacy channel
- Respect notification's badgeIcon param instead of always using
  BADGE_ICON_LARGE (this way we can change the default on system)

Bug: 35097755
Bug: 36150272
Change-Id: If10b663e27a96354fd40a6e0f71e17b250290115

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