Tony Wickham
252f0a3321
Don't show app info for ITEM_TYPE_SHORTCUT.
...
Bug: 30440566
Change-Id: I77b101331ea249c633be9f7df1edebefa7b9e0a8
2016-09-08 15:00:24 -07:00
Sunny Goyal
f87567211e
Merge "Launcher restore state fixes:" into ub-launcher3-calgary-polish
...
am: add78abb98
Change-Id: Ib1b5e20228098cc4a09e4e547faf3c69e4119261
2016-09-08 21:41:36 +00:00
Sunny Goyal
d668dfb497
Launcher restore state fixes:
...
am: 2100c78bd9
Change-Id: I8de4f0c98cff8764a764c06efeade9d6a26319dd
2016-09-08 21:41:36 +00:00
Sunny Goyal
fb5096d07b
Preventing a shortcut which requires permissions from being added to
...
homescreen
A shortcut can be added by any app as INSTALL_SHORTCUT is a normal
level permission. But the intent is actually launched by the launcher
app which can have other permission as well.
> When adding a shortcut from the broadcast, verify that the intent does
not require any permission
> When adding a shortcut using the two-step drop process, verify that
the source app also has the permission to create such a shortcut
Bug: 30778130
Change-Id: I710a490d69019dc25709db5a97020c20d9325007
2016-09-08 14:41:01 -07:00
Sunny Goyal
add78abb98
Merge "Launcher restore state fixes:" into ub-launcher3-calgary-polish
2016-09-08 21:30:45 +00:00
Tony Wickham
946f85060a
Don't close all apps when touching deep shortcuts container.
...
Bug: 31373894
Change-Id: Ica1d0c2318e8f5d3e45196174c9b495a1c2515cd
2016-09-08 14:20:48 -07:00
Tony Wickham
ec383dfc63
Fix deferred shortcut container removal.
...
- Previously, the drag listener listener was removed from the
container as soon as it started animating closed, which got
rid of its opportunity to complete the deferred removal.
- The deferred removal now calls close(), which does further
cleanup including updating the app icon's text visibility.
Bug: 31248681
Change-Id: I18e545e7e19e50b7d47e23a5beb8f254ba1a4ccf
2016-09-08 13:58:35 -07:00
Sunny Goyal
5ee1b214c3
Merge "Updating the assets for the all-apps search background." into ub-launcher3-calgary-polish
...
am: b2dbc56568
Change-Id: Ie272a4cfcf0aa20bbf417051bb69aee5b6a2f51e
2016-09-08 20:24:35 +00:00
Sunny Goyal
7cdd3b265d
Updating the assets for the all-apps search background.
...
am: 57b4006d52
Change-Id: I7e9f0c1f350ddfe77b53b141b9e4367100603c8d
2016-09-08 20:24:34 +00:00
Sunny Goyal
b2dbc56568
Merge "Updating the assets for the all-apps search background." into ub-launcher3-calgary-polish
2016-09-08 20:16:49 +00:00
Sunny Goyal
57b4006d52
Updating the assets for the all-apps search background.
...
Bug: 30309105
Change-Id: I4dd4a97ff49fd3c6dd386f100ca35dfb629044df
2016-09-08 12:57:11 -07:00
Tony Wickham
1243457984
Merge "Add outline to shortcuts when focused." into ub-launcher3-calgary-polish
...
am: 285c76dded
Change-Id: Ie2192bc0be33661ace27f1b96d2dc1dbc3e29f10
2016-09-08 17:10:20 +00:00
Tony Wickham
8372ea1780
Add outline to shortcuts when focused.
...
am: 8dd5168b05
Change-Id: Ibb0331561129d42ee83821bfa284689e2e0633c6
2016-09-08 17:10:19 +00:00
Tony Wickham
285c76dded
Merge "Add outline to shortcuts when focused." into ub-launcher3-calgary-polish
2016-09-08 17:04:40 +00:00
Tony Wickham
8dd5168b05
Add outline to shortcuts when focused.
...
Bug: 30563273
Change-Id: Ia54c112dcf91c225588b7388001eb93ee5c03171
2016-09-07 18:20:21 -07:00
Hyunyoung Song
326b6c5e17
Change all apps caret target bounding box b/30400751 am: da1c17c492
...
am: 621ae5c2e6
Change-Id: I770f5a0b080bb6528d80ac157afd4663d0fae5ea
2016-09-07 22:43:20 +00:00
Hyunyoung Song
621ae5c2e6
Change all apps caret target bounding box b/30400751
...
am: da1c17c492
Change-Id: Ic3b9cc87ec75e13162588bab8cefe8f870af13f8
2016-09-07 22:40:49 +00:00
Sunny Goyal
3c7b369b18
Merge "Preventing concurrentmodification exception when dragging a icon with shortcuts from inside a folder" into ub-launcher3-calgary-polish
...
am: 27d10940d2
Change-Id: I71319a1c73da63640370508b17cb6c7fab4a223e
2016-09-07 21:57:48 +00:00
Sunny Goyal
950a0ab73c
Preventing concurrentmodification exception when dragging a icon with shortcuts from inside a folder
...
am: d0d495f508
Change-Id: I9254264ae8a85f013efc0966fcf05ad826ca4790
2016-09-07 21:57:48 +00:00
Hyunyoung Song
b311c6fce5
Merge "Change all apps caret target bounding box b/30400751" into ub-launcher3-calgary-polish
...
am: 5f4d130d87
Change-Id: I84d1d5905fadd3476415e996669fe51351ddd296
2016-09-07 21:57:47 +00:00
Hyunyoung Song
7f8be0f6b0
Change all apps caret target bounding box b/30400751
...
am: 016eaeea99
Change-Id: Ib1b820557cd4ab1e404629df93231705f00ee5cd
2016-09-07 21:57:47 +00:00
Sunny Goyal
27d10940d2
Merge "Preventing concurrentmodification exception when dragging a icon with shortcuts from inside a folder" into ub-launcher3-calgary-polish
2016-09-07 21:48:50 +00:00
Hyunyoung Song
da1c17c492
Change all apps caret target bounding box
...
b/30400751
1) This also fixes the issue of apps drawer sliding up when page is swiped
horizontally immediately above the hotseat area.
2) Disclaimer: this should be cp'ed to calgary.
Hence, I tried to keep the diff small. Ideally, CaretDrawable animation
handling should move to AllAppsHandleImageView via refactoring in
follow up CL.
Change-Id: I4d808ee2eeca53b40c0b4e4e0e364fef056e26c3
(cherry picked from commit 016eaeea99 )
2016-09-07 21:46:21 +00:00
Hyunyoung Song
5f4d130d87
Merge "Change all apps caret target bounding box b/30400751" into ub-launcher3-calgary-polish
2016-09-07 21:46:04 +00:00
Hyunyoung Song
016eaeea99
Change all apps caret target bounding box
...
b/30400751
1) This also fixes the issue of apps drawer sliding up when page is swiped
horizontally immediately above the hotseat area.
2) Disclaimer: this should be cp'ed to calgary.
Hence, I tried to keep the diff small. Ideally, CaretDrawable animation
handling should move to AllAppsHandleImageView via refactoring in
follow up CL.
Change-Id: I4d808ee2eeca53b40c0b4e4e0e364fef056e26c3
2016-09-07 14:45:09 -07:00
Sunny Goyal
d0d495f508
Preventing concurrentmodification exception when dragging a icon
...
with shortcuts from inside a folder
When dragging the icon, DeepShortcutContainer removes itself as a
dragListener causing the exception
Change-Id: Ifb2b4a3045caa54aa0b6a9b525055ffdcfaa04a6
2016-09-07 14:40:46 -07:00
Sunny Goyal
2100c78bd9
Launcher restore state fixes:
...
> Creating PendingRequestArgs to store generic request info across
activity instances
> Storing the CALL_PHONE request in PendingRequestArgs
> Handling onActivityResult only after the workspace has loaded.
onActivityResult sometimes modifies launcher db when removing empty
screens, and any add action is also deferred until bindComplete.
This simplifies this logic.
> Always binding the restored page irrespective of pending result.
Before starting a request activity (bind widget permission, or
widget config activity or shortcut picker), workspace commits the
pending screen id to the DB. Hence the restore page is valid when
restore is called (onResume loads with currentPage instead of
restored page)
Bug: 28573143
Change-Id: I34be603cbeb2145f5caf0d18e016f50029e07df8
2016-09-06 15:24:36 -07:00
Hyunyoung Song
cef1d3479a
Support user event logging for drag and drop b/30039490 am: 551e5abfe1 -s ours
...
am: 9b7149db40
Change-Id: I2f5f6083b2a29d1bcb41e3f35760a5f3a4d314f5
2016-09-06 18:51:02 +00:00
Hyunyoung Song
9b7149db40
Support user event logging for drag and drop b/30039490
...
am: 551e5abfe1 -s ours
Change-Id: Ie1edd18af660437dcbd510885f9101b93592b53f
2016-09-06 18:47:31 +00:00
Hyunyoung Song
551e5abfe1
Support user event logging for drag and drop
...
b/30039490
Supported in this CL:
- DnD: drag from container [WORKSPACE|HOTSEAT|FOLDER|ALLAPPS|WIDGETS|DEEPSHORTCUTS]
drag to container [HOTSEAT,WORKSPACE,FOLDER,DROPTARGETS]
- Source and target can be [FOLDER_ICON, ICON, DEEPSHORTCUT, WIDGET]
- $ adb shell setprop log.tag.UserEvent DEBUG will turn on debugging
Change-Id: I0b8b879b80e6dce85bbde6e7794f9e0677832603
(cherry picked from commit 59a238095e )
2016-09-04 19:48:24 +00:00
Sunny Goyal
e975957c43
Removing some reflection code am: 6ff1ef17a2 -s ours
...
am: b7ad5f8e09
Change-Id: I9db8d7943c935592d0fe5e180a1b7e2c6648f565
2016-09-02 22:01:40 +00:00
Sunny Goyal
b7ad5f8e09
Removing some reflection code
...
am: 6ff1ef17a2 -s ours
Change-Id: Ibfc257848b9714a592c016f7f72ead30eabbdc65
2016-09-02 21:59:12 +00:00
Sunny Goyal
2ac1918667
Merge "Moving some image handling classes to .graphics package" into ub-launcher3-master
2016-09-02 19:40:58 +00:00
Sunny Goyal
7f1aca9906
Merge "Moving AppsAvailabilityCheck into a separate class" into ub-launcher3-master
2016-09-02 19:36:46 +00:00
Sunny Goyal
10629b077c
Moving some image handling classes to .graphics package
...
Change-Id: Id6d3d0b9c345a503ff2e09f073eb4b6449e21c7e
2016-09-02 12:34:33 -07:00
Sunny Goyal
6ff1ef17a2
Removing some reflection code
...
Change-Id: I8a0a707d69999e5f9911e7d8df7d4a659b3dfb8f
(cherry picked from commit e2ec8a3cd5 )
2016-09-02 19:29:51 +00:00
Sunny Goyal
6677eb7668
Merge "Blocking alpha animation if the initial and final state for the animation are both 0" into ub-launcher3-calgary am: 171fbdbc10
...
am: 5d48634a9d
Change-Id: I8556a6996543e69d3640b95a54ad63d8767b395f
2016-09-02 19:21:26 +00:00
Sunny Goyal
63763c9e5c
Blocking alpha animation if the initial and final state for the animation are both 0 am: 62e7518359
...
am: 118f1d25b5
Change-Id: I2eada84b2eb82ef5c363eca769ad3e1f98cdb2ff
2016-09-02 19:21:00 +00:00
Sunny Goyal
64f908f84c
Merge "Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout" into ub-launcher3-calgary am: dbbb1fee90
...
am: d82f688b9f
Change-Id: Iff5261899f13d8023c722b100501dd0ebe0f3fcc
2016-09-02 19:20:59 +00:00
Sunny Goyal
c646e1ad99
Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout am: 6f2bb1ada5
...
am: 562e04035b
Change-Id: Ied2ddd21deff40443ba30fcfc18179fe1cd09c69
2016-09-02 19:20:59 +00:00
Sunny Goyal
81303e4a37
Merge "Fixing broken accessibility drag" into ub-launcher3-calgary am: d9033f3ae1
...
am: 4bee110f4f
Change-Id: I9f6fbf26fe1b629f3a760ec14ff6709b4f537d6b
2016-09-02 19:20:58 +00:00
Sunny Goyal
a44d2735fd
Fixing broken accessibility drag am: 9be9936653 -s ours
...
am: 4240337e7f
Change-Id: I47f5f939a1cc2263060e08ffabb29e105731f756
2016-09-02 19:20:57 +00:00
Sunny Goyal
5d48634a9d
Merge "Blocking alpha animation if the initial and final state for the animation are both 0" into ub-launcher3-calgary
...
am: 171fbdbc10
Change-Id: Ia985ac4e86ff5aec8bc20f2decb5d13331dbd386
2016-09-02 19:18:54 +00:00
Sunny Goyal
118f1d25b5
Blocking alpha animation if the initial and final state for the animation are both 0
...
am: 62e7518359
Change-Id: I3ac4f5be0726e2389e31a8fa3b18c5ca7d955c8c
2016-09-02 19:18:53 +00:00
Sunny Goyal
d82f688b9f
Merge "Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout" into ub-launcher3-calgary
...
am: dbbb1fee90
Change-Id: If5d392fb037a57669407c16d428ef12cdd52377a
2016-09-02 19:18:53 +00:00
Sunny Goyal
562e04035b
Bug fix in Alarm where it was not getting called correctly if the new timeout was set that was smaller than the previously set timeout
...
am: 6f2bb1ada5
Change-Id: I6f6603133cc0bb31fd1d7f354eb0fdefef2f9dea
2016-09-02 19:18:52 +00:00
Sunny Goyal
4bee110f4f
Merge "Fixing broken accessibility drag" into ub-launcher3-calgary
...
am: d9033f3ae1
Change-Id: Ib39a4246e3d054d3bb9e88bbeede44471c488e22
2016-09-02 19:18:52 +00:00
Sunny Goyal
45765853e7
Merge "Fixing overlay scroll state not getting reset properly when scrolling is was cancelled" into ub-launcher3-calgary am: 7bc4b5bcd4
...
am: 0ab0175ded
Change-Id: I967eff6f7042426ebf38bac1a9a8b9c1fda526ac
2016-09-02 19:18:29 +00:00
Sunny Goyal
0e733ed366
Fixing overlay scroll state not getting reset properly when scrolling is was cancelled am: 538b54c467
...
am: e7eb774a60
Change-Id: I36be80ead0ae2f6be8b28a3647376632f58ddfc6
2016-09-02 19:18:28 +00:00
Hyunyoung Song
a68684187b
Landscape container padding update. b/30021487 am: 6cf1e0f36b
...
am: 24b12143ac
Change-Id: I163754d6b9feb678a81dd77faa872c48bd52f776
2016-09-02 19:18:28 +00:00