Commit Graph

971 Commits

Author SHA1 Message Date
Mario Bertschler db67e7c7a3 Merge "All Apps transition with gradient and scrim." into ub-launcher3-dorval-polish 2017-05-03 18:04:11 +00:00
Mario Bertschler 48198d004a All Apps transition with gradient and scrim.
The transition is behind a feature flag and
turned off by default.

Change-Id: I155840ba82b5a573d874376797db5f739a52d706
2017-05-03 10:32:57 -07:00
Hyunyoung Song 0811bc5003 Merge "Uninstalling app from recent apps shelf should not leave a hole." into ub-launcher3-dorval
am: 6d163e0fe7

Change-Id: Ib56767f618cbaa3b63afa6871819fd9c85a43747
2017-05-03 00:10:04 +00:00
Hyunyoung Song 51114f2ad3 Uninstalling app from recent apps shelf should not leave a hole.
Bug: 37751234
Change-Id: Ie36d2ab1a24523e5061582dbc0ee347444da8a78
2017-05-02 16:31:47 -07:00
TreeHugger Robot 83519d3fb1 Merge "Updating color extraction to include wallpaper theme color. Also adding mathods and callbacks to pass the related data to the callbacks." into ub-launcher3-dorval-polish 2017-04-26 18:36:32 +00:00
Tony Wickham d4aac0a028 Merge "Move update popup header out of BubbleTextView" into ub-launcher3-dorval
am: 59c4ae4d89

Change-Id: I7d70478ccf17c74c65bab16641f888c105899799
2017-04-26 15:59:58 +00:00
Tony Wickham 2fe09f24eb Move update popup header out of BubbleTextView
Now we update from Launcher, which is both more efficient (only run it
when badges update, not whenever BubbleTextView applies an ItemInfo) and
more logical/cleaner.

Change-Id: Ib77433d9489c29e9781b3a48de37de0e07b5ba07
2017-04-26 08:46:39 -07:00
Sunny Goyal 5e7b238a93 Updating color extraction to include wallpaper theme color.
Also adding mathods and callbacks to pass the related data to the callbacks.

Bug: 37616877
Change-Id: I7512cac7a603e8e5a05ec3a360c9eec493344b00
2017-04-26 08:42:05 -07:00
Tony Wickham 6c300c89ec resolve merge conflicts of 128b7e59a to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I927373593dfb1b67b504a76b1ad013357b363a6e
2017-04-05 13:14:01 -07:00
Tony Wickham 86222d23e2 Add support for getting widgets/shortucts for a particular package/user
Bug: 34940468
Bug: 33553066
Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df
2017-04-04 14:36:52 -07:00
Tony ca4e6b4b59 resolve merge conflicts of 26b174659 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ifb24f291b096b979044e5c87ec58c24e9c479728
2017-03-30 18:10:05 -07:00
Sunny Goyal 917f4a44cb Merge "Delay the PinItemRequest#accept() call until the drop animation is finished." into ub-launcher3-dorval
am: 4a907d0f9d

Change-Id: Icd6d070199cd685633ead1301bda9d3e4de698c9
2017-03-30 23:37:42 +00:00
Tony Wickham 26b1746593 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
2017-03-30 16:35:56 -07:00
TreeHugger Robot 4a907d0f9d Merge "Delay the PinItemRequest#accept() call until the drop animation is finished." into ub-launcher3-dorval 2017-03-30 23:32:57 +00:00
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
Sunny Goyal 8a39b42cc8 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
2017-03-30 15:31:44 -07:00
Sunny Goyal dd64c3d669 Merge "Fixing multiwindow drag operation during with rotation." into ub-launcher3-dorval
am: 1188b89dc4

Change-Id: Ib2f0988d944dff201767d5e85686416aa966e96b
2017-03-30 19:27:29 +00:00
TreeHugger Robot 1188b89dc4 Merge "Fixing multiwindow drag operation during with rotation." into ub-launcher3-dorval 2017-03-30 19:18:01 +00:00
Mario Bertschler a0b4ac56c1 Merge "Minor Refactoring only: no functional change" into ub-launcher3-master 2017-03-28 19:52:48 +00:00
Mario Bertschler c06af333cb Minor Refactoring only: no functional change
- organizing imports
- remove redundant modifiers on LauncherCallback interface
- fix typos

Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
2017-03-28 12:23:22 -07:00
Jon Miranda fcaff64c93 Resolve merge conflicts of 8eb0de133 to ub-launcher3-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I1e888f6941435befe6f1819de74dea985909ddf0
2017-03-28 12:14:13 -07:00
Jon Miranda bea3a6ba7e Merge "Log when users exit Overview mode by tapping on the Workspace." into ub-launcher3-dorval
am: 7ef804c917

Change-Id: I1750ccb505a181ec97741f71a4f2293bee7e9df1
2017-03-28 19:06:28 +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
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 d23f37794f Merge "Removing the profile extra from intent and using the profile id from the profile column" into ub-launcher3-dorval
am: 77ff9a4343

Change-Id: Ib0cd8cb8f963b78a9cd53ed896aeb6e4f6163683
2017-03-21 23:21:26 +00: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 e28fb8354e Add support for making nav bar light separately from status bar
am: ed68728b1f

Change-Id: Idfc723333b6186e84125894c822e1d820294d3d6
2017-03-21 15:28:53 +00: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
Mario Bertschler 49e37073b1 Merge "Show promise app icon progress in All Apps and setup market intent on clicking promise app icon in All Apps." into ub-launcher3-master 2017-03-20 23:32:07 +00: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
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
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
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
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
Sunny Goyal 3d706ad703 Separating the config and flags in different directories so that
it is easier to override one or the other

Bug: 36001650
Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
2017-03-07 09:30:51 -08: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 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
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
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
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
Jon Miranda 6dc7f1e000 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
2017-02-21 12:37:51 -08:00
Sunny Goyal 9b29ca5add Defining HomeScreenElementTheme for elements which appear on top of
wallpaper

> Using HomeScreenElementTheme for workspace items
> Fixing view inflation where wrong layout inflater was being used

Change-Id: I92e278dbfb609ad7af9c2f47351f23f03cf12049
2017-02-17 11:37:30 -08:00