1026 Commits

Author SHA1 Message Date
Sunny Goyal
e7b8cd9e4f Improving restored widget behavior
> Clicking a broken widget install shows a dialog similar
to an app icon
> Clicking remove on the dialog removed all components
for the corresponding package
> Widget pending view shows 'Setup' text instead of icon,
if there is enough space

Change-Id: I82ec0a1ee9542c1e3b860e6e00798a80450dce3c
2014-08-27 14:07:05 -07:00
Sunny Goyal
424418bb50 Updating clings, removing ununsed clings
issue: 16127412

Change-Id: I1d18515765100ff10d33439b3ac39ebfc5da35c7
2014-08-25 11:38:02 -07:00
Sunny Goyal
b3726d90a5 Changing hotseat keyboard controls
> Left and right keys don not navigate to next/prev page
> Down arrow on apps apps last row, do not take the focus to the end
> Nagivation sounds when focus changes

issue: 16352221

Change-Id: I5982f22dc80c408673092f8fa8ca1b2fc6381635
2014-08-20 17:00:32 -07:00
Sunny Goyal
22308ce1b8 Merge "Updating the icon click feedback" into ub-now-porkchop 2014-08-20 20:15:45 +00:00
Jan-Willem Maarse
2111606845 Merge "Ignore generic motion events if custom content doesn't allow scrolling" into ub-now-porkchop 2014-08-20 18:43:12 +00:00
Adam Cohen
c50438c802 Unify next / prev page hints for drag and drop across devices
-> Eliminate the white bgs on tablets during drag (issue 15880213)
-> Add stateful (active and rest) next / prev page hints (issue 15937059)
-> Fix recent regression which allowed overscroll in custom content area

Change-Id: I1198dc88ca8570cb9e1afd3ca939be06a8dea92e
2014-08-19 22:17:10 -07:00
Sunny Goyal
508da15509 Updating the icon click feedback
> Using BubbleTextView everywhere, removed PagedIconView
> There is a brightness feedback on touch and shadow
feedback on click, until app launches

issue: 16878374
Change-Id: I3dc1149a123c8a75feca6210948398bf2187f1f2
2014-08-19 18:03:06 -07:00
Jan-Willem Maarse
d3fbe683bb Ignore generic motion events if custom content doesn't allow scrolling
If the custom content screen is selected and it doesn't
allow scrolling, the workspace should ignore generic motion
events instead of trying to scroll to the next page.

Change-Id: Iee9c7e02bf7c78648b574a01c83dcb76c0b62855
2014-08-19 15:27:48 -07:00
Adam Cohen
1e4359c54e Adding dampened snap back overscroll to Workspace and AppsCustomizePagedView
issue 15475254

Change-Id: I5eb9fc480167faf4be16bd17bf18e2d103f40f47
2014-08-18 13:45:36 -07:00
Adam Cohen
63f1ec00fb Further refinement of all apps / widgets transition
Change-Id: Id107a9aff74f014c07f8cbea6e74951a02dbddab
2014-08-13 21:39:48 +00:00
Sunny Goyal
0fc1be164e Updating the ui for widget restore flow
> Pending widget show a PreloadIconDrawable to indicate
installation progress
> Only the concerned widgets are reinflated on package
install and not the whole workspace.
> Adding support for storing default package icon in
IconCache

issue: 10779035
issue: 16737660

Change-Id: Id787ae4a5ef72d6e01aeb5a1bae5ab8840037679
2014-08-12 16:00:03 -07:00
Sunny Goyal
e3a55a9f42 Merge "Updating the virtual preloader UX." into ub-now-porkchop 2014-08-11 17:59:47 +00:00
Sunny Goyal
95abbb330c Updating the virtual preloader UX.
> No click feedback when in preloader mode
> No preloader UI when drawn in drag layer
> The preloader consists of a background 9 patch image and a circular progress
is drawn in the content region of the background.
> The preloader is drawn in a slightly larget area than the actual bounds to
make the circular progress more prominent compared to the icon.

issue: 15835307
Change-Id: Ifec3d93ecf1fac994d1128b517da3797247e7ed6
2014-08-11 12:32:04 -07:00
Sameer Padala
056cf62bbb Merge "Update code so it compiles on google3" into ub-now-porkchop 2014-08-11 18:26:04 +00:00
Adam Cohen
6551b7ef07 Merge "Updating the widget tray" into ub-now-porkchop 2014-08-09 00:40:15 +00:00
Adam Cohen
4e243a2dad Updating the widget tray
-> adding dark panel / associated visual updates
-> cleaning up the sizing / padding / to match all apps
-> fixing a couple things from previous CL
-> (removed Context#getDrawable() calls, L-only)

Change-Id: Ia65a6eb704b35f74e7305be9334c27971b22235a
2014-08-11 15:40:37 +00:00
Sameer Padala
65c6011d09 Update code so it compiles on google3
Change-Id: I76c6a5264585c8ad4ded22501d2e2ee1672308c3
2014-08-08 17:34:57 -07:00
Mark Brophy
5337aea153 Merge "Revert "Updating the widget tray"" into ub-now-porkchop 2014-08-08 18:15:47 +00:00
Mark Brophy
fd0f02ce42 Revert "Updating the widget tray"
This reverts commit b172c13dcc.

Change-Id: I375fb105e3cf6fa2c1548306cf6a109d612077de
2014-08-11 12:37:00 +00:00
Adam Cohen
b172c13dcc Updating the widget tray
-> adding dark panel / associated visual updates
-> cleaning up the sizing / padding / to match all apps
-> fixing a couple things from previous CL

Change-Id: I4f663af7022337d687124ef25a22bac03d9d6af9
2014-08-10 19:10:21 -07:00
Sunny Goyal
d3ad9828d1 Merge "Adding support to restore widgets even for jelly beans." into ub-now-porkchop 2014-08-10 19:43:29 +00:00
Sunny Goyal
ff57227711 Adding support to restore widgets even for jelly beans.
> Show 'widget-not-ready' until the widget app is installed
> Once the app is installed, bind a new widget id (not required on L if
  id-remap was received).
  **Remove the widget if bind failed
> If the widget has no configuration screen, show the widget, otherwise
  show 'setup-widget'.
> Clicking 'setup-widget' shows the config screen, and updates the
  widget on RESULT_OK.

issue: 10779035

Change-Id: I2f8b06d09dd6acbc498cdd93edc59c26e5ce17af
2014-08-08 14:29:02 -07:00
Sunny Goyal
e755d469d4 Implementing a package install progress listener for L
issue: 15835307

Change-Id: I71aaea087963f2e0e1206447190cbe23c174057d
2014-08-01 14:45:39 -07:00
Sameer Padala
513edaebce Modify code so it compiles on google3
The diamond operator isn't supported on google3 Android projects.

Change-Id: Ie7298b051330bb2cd32426d4c537882faa2f8ebd
2014-07-29 16:17:08 -07:00
Sunny Goyal
e86b9d79c4 Merge "Adding nulls check in various drop-drop events" into ub-now-master 2014-07-22 16:21:19 +00:00
Sunny Goyal
25611b181f Adding nulls check in various drop-drop events
The original patch by motorola had another check, but the 2nd check
is wrong as in that case, there would be a nullpointer exception just
after the check for the same reason.

issue: 15518908
issue: 15516428

Change-Id: I85c5fb3541b7f837e6c5295e97e45162a4120e39
2014-07-22 12:04:22 -07:00
Adam Cohen
82cc3fe6c7 Merge "Preliminary work on Material Transitions" into ub-now-master 2014-07-19 22:40:06 +00:00
Sunny Goyal
651077bdd6 Adding app widget restore support in Launcher3 for android L
When the app is restored, it displays placeholders for all pending widgets.
These placeholders can be moved and removed similar to a widget (size is fixed
to what defined in backup). Once the system notifies the launcher of the new
widget ids, the place holders are replaced with actual widgets.

issue: 10779035

Change-Id: I68cbe4da01e9ca2978cb4471a7c645d2aa592055
2014-07-21 10:34:21 -07:00
Adam Cohen
6c5891a9fc Preliminary work on Material Transitions
-> Early exploration of AllApps Hero transition with
   circular reveal
-> Stripping a bunch of dead code from AppsCustomizeTabHost
-> Moved background scrim to DragLayer
-> Removed "SMALL" state from workspace: replaced with
   NORMAL_HIDDEN and OVERVIEW_HIDDEN. This is mainly to
   reduce the overall usage of the z-space model between
   allapps/widgets and workspace. There are vestigial
   remains of this model, mainly due to the overview
   mode, and a bit for spring-loaded.

Change-Id: If2302a24394f0ec66621f01ffa2fc4934aa10c3f
2014-07-18 17:56:42 -07:00
Sunny Goyal
c5c60ad359 Merging Motorola's patch to disable apps when is safe mode.
issue: 16044192

Change-Id: I10069dcdf459ecc71361271e883eabb743d77822
2014-07-18 16:10:34 -07:00
Jan-Willem Maarse
2ff91c46fa Allow custom content to lock the workspace
Change-Id: Ic337df1b2cd54b99d4ef02dcfaca955c90297df0
2014-07-14 18:36:23 -07:00
Kenny Guy
e10abafa50 Merge "Revert "Revert Cls stopping now-master running on googlefood"" into ub-now-master 2014-07-01 17:46:08 +00:00
Chris Wren
803a4bec0f Drop support for remove all dead promises.
Bug: 12764789
Change-Id: Id876b66cf8da4388cb3ed5670a0bbdcf73f2982d
2014-07-01 17:13:04 -04:00
Kenny Guy
c2bd8101b8 Revert "Revert Cls stopping now-master running on googlefood"
This reverts commit 7bc272a11b.

Conflicts:
	src/com/android/launcher3/BubbleTextView.java

Change-Id: Id1fb2e1249e72658ce5477165c9bcacba9de2b04
2014-06-30 12:30:31 +01:00
Chris Wren
40c5ed3039 Offer to delete broken promise icons.
Track state of promise in the info, not the view.
Fix bugs around moving promises to folders.
Fix bugs around filterign and removing promises.

Bug: 12764789
Change-Id: If5e8b6d315e463154b5bafe8aef7ef4f9889bb95
2014-06-27 15:17:56 -04:00
Kenny Guy
7bc272a11b Revert Cls stopping now-master running on googlefood
This reverts commits 01453e855f.
and 242bbe1b72.
"Add content description to bagded icons."
"Remove reflection now we are building against L"

Bug: 15833449
Change-Id: I81a5316f5619a9cd3b6ab9fd03b2ba96657b7f68
2014-06-24 11:43:19 +01:00
Kenny Guy
01453e855f Add content description to bagded icons.
Enabled accesibility so that icons badged by the
managed profile have a content description
that is different to the non-bagdged version.

Bug: 15106236
Change-Id: Id483273173d9539916eebd59111d179087526be3
2014-06-23 16:42:37 +01:00
Adam Cohen
e25c5d1c94 Prevent discordant state between Workspace and Launcher (issue 15409018)
Change-Id: I13bb3e51da18998a5dade49c50e5fbf2266022d3
2014-06-18 10:38:31 -07:00
Adam Cohen
6f127a614c More defense for issue 14491953
Change-Id: I90de51c74e337d56aad891741233e6a857d89b62
2014-06-12 17:08:27 -07:00
Adam Cohen
ea90f83e24 Check before suggesting default wallpaper dimensions
issue 14470153

Change-Id: Id00e9cb4bd2b769818ed61de65be8c1c0119e07d
2014-05-21 17:13:40 -07:00
Adam Cohen
824fcb3a3e Revert "Debugging wallpaper stuff on production device (to be reverted once built)"
This reverts commit f8dc557cf8.

Change-Id: I2a2ce9a067ec6df829eb23997661bb090daa64ff
2014-05-21 23:01:25 +00:00
Adam Cohen
f8dc557cf8 Debugging wallpaper stuff on production device (to be reverted once built)
issue 14470153

Change-Id: I6c93b11f639d79163da0c3ce4e4053e304e0081e
2014-05-21 15:53:11 -07:00
Adam Cohen
db364c3355 Fix crash when launcher dies while configuring a widget / shortcut
issue 15014018

Change-Id: I083fa40fb2fd0eb217852e5d088fa5e18e5f5697
2014-05-20 14:25:37 -07:00
Adam Cohen
c29217b08f Revert "Debugging something for wallpaper noise issue"
This reverts commit 211d38c784.

Change-Id: I2c3e69e8951c3435f51d9ac43eddf0b56157b792
2014-05-18 03:17:15 +00:00
Adam Cohen
211d38c784 Debugging something for wallpaper noise issue
issue 14470153

Change-Id: Ifdde30b9a26443cdcf480f0ed4cfed2d612d09cf
2014-05-17 18:17:00 -07:00
Adam Cohen
6268f2db4c Disable the folder cling in two cases
-> When the user creates a new folder
-> When the user drags an existing folder
-> The folder cling gets cut off in certain instances
   and until we make it more extensible (not worth
   it right now), we're disabling it in the problematic
   cases. Also, in the problematic cases, the user
   is demonstrating some advanced knowledge, so
   it's somewhat justifiable.

issue 14491765

Change-Id: Ib15d2f097c51a9b755f04b95ed6ef468d3bacc60
2014-05-16 18:18:20 -07:00
Adam Cohen
e1c92c4afa Remove debug println
Change-Id: I8bf8f948394ed2ecbcb3da3761506c9aa5752494
2014-05-09 16:40:59 -07:00
Adam Cohen
689ff16ea2 Cleanup pattern for removing the extra empty screen after drag operations
-> Fixes a couple bugs: issue 12179908, issue 12372657, issue 13287732

Change-Id: I24b5abe8e432ea331eeb77407120a8cec28f6376
2014-05-09 15:05:53 -07:00
Kenny Guy
ed13187a74 Launcher3 multi-profile support
Use LauncherApps API and badging APIs instead of PackageManager.
With compatability layer that uses PackageManager pre L.

Adds support to show apps from current user and any managed profiles.

Background: Managed profiles are user sandboxes that are visible from
the primary user and can be launched as if they are a part of this user.
A launcher should now be capable of listing apps from this user as well
as related profiles of this user.

Launching of activities is now via the LauncherApps interface, to allow
for cross-profile app launching. Only activities with category LAUNCHER
can be added as a shortcut on the workspace for a managed profile.

Widgets and non-application shortcuts are only supported for the
current profile. Widgets from the managed profile are not available.

Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
2014-04-30 23:43:00 +01:00
Adrian Roos
8f3f6830f2 Sanity check screenId before persisting ItemInfo.
Bug: 13447571
Change-Id: I014dcf1eb313c2312953716fb53e542caaeb285b
2014-04-28 15:45:55 +02:00