Commit Graph

4413 Commits

Author SHA1 Message Date
Hyunyoung Song b6e4aece3f Merge "WidgetTray on Kitkat" into ub-launcher3-burnaby 2015-04-16 19:08:53 +00:00
Hyunyoung Song f24f250158 WidgetTray on Kitkat
- Fix "getDrawable" not found runtime exception by getting rid of dead code

Change-Id: Id511a6c0c4ea1070f5f498cf6458548ace7c54f7
2015-04-16 03:12:19 -07:00
Sunny Goyal f406615354 Fixing drag-n-drop for folders in hotseat.
The current drag-n-drop model assums that when a folder is open
it completely covers the folderIcon and its not possible to drop
anything on the icon. But its not true when a folder is in the
hotseat.

> When DnD finishes revert folder to the normal state
> Ensure that only one folder is open at a time
> Prevent folder icon from moving when the folder is open

Bug: 13646281,14680549
Change-Id: I016a4c3f0d9b57c388eaa28f40df9e7b7bbab5fc
2015-04-15 17:12:04 -07:00
Sunny Goyal 7767a460e2 Merge "Fixing pallpaper parallex in rtl." into ub-launcher3-burnaby 2015-04-15 21:29:04 +00:00
Sunny Goyal 3fa3c12761 Fixing pallpaper parallex in rtl.
The rtl mode, the first screen should correspond to the last
opage offset (since page offset are always defined as
left-to-right)

Change-Id: Ie31139166bd71c423c63968760493ec572af81e9
2015-04-15 13:54:27 -07:00
Neil Fuller ba41458f5c Remove usage of FloatMath
Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: I2effc3f498fb13e66de9a905b9a40ac5688a5850
2015-04-15 09:10:18 +01:00
Hyunyoung Song 6da9c32204 Fix null pointer exception in WidgetsModel
Due to not clearing the PackageItemInfos list when uninstall happened,
uninstalled PackageItemInfo lingered around when there wasn't associated
Widgets to it. Hence causing null pointer exception.

b/20216900

Change-Id: I5601cf618079044d24ffc3ee835c1468fa2e9371
2015-04-14 11:50:44 -07:00
Hyunyoung Song 9d07e3d561 Merge "Focus handling - RTL support" into ub-launcher3-burnaby 2015-04-14 00:49:16 +00:00
Hyunyoung Song ada50984dc Focus handling - RTL support
- Support LEFT and RIGHT keys to work across workspaces when in RTL mode.
- Folder icons navigate correctly on DPAD_LEFT/RIGHT events
- Folder navigation across pages also works correctly
- Deleted dead code inside FocusHelper

b/20120358

Change-Id: I7f851cb7ed31f666a91b2f856458d7966ea5f712
2015-04-13 17:44:31 -07:00
Hyunyoung Song be5c4ae5a4 Merge "WidgetTray improvement" into ub-launcher3-burnaby 2015-04-13 22:59:50 +00:00
Hyunyoung Song 4e8fb91cf1 WidgetTray improvement
UI
- Fixing the issue of widget row not rendering
- Moved the resetting of previous bitmap to the start of onBind
instead of the onDetachedWindow.

Performance
- WidgetModel do not have to keep packageName list around.

Will com in immediate follow up CLs
- use lowRes widgets bitmap before fully loading the fullRes one.
- application icons are fully loaded in background thread.

b/19897708

Change-Id: I5b3b43a5c543a5135c395f90df32e66d57dc86e0
2015-04-13 15:58:30 -07:00
Sunny Goyal ece6c8b20b Wrong icon getting set for an app on secondary user during updates
Bug: 20163841
Change-Id: Ief91db56f7831f89e34c4540981a9d2db96b8bed
2015-04-13 11:48:46 -07:00
Sunny Goyal 18bf8e2ffd Automatically adding managed profile shortcuts to homescreen.
When the managed profile is created, a "Work" folder is created
and added to the homescreen. All work profile apps are added to this
folder and icons for subsequent installs (withing a fixed time frame)
are automatically added to this folder.
If this folder get deleted or the time-frame expires, icon for any new
install is placed on the homescreen.

Bug: 17410319
Change-Id: I49f4e437707d5eabe4eec85320765bf6ba7fde97
2015-04-10 19:37:13 -07:00
Sunny Goyal d9760ee2de Merge "Deduping shortcuts to app-shortcuts if they have a valid intent" into ub-launcher3-burnaby 2015-04-11 02:24:46 +00:00
Sunny Goyal 0b03778966 Deduping shortcuts to app-shortcuts if they have a valid intent
> Only deduping shortcuts for the primary user as custom shortcuts
for secondary users is not supported.

Change-Id: If129dee64a395602006ebb996d4b09b93b89084f
2015-04-10 19:01:32 -07:00
Winson Chung 75cc825f3f Fixing regression in AllApps being aggressively dismissed after returning to Launcher.
- Adding workaround to prevent the built-in search box from being focused when AllApps is shown again

Bug: 20143148
Change-Id: Id546d3e5fedc724d95e067d26115ee716ac1d626
2015-04-10 10:33:40 -07:00
Sunny Goyal 84206dab52 Merge "Build fix" into ub-launcher3-burnaby 2015-04-10 01:33:33 +00:00
Sunny Goyal ff312e53ab Build fix
Change-Id: I2cbf90dada48ccff17235fb63d66684d2c4eb791
2015-04-09 18:32:21 -07:00
Winson Chung 4a1a38c83e Merge "Removing unused View ctor introduced in L." into ub-launcher3-burnaby 2015-04-10 01:06:48 +00:00
Winson Chung 211290119a Removing unused View ctor introduced in L.
- This prevents us from running on K/pre-K
2015-04-09 17:58:14 -07:00
Hyunyoung Song 9884fd26d5 Merge "WidgetTray UI improvement" into ub-launcher3-burnaby 2015-04-10 00:23:50 +00:00
Winson Chung 90edbf8409 Merge "Initial changes to support a fixed all-apps layout." into ub-launcher3-burnaby 2015-04-09 23:55:58 +00:00
Hyunyoung Song a23dab9c64 WidgetTray UI improvement
- Long application title should be ellipsized
- Disable the drawable when the view is no longer attached to the window
- Save the PackageItemInfo to the WidgetModel once full res icon bitmap is loaded

b/19897708

Change-Id: I96f260f9d165b206905a127fcee9879556c3d0c4
2015-04-09 16:54:31 -07:00
Sunny Goyal b863415c17 Updating folder UI
> Removing 2 folder content implementations and merging unscrollable
content into FolderPagedView
> Disaling folder sorting
> Fixing pageIndicator height

Change-Id: I36e35e311eaf99b6c69d450c0765bd41b2d68738
2015-04-09 14:19:33 -07:00
Winson Chung 0f78572066 Initial changes to support a fixed all-apps layout.
- Dynamically update padding and background depending on fixed bounds and searchbar
- Fixes issue with drag layer bg getting clobbered when rotating launcher
- Tapping outside the bounds of all apps should close all apps
- Fixing typo causing widgets to not show in sw720dp devices

Bug: 20127840

Change-Id: I29c3f905bdee940f938ffe054f58434887073092
2015-04-09 13:18:31 -07:00
Hyunyoung Song 3f471440a8 WidgetTray revamp work
- RecyclerView is rendering
- Animation is connected
- Drag and drop is now handled
- UI tweaking: background, margins, more to come.
- Flicker and preview not loading issue:
  fixed height for the horizontal scroll view.
- Shortcuts are added
- Widget Preview loading should support shortPress for drop
- UI tweaks left: overlay of arrow when there are more items to scroll
- icons are added in the section header
- Sorting of widget sections and widget horizontal list
- Adding all the padding constants to dimen.xml file
- RecyclerView should only support one view type

For items to be addressed in follow up patches OR CLs,
TODO is added to the comment.

b/19897708

Change-Id: Ibfc4da1696a23d20bada93db46e126706eb13cdc
2015-04-08 19:01:34 -07:00
Sunny Goyal 85e3d4cc5e Merge "Fixing some RTL issues with scrollable folder" into ub-launcher3-burnaby 2015-04-08 21:02:25 +00:00
Winson Chung b471b0869b Merge "Temporarily tweaking the all apps layout to fit the screen on tablets." into ub-launcher3-burnaby 2015-04-08 18:37:21 +00:00
Winson Chung bd808530db Temporarily tweaking the all apps layout to fit the screen on tablets.
Change-Id: I2f8fe8e39a39cd6a055f22696881c51be7624832
2015-04-08 11:10:12 -07:00
Sunny Goyal 724d0e22ac Merge "Fixing focus indicator position when the overlay page has different size than the current page." into ub-launcher3-burnaby 2015-04-08 17:45:59 +00:00
Sunny Goyal 059228ad8e Fixing focus indicator position when the overlay page has different
size than the current page.

Bug: 20104483

Change-Id: Ib79d1bc4eeffc03b706ad6d77d8285b8a7f1188a
2015-04-08 10:40:02 -07:00
Sunny Goyal c624a26aa3 Removing unused receivers
Bug: 20068934
Change-Id: Ie08055ba964ebe4fe2c2a9ec39500d894d82f591
2015-04-08 09:23:06 -07:00
Winson Chung 1f0d5cb41f Merge "Fixing issue with building velvet against lower support lib." into ub-launcher3-burnaby 2015-04-07 21:04:25 +00:00
Winson Chung 1c7c49331e Fixing issue with building velvet against lower support lib. 2015-04-07 13:45:29 -07:00
Sunny Goyal 3b0883fcda Fixing some RTL issues with scrollable folder
> folder name alingment
> scroll hint direction
> Fake animation direction for icons changing pages

Change-Id: Ia17ab2861a6d72c876806427e2de1682976b7671
2015-04-07 12:52:37 -07:00
Sunny Goyal 50062408bf Merge "Revert "Setting hotseat padding to the container for symmetry"" into ub-launcher3-burnaby 2015-04-07 16:26:42 +00:00
Winson Chung 5420985016 Merge "Small refactoring to apps list." into ub-launcher3-burnaby 2015-04-07 01:51:16 +00:00
Winson Chung 9121fbffaf Small refactoring to apps list.
- Fixes issue with fading in app icons when items are added/removed
- Reduces number of expensive calls when drawing sections and the scrollbar
- Removes fake section AppInfos in the adapters
2015-04-06 15:12:49 -07:00
Winson Chung 47eb4efe67 Merge "Ensuring that work-profile applications are mixed in with other apps." into ub-launcher3-burnaby 2015-04-06 21:52:51 +00:00
Winson Chung c517f4ce65 Ensuring that work-profile applications are mixed in with other apps.
Bug: 20046158
Change-Id: I833c1a1467889db07f9ec33ca77641322901958e
2015-04-06 14:51:13 -07:00
Sunny Goyal d405693ca2 Merge "Adding support for loading package icon in iconCache" into ub-launcher3-burnaby 2015-04-06 21:07:47 +00:00
Sunny Goyal d180cf7e16 Adding support for loading package icon in iconCache
> package icons need to be retrieved from IconCache for the new widget tray

Bug: 19897708
Change-Id: Iaafc5e16477aaa4e9a7c46b5abf8146cd1101ffd
2015-04-06 13:51:28 -07:00
Adam Cohen 2e52c90b3f resolved conflicts for merge of 68fdeaad to ub-launcher3-burnaby
Change-Id: I29aa5b37968b1ced81cdeb68a021db9310047252
2015-04-06 13:11:38 -07:00
Sunny Goyal b5352011e6 Merge "Adding a system status column in icon cache & invalidating items based on it" into ub-launcher3-burnaby 2015-04-06 18:44:59 +00:00
Sunny Goyal e0bca38624 Revert "Setting hotseat padding to the container for symmetry"
This reverts commit d81992b6e7.

Bug:20087585
Change-Id: I4949ec9e0e27afa218597b943001e7240cfdc548
2015-04-06 18:39:22 +00:00
Sunny Goyal 35ca873bd9 Adding nullcheck when getting app restrictions
Bug: 20085185
Change-Id: I782a79a331a2d58287e34e24ed7730207bf260cb
2015-04-06 10:46:01 -07:00
Sunny Goyal adb7541648 Merge "Reinflating QBS on resume, if the widget orientation is not same as launcher orientation" into ub-launcher3-burnaby 2015-04-03 16:30:42 +00:00
Sunny Goyal 22235bcb40 Reinflating QBS on resume, if the widget orientation is not same as launcher orientation
Bug: 20044969
Change-Id: I5c285ddb09fc8b5d8444795eda64cd28486ab81d
2015-04-03 09:26:48 -07:00
Adam Cohen 68fdeaadc6 Stop using custom activity transition, rely on system default in these cases
-> workaround for platform issue related to this resource, but also
   a decent code cleanup

issue 20006693

Change-Id: Iea3a2fb14be5ed78d882ddf9d970b12d177f4249
2015-04-02 11:53:48 -07:00
Sunny Goyal 8d600321ff Merge "Updating pageindicator assets" into ub-launcher3-burnaby 2015-04-02 18:22:37 +00:00