Commit Graph

9655 Commits

Author SHA1 Message Date
Winson Chung fd98e3e3fc Fixing proguard stripping animation method. 2015-06-12 12:20:34 -07:00
Sunny Goyal e89cf793ab Merge "Tying accessibility drag lifecycle to that of dragController" into ub-launcher3-burnaby 2015-06-11 18:43:27 +00:00
Adam Cohen b2b02b9bd2 Fix a small UI nit with screen reordering
-> When in overview mode, flinging the pages can leave the scroller
   running (invisibly) for much additional time, since the scroller
   fling bounds far exceed the alloawble scroll bounds (in order to
   achieve a hard wall type effect)
-> When this is happening, user couldn't pick up a page for reordering
-> Ended the scroller early in this case to avoid the problem

Change-Id: I8b6f140d9a87bb742e57625e90ca7d76a2158e28
2015-06-10 18:45:38 -07:00
Hyunyoung Song 2d0fc8dccd am 0c979d1f: Catch TransactionTooLargeException when loading widget provider list b/19904873
* commit '0c979d1f2fda45b9d098f9399e1079e6bc22c2b0':
  Catch TransactionTooLargeException when loading widget provider list b/19904873
2015-06-10 19:08:49 +00:00
Sunny Goyal 553a8f6f44 Merge "Fixing crash in restore" into ub-launcher3-burnaby 2015-06-10 18:36:07 +00:00
Hyunyoung Song 0c979d1f2f Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..
(cherry picked from commit 3abd5488cc)
2015-06-09 19:06:29 +00:00
Sunny Goyal 4547802297 Tying accessibility drag lifecycle to that of dragController
Bug: 20865291
Change-Id: I1e0aceb20efcf4c32d76a656c499a1a4a5a32a65
2015-06-08 19:22:27 -07:00
Hyunyoung Song ece9f02da5 Merge "Catch TransactionTooLargeException when loading widget provider list b/19904873" into ub-launcher3-burnaby 2015-06-09 01:53:36 +00:00
Hyunyoung Song 3abd5488cc Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..
2015-06-08 18:41:04 -07:00
Hyunyoung Song 3114425140 Merge "Make WidgetsRecyclerView not crash on MNC support lib" into ub-launcher3-burnaby 2015-06-09 01:22:41 +00:00
Hyunyoung Song 9e6344212a Make WidgetsRecyclerView not crash on MNC support lib
Change-Id: Ia7bee39752ad0c0b58e74df4507caaf7a3cd8c29
2015-06-08 18:17:13 -07:00
Sunny Goyal 208aba2dfd Merge "Removing LauncherApplication to enable us to easily catch LauncherAppState errors" into ub-launcher3-burnaby 2015-06-08 23:05:31 +00:00
Sunny Goyal be68dcebbb Merge "Fixing preloaded widget not getting used for animation" into ub-launcher3-burnaby 2015-06-08 22:32:49 +00:00
Sunny Goyal 0441c4381b Merge "Fixing touch feedback clipped on SetWallpaper button" into ub-launcher3-burnaby 2015-06-08 00:19:30 +00:00
Hyunyoung Song 90429e11e7 Merge "Improve AyncTask throughput inside WidgetPreviewLoader" into ub-launcher3-burnaby 2015-06-05 21:14:32 +00:00
Sunny Goyal c1f174a244 Fixing touch feedback clipped on SetWallpaper button
Bug: 19534312
Change-Id: I97dfd92c560caaf83e525f7e94286a7a77d2ba0b
2015-06-05 13:44:44 -07:00
Hyunyoung Song f00d02b254 Improve AyncTask throughput inside WidgetPreviewLoader
b/21133230
> Synchronized block was creating a bottleneck for the AsyncTasks.
> Remove calls that doesn't need to be synchronized outside synchronized block.
> Also removed setAlpha call as after the bottleneck was removed,
Inefficient alpha view usage alert started popping up in traceview.
Due to less jankness, removing the fadein animation doesn't have any
visible effect.

Link to lock congestion visualization:
https://x20web.corp.google.com/~hyunyoungs/no_crawl/traceview/traceview_lockcontention.html

Result: gfx-avg-jank delta = "-1"
Change-Id: If12817df0730f346cdba7e2f38f232eb9a4336c0
2015-06-05 13:30:19 -07:00
Sunny Goyal 9637364c44 Fixing crash in restore
> LauncherAppState cannot be initialized during restore, as it is not
called from a looper thread.

Bug: 21275736
Change-Id: Ifdb3f9913fa2ee63a7e1566d0c5cfc6f72b4f41e
2015-06-05 11:36:20 -07:00
Winson Chung 6103501fa6 Merge "Ensuring that we use the screen width more optimally in AllApps." into ub-launcher3-burnaby 2015-06-05 18:09:35 +00:00
Winson Chung 7501adf4b7 Ensure that we use the system long press duration when dragging from AllApps.
- Removing some old code out of LauncherAppState

Bug: 21559400
Change-Id: I3c586094efb7ad8a17d2169bc8aaccf6b0df40a2
2015-06-05 10:52:57 -07:00
Sunny Goyal 8d8c73b591 Merge "Code cleanup" into ub-launcher3-burnaby 2015-06-05 17:40:27 +00:00
Sunny Goyal 2e6e9b8795 Merge "Updating assets" into ub-launcher3-burnaby 2015-06-05 17:40:01 +00:00
Sunny Goyal 5eae46ce15 Merge "Removing unused animation style" into ub-launcher3-burnaby 2015-06-05 17:39:48 +00:00
Winson Chung 2c6e5ccbcd Ensuring that we use the screen width more optimally in AllApps.
- Fixing issue with prediction bar height being calculated incorrectly
- Fixing issue where the prediction bar divider was not drawn exactly
  between the bar and the first row of apps
- Removing padding to allow scrollbars to reach full height

Bug: 20222023
Bug: 21335377
Change-Id: I2c0614a36e2294d0d6184a6bff4847876ffe971e
2015-06-05 09:49:12 -07:00
Sunny Goyal 40b626b930 Updating assets
Bug: 21304080
Change-Id: I26cf435779b477f0961d8e0d56dd6b86b418a3be
2015-06-05 08:47:40 -07:00
Sunny Goyal 4f3e9383eb Code cleanup
> Removing obsolete logging
> Removing unused methods
> Removing resource leak warning due to non-static handler class in launcher

Change-Id: Ic38cc8aea82899b0b5ee3235f04e5964e49245fb
2015-06-05 00:34:06 -07:00
Sunny Goyal 12e13e467e Removing LauncherApplication to enable us to easily catch LauncherAppState errors
Change-Id: I56e956067692e5b9c4719c5e08b8f558e6011a60
2015-06-04 21:20:08 -07:00
Sunny Goyal 26c2842f07 Merge "Preventing overdraw in custom content screen" into ub-launcher3-burnaby 2015-06-04 23:47:35 +00:00
Sunny Goyal 0c9143d06b Preventing overdraw in custom content screen
> Assuming customcontent screen is opaque, setting scrim alpha to 0
when the screen is fully visible

Bug: 21584384
Change-Id: Ifa95a10d880532f59573090673e90a87c7edba9b
2015-06-04 16:31:21 -07:00
Rahul Chaturvedi 799aa04f2f Use a broadcast receiver instead of a settings observer.
Settings observer doesn't work if a setting is modified in another
process, hence we instead register a receiver which listens for a signal
from the settings process that the rotation preference has changed.

Change-Id: I570e3c67bb64a32347e84ca00a8ac31d9010eac3
2015-06-04 19:17:23 -04:00
Sunny Goyal 091f0ffd92 Updating widget list when iconCache updates
> Fixing bug where items were not getting removed from the memcache
> Fixing bug where package entries were not getting removing because
of component mismatch.

Bug: 21612532
Change-Id: Ie56f3272f7fb7e1a37c5ff9bfa523d814edc1a02
2015-06-04 15:21:23 -07:00
Sunny Goyal a56eab41fb Merge "Adding back icon size dimen" into ub-launcher3-burnaby 2015-06-04 19:37:51 +00:00
Sunny Goyal a5be3ccb53 Adding back icon size dimen
Bug: 21638256
Change-Id: I522a8e59e63e4a49a087e4fb3aac102595ea6818
2015-06-04 19:37:01 +00:00
Hyunyoung Song 7b3bdcd6bb Merge "Consistent scrolling experience for All apps and widget tray" into ub-launcher3-burnaby 2015-06-04 18:39:44 +00:00
Hyunyoung Song ec84728b27 Consistent scrolling experience for All apps and widget tray
b/21375339

Change-Id: I8362b3ca94b7c4e75932d42cd09a989e0e3919c0
2015-06-04 11:37:46 -07:00
Sunny Goyal 53d7ee4285 Fixing different bitmap sizes in different orientations
> Using a single bitmap icon size
> Picking up appropriate density for satisfy the required icon size
> Fixing some icon size assumptions during icon animations

Bug: 19514688
Change-Id: Ia7a1d0d2c03a9d39ccc241fa4ae3eb8a0f374585
2015-06-03 19:07:44 -07:00
Winson Chung f4fe7fc544 Merge "Fixing issue with hotseat being on the wrong side of the screen in RTL." into ub-launcher3-burnaby 2015-06-03 19:03:13 +00:00
Winson Chung f8c6f885f0 Fixing issue with hotseat being on the wrong side of the screen in RTL.
Bug: 21499466

Change-Id: I566cd89dfb855f89f4e68bf56e48bf99204b11ab
2015-06-03 11:42:15 -07:00
Mady Mellor 5dd1487da6 Merge "Stylus support: handling drag n drop for widgets" into ub-launcher3-burnaby 2015-06-03 16:46:43 +00:00
Mady Mellor 19b1bad239 Merge "Stylus support: creating and setting listeners for stylus button press" into ub-launcher3-burnaby 2015-06-03 16:26:35 +00:00
Winson Chung ca51aaad67 Merge "Adding context for app launches." into ub-launcher3-burnaby 2015-06-02 23:59:43 +00:00
Winson Chung 8f1eff7b6c Adding context for app launches.
Bug: 21492784
Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
2015-06-02 16:58:30 -07:00
Mady Mellor ef044dd380 Stylus support: creating and setting listeners for stylus button press
This updates almost(*) all locations that use a long press listener to
also set a custom touch listener that recognizes the stylus button press
action.

The stylus button press action is: when a stylus touches a view while the
primary stylus button is pressed which may occur on a DOWN or MOVE event.

*The location this is *not* enabled for is: Longpress to enter "overview"
mode -- this isn't really a selection or drag n drop action; it is also
easy to accidentally do this while using the stylus gesture to drag n drop
items which is not an ideal interaction. Also not set for the "cling" that
demonstrates this.

Bug: 20430722
Change-Id: I9343f143261a7b4fada9afca28b8a11a60dbecca
2015-06-02 15:35:07 -07:00
Sunny Goyal 5b9ebcab3c Fixing preloaded widget not getting used for animation
> The preloaded widget was being set in a different instance of
PendingAddWidgetInfo and was never getting used for animation.

bug: 20699153
Change-Id: Iaec13640e49c66993b4695e4a52dc3a3a2133fb2
2015-06-02 15:20:03 -07:00
Mady Mellor 770f7c5907 Stylus support: handling drag n drop for widgets
This alters the widget host view code to consider stylus button presses
allowing the user to pick up widgets with a stylus button press, and drop
them by releasing the button.

Bug: 20430722
Change-Id: I359f72bd80016f4b313aab1325cc92d7c6fd2a8c
2015-06-02 15:02:36 -07:00
Winson Chung 59caa60222 Remove use of API level 19 classes.
Bug: 21583308
2015-06-02 18:31:01 +00:00
Sunny Goyal 316490e636 Removing some synthetic method creation
> Make package-private and @Thunk all private methods and constructors accessed from inner classes.

Change-Id: Ie5913860a0c33e48e9bf68f9b5b1699f64c2f174
2015-06-02 10:04:59 -07:00
Sunny Goyal 6ff6f6d649 Removing unused animation style
Change-Id: Ib8031eb9604cb2c10d4ac07e22b94772f7967a89
2015-06-01 22:02:54 -07:00
Sunny Goyal c1cd23b4a7 Build fix: Removing FastOutSlowIn interpolator
Change-Id: Ia84445285d013fe8da3c895f5264f329f2403890
2015-06-01 17:16:22 -07:00
Sunny Goyal a07c2f5c80 Folder UI fixes
> Fixing top padding (b/21304523)
> Alinging the label and page indicators to the icons
> Fixing folder label alingment in RTL (b/21445821)
> Updating footer animation (b/21336853)

Bug: 21304523, 21445821, 21336853
Change-Id: I2cf3a48c76653b19437b31252d6ee559ce798094
2015-06-01 16:15:54 -07:00