Commit Graph
9768 Commits
Author SHA1 Message Date
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 557280c116 Merge "Updating folder UI" into ub-launcher3-burnaby 2015-04-09 23:35:02 +00: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
Sunny Goyal 3261921566 Merge "Removing UserInitializeReceiver from manifest as it does not exist" into ub-launcher3-burnaby 2015-04-09 20:31:15 +00: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
Sunny Goyal 1bf0388602 Removing UserInitializeReceiver from manifest as it does not exist
Change-Id: I5f14d93abadfab0bc2822bc0c68648c72b5a082c
2015-04-09 11:18:28 -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
Hyunyoung Song c14e0a4ba8 Merge "update .gitignore config file so that we do not have to scroll through the unstaged items to pick which one to stage." into ub-launcher3-burnaby 2015-04-08 20:51:19 +00:00
Hyunyoung Song 47a4f5882d update .gitignore config file so that we do not have to scroll through
the unstaged items to pick which one to stage.

Change-Id: I317e95fd74455999c957bf5434a8c7cb78afc3b2
2015-04-08 13:20:51 -07: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
Sunny Goyal 73621503de Merge "Removing Pools.java as it is present in support lib" into ub-launcher3-burnaby 2015-04-08 18:14:04 +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 7f06ae5c8b Removing Pools.java as it is present in support lib
Change-Id: I0f1346223aa289889dbefedd47bff093e9c2c05d
2015-04-08 11:08:27 -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
Sunny Goyal 0c9a354c97 Adding a system status column in icon cache & invalidating items based on it
Bug: 20034430
Change-Id: Icd6c6426fc7ed26cd104bf22a9d2b0263cb0fa67
2015-04-01 16:05:34 -07:00
Sunny Goyal 1d4a2df091 Removing ContentObserver from LauncherModel, and calling reload
whereever necessary

Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
2015-04-01 10:20:18 -07:00
Sunny Goyal e9909f58c2 Removing UninstallShortcutReceiver
> Removing support due to its flacky design. Removing a shortcut
causes a full reload. Also we do not have any concept of owner, so
any app can remove any shortcut.

Bug: 11372484
Change-Id: I781c922fac7dc77ea82cd0a2af74a5fca22500de
2015-04-01 10:11:11 -07:00