Commit Graph

6636 Commits

Author SHA1 Message Date
Tony Wickham 66b7a74d9e Move some code from AllAppsTransitionController to VeriticalPullDetector
This makes VerticalPullDetector more generic
and able to be used elsewhere.

Bug: 34940468
Change-Id: I78f70529cb30e5c9e7748ca548f2d638c6d0811f
2017-03-20 16:22:41 -07:00
Sunny Goyal 4610324261 Revert "Adding some logging around launcher grid when device profile changes"
Bug: 35425060
This reverts commit c29de85780.

Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de
2017-03-20 16:08:17 -07:00
Mario Bertschler 08ffaae3b6 Show promise app icon progress in All Apps and setup market intent
on clicking promise app icon in All Apps.

Only the progress will be changed with animation on progress update,
no relayout is performed. If the icon is newly bound, the progress
will not be animated.

Bug: 23952570
Change-Id: I98d3f945f08a2abadf53f20e6007c15e56d5d410
2017-03-20 16:02:24 -07:00
Sunny Goyal bf4327520c Merge "Removing config shortcut activities for managed profiles for apps build with older sdk" into ub-launcher3-dorval
am: aeb60bffc9

Change-Id: I9570796d6ef999c346ac856b997c13685b51ac39
2017-03-20 22:25:15 +00:00
TreeHugger Robot aeb60bffc9 Merge "Removing config shortcut activities for managed profiles for apps build with older sdk" into ub-launcher3-dorval 2017-03-20 22:20:06 +00:00
Sunny Goyal b57645fcdb 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
2017-03-20 15:13:51 -07:00
Jon Miranda 5150d59603 Add padding to pending widget background.
Bug: 36450202
Change-Id: I12c754d0ff1ac2f9a63d2e475bff5524fe51cb57
2017-03-20 14:51:43 -07:00
Tony Wickham de33e76948 Merge "Filter out some notifications." into ub-launcher3-dorval
am: 3dc60c6e39

Change-Id: Iec950f7666aa232c2655c73016e36bc1e1d2e9f6
2017-03-20 21:38:14 +00:00
Tony Wickham 3dc60c6e39 Merge "Filter out some notifications." into ub-launcher3-dorval 2017-03-20 21:29:20 +00:00
Justin Cui 6d00d97704 Merge "Make landscapeProfile and protraitProfile public." into ub-launcher3-dorval
am: b00fcd4e49

Change-Id: Ie62cdf16f27edf46e5b2bbec81873b99f124bb48
2017-03-20 17:41:58 +00:00
Justin Cui b00fcd4e49 Merge "Make landscapeProfile and protraitProfile public." into ub-launcher3-dorval 2017-03-20 17:35:50 +00:00
cuijiaxing abda8d79b4 Make landscapeProfile and protraitProfile public.
This is needed to make prediction sticky: b/21654652

Change-Id: Ie8cb77ed9cbf1bf5b164828d0c4335111039e7c5
2017-03-20 17:14:11 +00:00
Sunny Goyal afc3f09240 Adding support for showing the widget preview based on the provided RemoteViews
am: c65a0085d7

Change-Id: Iabea96bb74294e2775a08427c17e154020d9bc40
2017-03-17 18:41:31 +00:00
Mario Bertschler f71bb700aa Merge "Show promise app icon in All Apps while installation process." into ub-launcher3-master 2017-03-17 18:41:20 +00:00
Sunny Goyal c65a0085d7 Adding support for showing the widget preview based on the provided RemoteViews
Bug: 35811129
Change-Id: I336e48cd00cfec2e617ac73bd8a81419b0944aa7
2017-03-17 11:25:29 -07:00
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
Jonathan Miranda 54c5fe5ddc Merge "Revert "Temporary fix for Widgets in battery saver mode."" into ub-launcher3-dorval
am: d8ea01ccf0

Change-Id: I8592ea63a61b284c5b740b6d9898c43bcbe44747
2017-03-16 21:34:04 +00:00
Jonathan Miranda 5f77fdb8b9 Merge "Revert "Temporary fix for Folders in battery saver mode."" into ub-launcher3-dorval
am: 3345f133a0

Change-Id: If2c4fa92842c08501b90f3da6bc972e4ba32c6a8
2017-03-16 21:30:35 +00:00
Jonathan Miranda d8ea01ccf0 Merge "Revert "Temporary fix for Widgets in battery saver mode."" into ub-launcher3-dorval 2017-03-16 21:29:13 +00:00
Jonathan Miranda 3345f133a0 Merge "Revert "Temporary fix for Folders in battery saver mode."" into ub-launcher3-dorval 2017-03-16 21:28:21 +00:00
Jonathan Miranda 57299dae0c Revert "Temporary fix for Widgets in battery saver mode."
Note: b/36157561 has been properly fixed.

This reverts commit 08d8bb9cde.

Change-Id: I55e04283d2013f965afc17bcb0482a50440a96ee
2017-03-16 20:24:42 +00:00
Jonathan Miranda fb6c32a983 Revert "Temporary fix for Folders in battery saver mode."
Note: b/36157561 has been properly fixed.

This reverts commit 715a322e9a.

Change-Id: I267db053a45a75fdef71c6d178f140c7abcb8616
2017-03-16 20:24:21 +00:00
Tony Wickham 3f9f3a024d Merge "Small cleanup for notifications" into ub-launcher3-dorval
am: 904166fd1e

Change-Id: I1f7eecf94ca6dd495e8ebdb3f0a98354a833678d
2017-03-16 19:27:26 +00:00
Tony Wickham 904166fd1e Merge "Small cleanup for notifications" into ub-launcher3-dorval 2017-03-16 19:22:51 +00:00
Jon Miranda a7cddd2c96 Refactor Folder/FolderAnimationManager code.
* FolderAnimationManager is now lazy loaded.
* Extract methods to simplify code.

Bug: 35064148

Change-Id: I08a72ef19a1f21637f033059d5e228ef67135ccd
2017-03-16 12:12:46 -07:00
Tony Wickham 74884ce164 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
2017-03-15 15:43:27 -07:00
Tony Wickham 81ebe383f5 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
2017-03-15 14:46:02 -07:00
Jon Miranda a984221a37 Temporary fix for Widgets in battery saver mode.
am: 08d8bb9cde

Change-Id: If816544f1a115f5d3882b4335b747cae29a0205a
2017-03-15 18:44:40 +00:00
Jon Miranda 08d8bb9cde Temporary fix for Widgets in battery saver mode.
Bug: 36246234
Bug: 36240579
Change-Id: Iced0ea87333011aef1dbdadd0036427207e377d9
2017-03-15 11:28:59 -07:00
Tony Wickham 185f854bfa Merge "Use default icon if notification icon is null." into ub-launcher3-dorval
am: a431fbb850

Change-Id: I493ea6c4248c81f33e5267e2450e646cff23c955
2017-03-15 17:30:30 +00:00
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