Commit Graph

9296 Commits

Author SHA1 Message Date
Sunny Goyal
546bbf2f8d Removing market icon
Change-Id: I7837cd8083cf2c07444b509fcfb7447151ba76b5
2015-04-17 12:51:24 -07:00
Winson Chung
c90ef7584b Merge "Ensuring that our animation callbacks are not stripped by pro guard." into ub-launcher3-burnaby 2015-04-17 17:32:56 +00:00
Sunny Goyal
18b640c371 Removing LauncherProvider dependency from LauncherSettings
> This ensures that the classLoader does not need to load
LauncherProvider to access LauncherSettings
> Making a few fields public.

Change-Id: I2e8ee6e169552739f09e500d3b6acbcee7cd0718
2015-04-17 09:30:32 -07:00
Winson Chung
9cbea78b19 Ensuring that our animation callbacks are not stripped by pro guard.
Bug 20296035
2015-04-16 21:18:34 -07:00
Sunny Goyal
fb9ca23928 Merge "Fixing drag-n-drop for folders in hotseat." into ub-launcher3-burnaby 2015-04-16 22:39:00 +00:00
Sunny Goyal
fc3c1edf7b Fixing folder focus logic
> Folder items no longer remain in a linear order when a folder
gets rearranged, and se we need to use createSparseMatrix instead
of createFullArray. Also because of this we need to use getChildAt(x, y)
instead of getChildAt(index)
> Removing traces of AppsCustomizePage (all apps) from FocusHelper

Change-Id: I9007f6b95cb823e27ef4a43ce725fda8ef1b7cf8
2015-04-16 14:53:58 -07:00
Hyunyoung Song
df41097194 Merge "Focus handling null pointer exception during monkey tests." into ub-launcher3-burnaby 2015-04-16 21:52:13 +00:00
Sunny Goyal
3774923944 Merge "Updating maxscroll only after layouttranstion has finished" into ub-launcher3-burnaby 2015-04-16 21:51:07 +00:00
Sunny Goyal
3e2ff8afef Updating maxscroll only after layouttranstion has finished
Bug: 20092568
Change-Id: I6ff8d9759b71b0b00ebfdaa75b558254dbeb0ef9
2015-04-16 14:50:22 -07:00
Hyunyoung Song
b76cd628e6 Focus handling null pointer exception during monkey tests.
- Also fix a bug where the focus is not navigating to the next page when there
isn't an icon within +45 and -45 range of the origin.

b/20294717

Change-Id: I16dac5c6a0463fbc9f56a447abedad18abadde98
2015-04-16 14:34:09 -07:00
Sunny Goyal
317073ca2d Merge "Updating pageindicator assets" into ub-launcher3-burnaby 2015-04-16 19:57:21 +00:00
Winson Chung
7e8ba7cfb9 Merge "Fixing regression in AllApps being aggressively dismissed after returning to Launcher." into ub-launcher3-burnaby 2015-04-16 19:44:33 +00:00
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
bbc140b545 Merge "Revert "Revert "Disable setWallpaper button until the wallpaper is loaded" Will submit again after the drop" Actual fix" into ub-launcher3-burnaby 2015-04-15 23:53:43 +00:00
Sunny Goyal
89a6ec2af2 Revert "Revert "Disable setWallpaper button until the wallpaper is loaded" Will submit again after the drop"
Actual fix

This reverts commit b4b01efa43.

Change-Id: I65cc75e0f1a95f69be607bb5b11d7f4627ff25c1
2015-04-15 23:40:57 +00:00
Sunny Goyal
b3c5fac5dc Merge "Revert "Disable setWallpaper button until the wallpaper is loaded" Will submit again after the drop" into ub-launcher3-burnaby 2015-04-15 23:39:51 +00:00
Sunny Goyal
b4b01efa43 Revert "Disable setWallpaper button until the wallpaper is loaded"
Will submit again after the drop

This reverts commit 65776c4359.

Change-Id: I5f85d0c70f3f5faf85d9ba16e82d4714b694a193
2015-04-15 23:38:17 +00:00
Sunny Goyal
8fbb771537 Merge "Disable setWallpaper button until the wallpaper is loaded" into ub-launcher3-burnaby 2015-04-15 22:26:32 +00:00
Sunny Goyal
7767a460e2 Merge "Fixing pallpaper parallex in rtl." into ub-launcher3-burnaby 2015-04-15 21:29:04 +00:00
Sunny Goyal
65776c4359 Disable setWallpaper button until the wallpaper is loaded
Bug: 20187333
Change-Id: Id7a42616560e15eddedad5846ef927a3be52ed1c
2015-04-15 14:17:46 -07: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
Sunny Goyal
a9c0978e3e Updating pageindicator assets
Change-Id: I22d6a53f0c372a128b47ec95857793477317fc07
2015-04-14 16:49:41 -07: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
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