Commit Graph

6515 Commits

Author SHA1 Message Date
Mario Bertschler 6d696f8d7c Fixes a bug in verifying the validity of a session info.
b/38276210

Change-Id: I4c89fb60b21d4dbc70efb91111ac16ec16bdea4f
2017-05-15 10:16:12 -07:00
Tony Wickham 40d2702db4 Accessibility fixes for moving items
am: 0270039b98

Change-Id: I856b8980817dd36785f27e203c0ee6174b24e568
2017-05-12 21:29:15 +00:00
Tony Wickham 0270039b98 Accessibility fixes for moving items
- Don't open popup when using "move item" action
- Don't announce "Item moved" if dropping on original cell

Bug: 33501751
Change-Id: I7236cd51fc00c357a1d7597e2fcb68c3a7c16b0b
2017-05-11 15:20:28 -07:00
TreeHugger Robot 9e00b3c503 Merge "Fade in background scrim when resuming from screen off." into ub-launcher3-dorval-polish 2017-05-11 20:36:46 +00:00
TreeHugger Robot 9968ed0932 Merge "Adding listener support for color extraction changes Changing the apps-search layout to use theme attribute instead of hard coded layout id" into ub-launcher3-dorval-polish 2017-05-11 19:46:28 +00:00
Jon Miranda 2d89ea8453 Fade in background scrim when resuming from screen off.
This change hides the hard cut off that appears when the Launcher
window is transitioning upwards when resuming from when the screen
is off.

Bug: 36446766

Change-Id: I0c0fe13ee9e08d27b94916d0407ef431d82b8d6a
2017-05-11 12:32:28 -07:00
Tony e37d2b9f32 Merge "Visual updates for popup" into ub-launcher3-dorval
am: 5cfde85cb6

Change-Id: I4e97cb52054b5c5ff467f3481b92730f6f9a3e8e
2017-05-10 01:19:41 +00:00
TreeHugger Robot 5cfde85cb6 Merge "Visual updates for popup" into ub-launcher3-dorval 2017-05-10 01:10:55 +00:00
Tony 0b8a6fe532 Visual updates for popup
- Update some dimens
  - Increase left padding for shortcuts
  - Adjust arrow and notification ellipsis offset accordingly
  - Align shortcut dividers to be same width as text
  - Notification text 14sp instead of 15sp
  - Increase width of popup by 12dp
- Shortcuts text 87% black instead of 54%
- Arrow has same color as attached side, so takes on header
  gray instead of white when appropriate

Bug: 37753827
Change-Id: I0844b85995f22218a3b7e605e1653cceaed6cda1
2017-05-09 20:02:23 -05:00
TreeHugger Robot 7588a8c391 Merge "Adding support for DB downgrade" into ub-launcher3-dorval-polish 2017-05-09 22:51:02 +00:00
Jon Miranda 2c0c746a00 Fix bug where deep shortcut drag view target was skewed to the right.
am: aa6f66aad2

Change-Id: I87a99bfc52d7c8398099fc2230f02c0c7b6dee22
2017-05-09 20:35:17 +00:00
Jon Miranda aa6f66aad2 Fix bug where deep shortcut drag view target was skewed to the right.
Bug: 38140665
Change-Id: I9386bf70cf51b6be33264f85cbfe9e8049d0c32e
2017-05-09 13:00:49 -07:00
Sunny Goyal 05f30889d6 Adding support for DB downgrade
Adding a schema file for handling DB downgrade. This schema file is part of
the backup/restore set, and hence is available on a device with lower app version.

Bug: 37257575
Change-Id: I69c8ef5f28d5209be6e6679412c7459d4eeda5d0
2017-05-09 12:59:04 -07:00
Sunny Goyal 60820d796f Adding listener support for color extraction changes
Changing the apps-search layout to use theme attribute instead of hard
coded layout id

Bug: 37616877
Change-Id: Iae601758303f83a2774635f0d88f74d99fc643c3
2017-05-09 12:41:50 -07:00
TreeHugger Robot 85d8573764 Merge "Fix folder animation in RTL mode." into ub-launcher3-dorval-polish 2017-05-09 15:12:18 +00:00
Jon Miranda d5fc4f309f Fix folder animation in RTL mode.
Bug: 37905379
Change-Id: I3d837753b8fd4bcd2e2c59f1aa7c62457f037de3
2017-05-09 08:02:50 -07:00
Mario Bertschler fd60f7274d Merge "Color extraction implementation for gradient colors used by all apps background." into ub-launcher3-dorval-polish 2017-05-09 00:14:42 +00:00
Mario Bertschler 1d6300bf66 Color extraction implementation for gradient colors
used by all apps background.

Change-Id: Id7a652815cb3ef61ff4b0a442d8350337014b56d
2017-05-08 16:22:27 -07:00
Sunny Goyal 161f96bc77 Moving apps search related logic into a custom layout file
This will allow derivative projects to easily change the search behavior
by simply overriding the xml file

Bug: 37616877
Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
2017-05-08 14:43:32 -07:00
TreeHugger Robot b73fa5d7a4 Merge "Using package update event as well for restoring promise icons" into ub-launcher3-dorval-polish 2017-05-08 19:19:10 +00:00
TreeHugger Robot e9fcc71967 Merge "Disabling page fling while the overlay is moving" into ub-launcher3-dorval-polish 2017-05-08 19:17:21 +00:00
Sunny Goyal 65d9ceb383 Disabling page fling while the overlay is moving
Bug: 37959201
Change-Id: I2278a46d10bc81855e10f97e669460e0d0b93daa
2017-05-08 12:10:32 -07:00
Sunny Goyal 2ee15ef38d Using package update event as well for restoring promise icons
> Sometimes a system app can be in disabled state. When the app is
enabled or disabled, the system sends onPackageChanged event instead
of onPackageAdded/onPackagesRemoved.

Bug: 36911898
Change-Id: Id82f70421b95b23f9891c8d4b0b7e0e1d4cddf7b
2017-05-08 12:08:11 -07:00
Sunny Goyal 5c60e71487 Updating the setAsyncExecutor call as per API changes
am: 9a1227105a

Change-Id: I6734eb6c3dfd8efebb5de2d7130522aacc5caa3e
2017-05-08 16:14:45 +00:00
Sunny Goyal 9a1227105a Updating the setAsyncExecutor call as per API changes
Bug: 37534990
Change-Id: I3cb9ea4e9aec5647a0f03e5514780f42f207ebc0
2017-05-08 08:56:28 -07:00
Mario Bertschler 0e261d56a7 Merge "Revert "Adding suggested app as part of app discovery."" into ub-launcher3-dorval-polish 2017-05-05 20:48:57 +00:00
Mario Bertschler b3cbd7c87d Revert "Adding suggested app as part of app discovery."
This reverts commit c0372a42a2.

Change-Id: Iebfb5bdbe042cb17f3d3657e0caa2fc7e9913ac6
2017-05-05 20:09:40 +00:00
Mario Bertschler 86b9705535 Merge "Adding suggested app as part of app discovery." into ub-launcher3-dorval-polish 2017-05-05 20:01:35 +00:00
Sunny Goyal f7d9b70700 Do not delete chost widgets when opening DB.
am: 57266aa2bd

Change-Id: Iab767b7b7c60db60322151cc5c2ab6a65706a553
2017-05-05 19:55:31 +00:00
Sunny Goyal 57266aa2bd Do not delete chost widgets when opening DB.
During restore, the data can be in inconsistant state, as the
system is yet to give us the widget map. Deleting the widget during
open would cause the AppWidgetRestoredReceiver to store the widget id
after it has been deleted.

Bug: 37935101
Bug: 38029633
Change-Id: Id3b8766229718239ae784794e848dcfbc74658ac
2017-05-05 10:55:21 -07:00
Tony Wickham dce01fe029 Merge "Don't delete legacy shortcuts in loadWorkspace()" into ub-launcher3-dorval
am: 23cae10576

Change-Id: Icb8b72be29249e5df4505bb02c75c6f2a90d6bee
2017-05-05 00:31:49 +00:00
Tony Wickham 23cae10576 Merge "Don't delete legacy shortcuts in loadWorkspace()" into ub-launcher3-dorval 2017-05-05 00:26:33 +00:00
Tony Wickham 431a71320c Don't delete legacy shortcuts in loadWorkspace()
Legacy 1x1 shortcut intents have null package names.
This was causing an NPE when calling LauncherApps#getApplicationInfo(),
which caused those shortcuts to be removed from the workspace.

Bug: 37634887
Change-Id: I6d9876ee1634a573c1f0f94602ae373365cab01c
2017-05-04 17:08:30 -07:00
Tony e5931a552a Merge "Fix center-align issue in widgets bottom sheet" into ub-launcher3-dorval
am: b77aa69eee

Change-Id: Ie206f8f66b45ad9dfe2c085b5087a4600c0d41b0
2017-05-04 23:09:13 +00:00
TreeHugger Robot b77aa69eee Merge "Fix center-align issue in widgets bottom sheet" into ub-launcher3-dorval 2017-05-04 23:02:21 +00:00
Tony 9d3743c3a8 Fix center-align issue in widgets bottom sheet
- Remove paddingStart
- To add padding for multiple widgets, add empty view to scrollview

Bug: 37918677
Change-Id: I5ec1208765874dda1c4439f60aaeb989c06ccd63
2017-05-04 15:53:15 -07:00
Sunny Goyal cd8f4291dc Start settings activity in a new task, so that if the LauncherActivity finishes from behind, the task does not enter an inconsistant state
am: 53f93b9c15

Change-Id: I9a21552903d44b468d42efebbe60353b9b0c91a5
2017-05-04 21:00:02 +00:00
Mario Bertschler c0372a42a2 Adding suggested app as part of app discovery.
It will replace the least prioritized predicted app
with the suggested app from app discovery.

Dogfood only!

Change-Id: I7713759c70ab6eaacfec2c45d3f78335c40dac79
2017-05-04 12:44:52 -07:00
Sunny Goyal 53f93b9c15 Start settings activity in a new task, so that if the LauncherActivity
finishes from behind, the task does not enter an inconsistant state

Bug: 37921974
Change-Id: I5f943ae89ce1099d3b9cf6a4902c7fd077beb764
2017-05-04 11:24:19 -07:00
TreeHugger Robot 825c3db194 Merge "Show icon in PendingAppWidgetHostView immediately." into ub-launcher3-dorval-polish 2017-05-04 00:14:31 +00:00
Jon Miranda 2b823f452b Show icon in PendingAppWidgetHostView immediately.
Before this change, PendingAppWidgetHostView would appear 'blank'
until they were loaded -- which could take a while depending on
how many apps the user had, because the all apps icons are loaded
first.

Bug: 36815047
Change-Id: Ia7449cce4341ed9e9384fc8aaadeaae6c33bb262
2017-05-03 17:05:41 -07:00
Hyunyoung Song 2868d7ca4e Guard aginast O for checking AdaptiveIconDrawable b/37952598
am: 8f4a3963b0

Change-Id: I88f5ff89d7cb5f021f857295db89520100d044ae
2017-05-03 23:33:05 +00:00
Hyunyoung Song 8f4a3963b0 Guard aginast O for checking AdaptiveIconDrawable
b/37952598

Change-Id: Ief11aa61d804f9ca44ce9199002a6e763b3bf3e9
2017-05-03 15:39:26 -07:00
TreeHugger Robot d2d43ef9be Merge "Refactoring some shadow generator logic into common methods" into ub-launcher3-dorval-polish 2017-05-03 20:52:22 +00:00
Sunny Goyal 9205a3035d Merge "Initializing the Add To Homescreen setting by reading it from market app" into ub-launcher3-dorval
am: f436478b02

Change-Id: I0f322aeb37c7ba35b2d2f97b1802f1c657a790b4
2017-05-03 20:11:57 +00:00
Tony Wickham a2d1540c0e resolve merge conflicts of 82eb1f0ea to ub-launcher3-dorval-polish
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ic1f6ace04ec2c11206276df76ef7a20df545d604
2017-05-03 12:59:09 -07:00
TreeHugger Robot f436478b02 Merge "Initializing the Add To Homescreen setting by reading it from market app" into ub-launcher3-dorval 2017-05-03 18:41:06 +00:00
Sunny Goyal 3e443a2457 Initializing the Add To Homescreen setting by reading it from market app
> Also enabling add to home-to-homescreen feature based on install reason

Bug: 36588249
Change-Id: Icfc1edd4c31ed7eb50086f8ffb1a7858a9641b41
2017-05-03 11:24:54 -07:00
Tony Wickham 82eb1f0ea6 Merge "Use source bounds/activity options for App Info System Shortcut" into ub-launcher3-dorval 2017-05-03 18:20:41 +00:00
Mario Bertschler db67e7c7a3 Merge "All Apps transition with gradient and scrim." into ub-launcher3-dorval-polish 2017-05-03 18:04:11 +00:00