Commit Graph

11831 Commits

Author SHA1 Message Date
Tony Wickham 6bb6711f4e Ignore clicks on shortcuts' drag handles.
am: e04a07f6ac

Change-Id: I96360a63524edeff3e2aa9b21707c1c81a79012f
2016-08-15 23:15:27 +00:00
Tony Wickham e04a07f6ac Ignore clicks on shortcuts' drag handles.
When touching down within the drag handle's bounds, we remove the
onClickListener temporarily (restored when touching down outside
of the drag handle's bounds). Long clicks still start the drag.

Also increased drag threshold from 12dp to 16dp.

Bug: 30816665

Change-Id: I0b33dc34bf95c0532376f2f7cf50865fa50093de
2016-08-15 14:02:08 -07:00
Sunny Goyal c9a0a7c62f Merge "Moving the shortcut application logic to the DeepShortcutView. This makes the logic for accessing various properties consistant and and ties it to the UI of the DeepShortcutView." into ub-launcher3-calgary-polish 2016-08-15 17:13:16 +00:00
Hyunyoung Song 8769b44ae0 Merge "Log shortcuts open on ACTION_UP instead of in showForIcon()." into ub-launcher3-calgary
am: 650cd2377b

Change-Id: Iac4e32b44e260a17e7be8f92ec2fae250d89ac1f
2016-08-12 20:36:41 +00:00
Tony Wickham d8f951f923 Log shortcuts open on ACTION_UP instead of in showForIcon().
am: be06874c81

Change-Id: Iefc3b03644c2c197f0b744bb9f42fd3058624377
2016-08-12 20:36:40 +00:00
Hyunyoung Song 650cd2377b Merge "Log shortcuts open on ACTION_UP instead of in showForIcon()." into ub-launcher3-calgary 2016-08-12 20:31:13 +00:00
Sunny Goyal 9e22de7cb3 Merge "Fixing overlay scroll state not getting reset properly when scrolling is was cancelled" into ub-launcher3-calgary-polish 2016-08-12 20:20:08 +00:00
Sunny Goyal 4ff424abf9 Fixing overlay scroll state not getting reset properly when
scrolling is was cancelled

Bug: 30834333
Change-Id: I3605cd2dd939057905d297b5a25ce8669d578125
2016-08-12 13:14:56 -07:00
Sunny Goyal 5836bf728e Moving the shortcut application logic to the DeepShortcutView.
This makes the logic for accessing various properties consistant and
and ties it to the UI of the DeepShortcutView.

Bug: 30817556
Change-Id: I09536b9f91b2a9969fcc286f83dd2b17e16cd9ce
2016-08-12 11:10:12 -07:00
Bill Yi 003072d615 Import translations. DO NOT MERGE
am: 265cf73a43  -s ours

Change-Id: I62cba71ed40ddbb6b19b9f17f490d53aa67ff52e
2016-08-11 22:50:48 +00:00
TreeHugger Robot c0d65c98d8 Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary-polish 2016-08-11 22:41:34 +00:00
Surendra Vispute bbc3401ec6 force a blank spin
am: 7db9b085b2

Change-Id: I6ec36898d22eae3a07bc10200d54653addb8cc6e
2016-08-11 22:05:45 +00:00
Bill Yi 421c48ee8b Import translations. DO NOT MERGE
Change-Id: I2558456492c591d91fb65e78f888da892ec1964b
Auto-generated-cl: translation import
2016-08-11 15:04:30 -07:00
Bill Yi 265cf73a43 Import translations. DO NOT MERGE
Change-Id: Iad4289a91834aa57c8458356a3f3b31be74c760b
Auto-generated-cl: translation import
2016-08-11 15:03:42 -07:00
Surendra Vispute 7db9b085b2 force a blank spin 2016-08-11 14:55:15 -07:00
Tony Wickham be06874c81 Log shortcuts open on ACTION_UP instead of in showForIcon().
- We only want to log when the container is opened and potentially
  used, not when a long press is followed by a drag-and-drop.
- Also cleaned up code that was determining the container of the
  app icon, since LaunchSourceProvider.fillInLaunchSourceData()
  can do that instead (it's more robust and consistent).

Bug: 30791570
Change-Id: I05b6750f26182fda8a9940ac66f1371c2d228ca9
2016-08-10 18:26:41 -07:00
Sunny Goyal eea721266f Merge "Reloading workspace when the shortcuts permission changes" into ub-launcher3-calgary
am: 6eac7881d4

Change-Id: Ib3048ca92759013d2d574116be36893b364f7353
2016-08-11 00:07:59 +00:00
Sunny Goyal 39fa255fc6 Reloading workspace when the shortcuts permission changes
am: 95f3d6ba2c

Change-Id: I90ca9f1380eee4c3e26f929614a1c77b2520b378
2016-08-11 00:07:58 +00:00
Sunny Goyal 6eac7881d4 Merge "Reloading workspace when the shortcuts permission changes" into ub-launcher3-calgary 2016-08-11 00:01:47 +00:00
Sunny Goyal 95f3d6ba2c Reloading workspace when the shortcuts permission changes
> Check for permission on every onResume
> If the permission is different than last known permission,
reload and rebind workspace.

Bug: 30789422
Change-Id: Idfa445815e29e2336505779545507d106b33a253
2016-08-10 17:00:15 -07:00
Bill Yi 327259aceb Import translations. DO NOT MERGE
am: cb782bd43a  -s ours

Change-Id: Icc41ea74e46085196303876c4c655879d3cd734c
2016-08-10 21:04:16 +00:00
Bill Yi 26dfbda050 Import translations. DO NOT MERGE
Change-Id: Iad51eb6eb92204d454c1e03d03281eaedcb85f7f
Auto-generated-cl: translation import
2016-08-10 08:17:35 -07:00
Bill Yi cb782bd43a Import translations. DO NOT MERGE
Change-Id: Id72084a093ca622391d5c3af74f90e66499dea28
Auto-generated-cl: translation import
2016-08-10 08:16:45 -07:00
Tony Wickham 1d69de8f77 Merge "Change drag from shortcuts to say "Cancel" instead of "Remove"" into ub-launcher3-calgary
am: 1ba0e4df79

Change-Id: I6f9f706457aecb7b74286022cfff391942931383
2016-08-09 22:03:54 +00:00
Tony Wickham 64624c80fc Change drag from shortcuts to say "Cancel" instead of "Remove"
am: df64e9ee06

Change-Id: I27b16b2f526034b50012b65d032098b75f86a754
2016-08-09 22:03:54 +00:00
Tony Wickham 1ba0e4df79 Merge "Change drag from shortcuts to say "Cancel" instead of "Remove"" into ub-launcher3-calgary 2016-08-09 21:52:43 +00:00
Tony Wickham df64e9ee06 Change drag from shortcuts to say "Cancel" instead of "Remove"
Bug: 30757836
Change-Id: I7d2d97898bd1feac3cd7ba15614c29a1e1b33841
2016-08-09 11:07:46 -07:00
Tony Wickham cd7e3d859d Merge "Make padding consistent between shortcuts and the app icon." into ub-launcher3-calgary
am: ea5bcba847

Change-Id: Icfdb94eaec6cb3084023ebb40afa8feee5c14cf7
2016-08-08 21:17:52 +00:00
Tony Wickham 84af784548 Make padding consistent between shortcuts and the app icon.
am: 988e2b7a4d

Change-Id: Ib1a194b7b383b991bb0fd4da7c28a52821fbae8c
2016-08-08 21:17:51 +00:00
Tony Wickham ea5bcba847 Merge "Make padding consistent between shortcuts and the app icon." into ub-launcher3-calgary 2016-08-08 21:03:29 +00:00
Sunny Goyal dd6bb46232 Merge "Forcing drag layer to be non accessible. Setting a touch delegate makes a view to become accessible, if its set to auto. This was making drayLayer accessible causing Talkback to speak out every item on the draglayer when window focus changes" into ub-launcher3-calgary 2016-08-08 18:00:23 +00:00
Sunny Goyal 5f06401807 Fixing potential ConcurrentModificationException
mBgDeepShortcutMap is only accessed on the background thread. But
the same instance of list of values was getting passed to the UI
thread, instead of being cloned.

Change-Id: Ie7d0442d895304489ce9323ea872b9091d668ae5
2016-08-08 10:13:33 -07:00
Bill Yi bdc9f325b6 Import translations. DO NOT MERGE
Change-Id: Id2c49f09da28322e551dc6dc5b136cbf0c9bc943
Auto-generated-cl: translation import
2016-08-07 22:37:00 -07:00
Hyunyoung Song 96c56b3607 Merge "Pull down should work on search box, even if all apps scroll is not at top. b/30295305" into ub-launcher3-calgary 2016-08-05 21:13:08 +00:00
Hyunyoung Song 58a9c4b7d2 Pull down should work on search box, even if all apps scroll is not at top.
b/30295305

Change-Id: I38bbe47d6e33929c550930c9f157c58fbea203ef
2016-08-05 13:57:21 -07:00
Hyunyoung Song 9323bdbb2a Merge "Fix hotseat flicker when opened all apps in landscape, rotate screen, pull down" into ub-launcher3-calgary 2016-08-05 18:33:13 +00:00
Tony Wickham 988e2b7a4d Make padding consistent between shortcuts and the app icon.
This change makes the padding consistent regardless of where the app
is (e.g. folder vs workspace vs all apps) by ignoring the app's
padding and adding our own to the shortcuts container.

Also note that this padding is relative to the icon, excluding the
text beneath it. So we also hide the text when the container opens
downwards, and re-show it when the container closes.

Bug: 30604007
Change-Id: I6e51c4983a8b5d495833f86e483ebaa229ed2099
2016-08-05 11:17:42 -07:00
Hyunyoung Song 0472d496ea Merge "Change NavBar to transparent black b/30615471" into ub-launcher3-calgary 2016-08-05 18:02:14 +00:00
Hyunyoung Song 4ebc3d070f Change NavBar to transparent black
b/30615471

Change-Id: I7885e8a7fd63ee10c9b0107087046730e8acfde9
2016-08-05 10:59:17 -07:00
Tony Wickham 37aba27bbc Merge "Use shortcut disabled message if available." into ub-launcher3-calgary 2016-08-05 17:57:35 +00:00
Tony Wickham 4efffc5ba6 Use shortcut disabled message if available.
Bug: 30681210
Change-Id: Ibb5fd58e5fc9557b63730bc1e3c3977133769466
2016-08-05 10:40:12 -07:00
Sunny Goyal 4829a88ed4 Forcing drag layer to be non accessible.
Setting a touch delegate makes a view to become accessible, if its set to auto.
This was making drayLayer accessible causing Talkback to speak out every item
on the draglayer when window focus changes

Bug: 30670702
Change-Id: Ifcba4c02b124166f9ca69c4244b9d20d7a7acaa5
2016-08-04 17:57:29 -07:00
Hyunyoung Song d7d740287f Fix hotseat flicker when opened all apps in landscape, rotate screen, pull down
b/30595452

Change-Id: Ib634ffbc509c6b16ac58c184ccbca15ae936be14
2016-08-04 15:48:42 -07:00
Tony Wickham 598e184352 Reduce distance to start deferred drag from shortcuts to 12dp.
Change-Id: Ida298760bb66b5894dab94ff4ccaa788c8604661
2016-08-04 15:38:26 -07:00
Tony Wickham 960a7fe15e Merge "Reset mActiveController to null in DragLayer.onInterceptTouchEvent()." into ub-launcher3-calgary 2016-08-04 21:09:29 +00:00
Sunny Goyal 50941fb8a6 Adding support for updating the pinned shortcuts without updating
the ID map

Bug: 30654182
Change-Id: I30082bd87466a29b7bafe1e8cbf1446e1d1e4f3e
2016-08-04 12:32:11 -07:00
Tony Wickham 98cbd62e1f Reset mActiveController to null in DragLayer.onInterceptTouchEvent().
Otherwise the previous active controller will continue to handle touch
events even if it doesn't re-intercept future touches. For instance,
All Apps was handling the swipe gesture after DragLayer intercepted to
close a shortcuts container, which led to the weird behavior described
in the bug.

Bug: 30590854
Change-Id: I247b39b03d336a04659f6ce644380bf3cef8de3f
2016-08-04 11:52:18 -07:00
Winson Chung 49a1ab9006 Merge "Prevent refreshing app search results with empty query." into ub-launcher3-calgary 2016-08-04 17:12:27 +00:00
TreeHugger Robot ce231c53ba Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary 2016-08-04 09:25:09 +00:00
Winson 45a11dd9ee Prevent refreshing app search results with empty query.
- Any change to the TextView text will cause mQuery to be set,
  which will cause a new search next time refreshSearchResult
  is called.  We should also be checking there if it is a valid
  search query before starting a new search.

Bug: 30606307
Change-Id: I08640c56199211f2aeea2386fcf699810853ab58
2016-08-03 18:01:10 -07:00