Commit Graph

77 Commits

Author SHA1 Message Date
Sunny Goyal bc753359f8 Extracting a common interface out of FolderCellLayout
Change-Id: Ia94a75ac232b8b425c8befdf2e4f064678531505
2015-03-05 10:14:22 -08:00
Sunny Goyal c3a609f950 Refactoring folder content
> Refactoring the CellLayout in folder with a custom view so
that it can be replaced easily with a scrollable paged view.
> Moving some methods from the folder to this new view which
assume a single page layout for the folder
> Changing folder from LinearLayout to FrameLayout to properly
handle focus traversal in case of multi-page folders

Change-Id: I073c00b995488f9f5d8123b00357e094ca2cec7c
2015-03-04 15:55:47 -08:00
Sunny Goyal c9acdd51c4 Removed disableAllApps flag
Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
2015-02-26 12:35:09 -08:00
Sunny Goyal 1587d5362f Refactoring common methods
Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
2015-02-26 18:19:22 +00:00
Sunny Goyal c46bfef5df Removing support library dependency
> Removed FolderAutoScrollHelper as folders are currently not scrollable

Change-Id: I261f43a665b742697e3224e1e9852ccc526badcd
2015-01-20 11:49:12 -08:00
Sunny Goyal 08f7261d11 Adding a rank column for itemInfo
> Rank is used to determine position of an item
in a folder.

Bug: 18590192
Change-Id: I2826a7c570b4cc58e719d685f17a24ec6133804f
2015-01-13 22:19:56 +00:00
Kenny Guy d794a3f465 Update calls now we have an L API version.
Bug: 17543647
Change-Id: I92c652a4ced5a5e783b24e42f9da4d9dfe1118ba
2014-09-18 13:07:49 +01:00
Sunny Goyal 4b02017fa5 Clear the draginfo object once the item is dropped inside a folder
issue: 16097189

Change-Id: I187b5ac97ecb5204040962e7b707ef2a2f022306
2014-08-28 15:03:44 -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 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
Adam Cohen 178879c72d Merge "Updating folder open transition for Material" into ub-now-porkchop 2014-08-18 21:31:41 +00:00
Adam Cohen c4fe9ea11e Updating folder open transition for Material
Change-Id: I2babf24a923711adc3f4f70ad3e48140a0d99a76
2014-08-19 11:26:20 -07:00
Sunny Goyal dcbcc86353 Updating the UI for focused state of an icon/folder.
issue: 16352129

Change-Id: If2e154dba06a0648f933f9aea38898642db9fd85
2014-08-18 13:51:51 -07: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
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
Adam Cohen 96bb79819e Enabling quantum look and feel everywhere
-> _l assets become default, new folder icon look is default
-> Starting to unify folder look / feel with all apps
-> New page indicators

Change-Id: I50b2c647fbcbe6ed27705527d8e16bd89e123d0b
2014-07-07 15:29:53 -07: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 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
Jason Monk 4ff73887f2 Don't close folder when adding something to it
Remove the call that closes a folder when something from All Apps
is added to it.

Bug: 14273032
Change-Id: Iac970a5c997fd254eae006be75cfbba9826f47af
2014-04-24 16:53:23 -04:00
Anjali Koppal f05545fcc2 Make FolderIcon.getFolder() public and add Folder.getContent().
Change-Id: I21ad8b8178acbde2759cd2dfcd015d91e00b7505
2014-03-10 19:18:43 -07:00
Jorim Jaggi 55bd9725d5 Implement spring-loading of folders when dragging over.
Bug: 8912132
Change-Id: Id81889a133e56461df2e20599c4b40020818ba18
2014-02-12 22:16:51 +01:00
Dan Sandler 0b95b14ffe Merge "Quick patch for b/12446428." into jb-ub-now-kermit 2014-01-13 15:35:40 +00:00
Winson Chung 234b506f46 Merge "Adding migration Clings. (Bug 11973614)" into jb-ub-now-kermit 2014-01-10 23:40:40 +00:00
Winson Chung a694524047 Adding migration Clings. (Bug 11973614)
- Refactoring Launcher cling code out to LauncherClings.

Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
2014-01-10 22:28:16 +00:00
Dan Sandler 0eb687fdc4 Quick patch for b/12446428.
Bug: 12446428
Change-Id: I5b9472e55a8919f5640c6e97fede9b5637819be0
2014-01-10 13:24:55 -05:00
Nilesh Agrawal 16f3ea870a Allow DISABLE_ALL_APPS to be set using a system property.
- Moving the property to LauncherAppState
 - The property is only read on dogfood builds.

The property can be set using setprop or /data/local.prop

Change-Id: I14c7354efb12edb93f97e81687a6f920cc634e9a
2014-01-09 17:21:09 -08:00
Adam Cohen 0259c629cb Merge "Fix issue where deleting item from folder leaves extra page" into jb-ub-now-kermit 2014-01-09 19:14:52 +00:00
Nilesh Agrawal 5f7099af85 Allow scrolling folders in when all apps is disabled.
Allows for more items to be added into a folder.
Allows for scrolling by letting the content area inside the scroll view to be taller.
The height of content area was capped in https://googleplex-android-review.git.corp.google.com/#/c/387583/

Change-Id: I8d7950ac9c155e26c5a299c17ae6a2bbf829dce6
2014-01-02 15:55:53 -08:00
Adam Cohen 9c58d8269b Fix issue where deleting item from folder leaves extra page
Change-Id: Ie741dbe5341d8237c85f732b26661d084b99f6e2
2013-12-13 17:18:25 -08:00
Michael Jurka 34c2e6cf7a Clean up imports 2013-12-13 16:20:53 +01:00
Winson Chung 33231f587e Fixing crash in empty folders. (Bug 11627191)
Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52

Signed-off-by: Winson Chung <winsonc@google.com>
2013-12-09 17:24:48 -08:00
Winson Chung fe2fb82657 am d65fb393: Merge "Revert "Fixing crash in empty folders. (Bug 11627191)"" into jb-ub-now-jolly-elf
* commit 'd65fb393595cb093936c7d5d0d54b0511430aa9d':
  Revert "Fixing crash in empty folders. (Bug 11627191)"
2013-12-09 17:19:02 -08:00
Winson Chung 72b520c956 Revert "Fixing crash in empty folders. (Bug 11627191)"
This reverts commit 68b667848e.

Change-Id: I51da495d6f8ef98b268c23cce02cce5ef1c7ea00
2013-12-10 01:17:03 +00:00
Winson Chung cace67f7dd am 6de1ba33: Merge "Fixing crash in empty folders. (Bug 11627191)" into jb-ub-now-jolly-elf
* commit '6de1ba3377dd407e83f682edf9ae742416302772':
  Fixing crash in empty folders. (Bug 11627191)
2013-12-09 17:15:54 -08:00
Winson Chung 68b667848e Fixing crash in empty folders. (Bug 11627191)
Change-Id: I7a0e23e16a7546a9612d3406257e15be758d4c52
2013-12-09 16:57:45 -08:00
Adam Cohen 5d518fa77c Decrease delay for closing folder on removal of an item (issue 11028310)
Change-Id: Ie5c094af8b0293e56bf016be5b4f4db05e7a9a05
2013-12-05 14:17:37 -08:00
Mathew Inwood 1eeb3fc9d8 Generalize support for 'App Info', 'Uninstall' and 'Delete'
This allows other DragSource's to allow this behaviour, instead of it being
tied to specific source types.

Change-Id: I06b7c39b1b34a0ae141245bcc13b6a0873a4c0fd
2013-11-28 10:17:07 +00:00
Winson Chung 89ee93e0f8 Merge "Use the icon bounds for all calculations." into jb-ub-now-jolly-elf 2013-11-14 19:19:25 +00:00
Winson Chung eeb5bbc940 Use the icon bounds for all calculations.
- Fixes a drag and drop issue when the dynamic
grid scales icons down, due to the drawable bounds
not being equal to their bitmap sizes.

Change-Id: If7c68b51131de7bac3195a2619e22340f7789432
2013-11-14 11:18:18 -08:00
Adam Cohen 17e1aeac4b Merge "Fix CellLayout UNSPECIFIED exception (issue 11627191)" into jb-ub-now-jolly-elf 2013-11-13 11:36:04 +00:00
Adam Cohen 1960ea4a71 Fix CellLayout UNSPECIFIED exception (issue 11627191)
Change-Id: Id2f840a804c51e8c61bb28882796059584e4c8bb
2013-11-12 15:47:10 +00:00
Adam Cohen f0f2ffaedc Fix issue where extra page hangs around (issue 11634172)
Change-Id: Ia0900c9fc07bc587259e36ed17816eaf519b10dc
2013-11-12 11:48:23 +00:00
Winson Chung 88400d521e Merge "Initial changes to support smaller landscape layouts." into jb-ub-now-jetsonic 2013-10-29 01:34:00 +00:00
Winson Chung 6e1c0d34bb Initial changes to support smaller landscape layouts.
Change-Id: If0abe2b82eb08bae4f1ce65b805362d548acb876
2013-10-28 18:30:25 -07:00
Adam Cohen 7397e62460 Add visible touch feedback to items in folders
Change-Id: I41937f7864bca39232079a90139679ebd5cc2a07
2013-10-24 12:12:46 -07:00
Winson Chung 540004905a Ensuring that we are calling setCompoundDrawable() instead of using intrinsic bounds. (Bug 11203738)
Change-Id: Ic2100e4008d7fc95d2670aab9d3b46a96a927599
2013-10-14 16:30:38 -07:00
Winson Chung 0dbd734384 Workaround for small icons. Draw icon drawables at the expected icon size. (Bug 11203738)
Change-Id: If976ae8b3603e8bf42e8e857ce0b178d977b0a43
2013-10-13 22:46:20 -07:00