Commit Graph

6256 Commits

Author SHA1 Message Date
Tony Wickham d73fbb5f97 Merge "Add WidgetsAndMore bottom sheet" into ub-launcher3-dorval 2017-03-30 23:21:39 +00:00
Tony Wickham 50e5165b78 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
2017-03-30 15:48:53 -07:00
TreeHugger Robot 1188b89dc4 Merge "Fixing multiwindow drag operation during with rotation." into ub-launcher3-dorval 2017-03-30 19:18:01 +00:00
TreeHugger Robot c5c9cae70d Merge "Adding logging for various interaction in PinItemRequest UI" into ub-launcher3-dorval 2017-03-30 18:58:18 +00:00
TreeHugger Robot 8eb0de1331 Merge "Add isInMultiWindowMode bool to all logs." into ub-launcher3-dorval 2017-03-28 19:02:14 +00:00
TreeHugger Robot 7ef804c917 Merge "Log when users exit Overview mode by tapping on the Workspace." into ub-launcher3-dorval 2017-03-28 19:00:58 +00:00
Sunny Goyal 5a81c3806b 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
2017-03-28 09:36:52 -07:00
TreeHugger Robot 66485063d0 Merge "Removing some unnecessary stacktraces from the log" into ub-launcher3-dorval 2017-03-27 18:33:52 +00:00
Sunny Goyal eb3ba0fdfb Removing some unnecessary stacktraces from the log
Bug: 36604650
Change-Id: If754aacf37fed5fdc9ff419812c0924ad136eb45
2017-03-27 11:23:18 -07:00
Tony Wickham 35d44b4f85 Merge "Use notification counts (instead of assuming all 1)" into ub-launcher3-dorval 2017-03-27 17:53:40 +00:00
TreeHugger Robot c3dfed43eb Merge "De-dupe shortcuts with the same id as the main notification." into ub-launcher3-dorval 2017-03-27 17:51:46 +00:00
TreeHugger Robot 40dfa3bf6e Merge "Revert "Adding some logging around launcher grid when device profile changes"" into ub-launcher3-dorval 2017-03-27 17:21:48 +00:00
Tony Wickham 3621062339 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
2017-03-27 08:27:12 -07:00
Tony Wickham 2f5bb16915 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
2017-03-24 14:18:53 -07:00
Sunny Goyal 0d7f19a566 Temporarily ignoring session broadcasts for 3 hours
Bug: 34957633
Change-Id: Ia82a4a33f3ab07c12e98bd9060a839d660827acd
2017-03-24 16:08:26 +00:00
Mario Bertschler 853c13d427 Show recently used instant apps provided by the app discovery service
in the same section as installed apps.

Change-Id: I2efd41c69960c4982523c58893aacfc7a5d0bb2e
2017-03-23 15:41:17 -07:00
Sunny Goyal 778634c818 Adding logging for various interaction in PinItemRequest UI
Bug: 34766840
Change-Id: Ib29d7d4b53ab99cdf3ff253976ef55345729487b
2017-03-22 16:47:21 -07:00
Jon Miranda fe96432b43 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
2017-03-22 13:08:50 -07:00
Sunny Goyal 77ff9a4343 Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval 2017-03-21 23:15:59 +00:00
Sunny Goyal 24bb66a1c5 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
2017-03-21 15:14:43 -07:00
Tony Wickham ed68728b1f Add support for making nav bar light separately from status bar
Bug: 34940468
Change-Id: Ie5543895e4c8b8753c84ef24633377cc985efc0d
2017-03-20 16:53:01 -07:00
Tony Wickham 3c2cbd8ad4 Merge "Move some code from AllAppsTransitionController to VeriticalPullDetector" into ub-launcher3-dorval 2017-03-20 23:52:39 +00:00
Jonathan Miranda e04aa92de3 Merge "Add padding to pending widget background." into ub-launcher3-dorval 2017-03-20 23:34:42 +00:00
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
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 3dc60c6e39 Merge "Filter out some notifications." into ub-launcher3-dorval 2017-03-20 21:29:20 +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 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
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 904166fd1e Merge "Small cleanup for notifications" into ub-launcher3-dorval 2017-03-16 19:22:51 +00: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 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 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
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 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 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 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
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