Sunny Goyal
ee995106d8
Some parameter cleanup
...
Change-Id: Iedc7c97bd9c513ff046f7bf64a6e13f1fc8e8b54
2015-03-05 16:27:37 -08:00
Sunny Goyal and Android (Google) Code Review
cd851f1813
Merge "Using left and top instead of getLocationInWindow for getting target view position" into ub-launcher3-burnaby
2015-03-05 23:47:55 +00:00
Sunny Goyal and Android (Google) Code Review
fd3ea4f20b
Merge "Setting hotseat padding to the container for symmetry" into ub-launcher3-burnaby
2015-03-05 23:46:33 +00:00
Sunny Goyal
a39b82e2eb
Using left and top instead of getLocationInWindow for getting target view position
...
Change-Id: I1c295b8fd8be46ed9f0b12d7019572d9adc4af54
2015-03-05 15:45:02 -08:00
Sunny Goyal
82e861d71a
Using unique view id for each item in folder
...
Change-Id: I413de3db94dbab54a9c1e5799286ac78a1ae5102
2015-03-05 14:56:29 -08:00
Sunny Goyal
d81992b6e7
Setting hotseat padding to the container for symmetry
...
Change-Id: I953aa4e8d729db88dae29f51af28c6cf01891bd6
2015-03-05 14:00:18 -08:00
Sunny Goyal and Android (Google) Code Review
49b39d667d
Merge "Extracting a common interface out of FolderCellLayout" into ub-launcher3-burnaby
2015-03-05 19:24:51 +00:00
Sunny Goyal
95deb3a57c
Fixing icon disappearing on dropping to workspace
...
> It was created in ag/645900
Change-Id: I31ca5bf9763292517fa5ee3ccd867897bca45bad
2015-03-05 10:27:01 -08:00
Sunny Goyal
bc753359f8
Extracting a common interface out of FolderCellLayout
...
Change-Id: Ia94a75ac232b8b425c8befdf2e4f064678531505
2015-03-05 10:14:22 -08:00
Sunny Goyal and Android Git Automerger
323f47f8bf
am c6c8fef3: Clearing DB if necessary, when applying the default layout
...
* commit 'c6c8fef3e90f84b26c3b8550ec6a1d668ca9200d':
Clearing DB if necessary, when applying the default layout
2015-03-05 04:32:48 +00:00
Sunny Goyal and Android (Google) Code Review
0b0d9d40ee
Merge "Refactoring folder content" into ub-launcher3-burnaby
2015-03-05 04:30:22 +00:00
Hyunyoung Song and Android (Google) Code Review
bd6fde13df
Merge "Fix the broken build from recent focus navigation handling code (compilation error)." into ub-launcher3-burnaby
2015-03-05 00:35:13 +00:00
Hyunyoung Song
ac721f8d5f
Fix the broken build from recent focus navigation handling code
...
(compilation error).
Change-Id: I9beb63a88f8c7c247f397d0495501dbc0f637456
2015-03-04 16:33:56 -08:00
Hyunyoung Song and Android (Google) Code Review
cbd02cefc8
Merge "[key event focus] DPAD navigates to the nearest item on next/previous page b/19381790 b/16351792" into ub-launcher3-burnaby
2015-03-05 00:02:46 +00: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
c6c8fef3e9
Clearing DB if necessary, when applying the default layout
...
Bug: 19574498
Change-Id: I34850d9a7f7316bcc2cb9fc8a5be57d2488c16a6
2015-03-04 15:20:24 -08:00
Hyunyoung Song
3853171963
[key event focus] DPAD navigates to the nearest item on next/previous page
...
b/19381790
b/16351792
TL;DR;; Previously, when RIGHT is handled on the right most column of the
current page or when LEFT is handled on the left most column, the next
icon of focus is next page 'first' icon or the previous page 'last icon'.
With this change, the row information is preserved when trying to locate
an icon to give focus in the next/previous page.
Next CL: long awaited unit tests that capture corner cases for different
orientation/ device configuration.
Change-Id: I5278bed45275b3e4cb39fb698df35f90bb45a415
2015-03-03 19:25:16 -08:00
Sunny Goyal
9282059e44
Fixing wrong check to determine the drag source
...
> target it the drop target, i.e., the InfoDropTarget or DeleteDropTarget
Change-Id: If4a9f8eb72ee6afb4d80c7df6f0f2ada4bc35b22
2015-03-02 15:39:01 -08:00
Sunny Goyal and Android (Google) Code Review
8dbf0fff1f
Merge "Setting workspace id as primary key" into ub-launcher3-burnaby
2015-03-02 23:28:06 +00:00
Sunny Goyal and Android Git Automerger
f30e99b2dc
am e72f3d53: Fixing wronk rowID check.
...
* commit 'e72f3d53f8c35b94aece6fafa6fd12cce9d09fe5':
Fixing wronk rowID check.
2015-03-02 22:43:52 +00:00
Sunny Goyal
e72f3d53f8
Fixing wronk rowID check.
...
Since screenId is changed to primary key, the rowId can now be 0 (earlier
it was auto-increment and never 0)
Bug: 19566734
Change-Id: Icf0e4294a581039101df1ad1756fdb6e581c4cba
2015-03-02 14:26:31 -08:00
Sunny Goyal and Android (Google) Code Review
5b437d8957
Merge "Removed disableAllApps flag" into ub-launcher3-burnaby
2015-03-02 19:33:35 +00:00
Sunny Goyal
d2f3819c34
Setting workspace id as primary key
...
Bug: 19475231
Change-Id: I0385e97868db73dafe148ce45af7dda4555ee593
2015-02-27 14:05:26 -08:00
Sunny Goyal and Android (Google) Code Review
c54729a6db
Merge "Updating IconCache to maintain a persistent of icons" into ub-launcher3-burnaby
2015-02-27 21:53:56 +00:00
Sunny Goyal
c9acdd51c4
Removed disableAllApps flag
...
Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
2015-02-26 12:35:09 -08:00
Sunny Goyal
560616da70
Build fix. Some references of a resources still remained after ag/619757
...
Change-Id: Ia05a12ff5af6fa13d75cbedd8bd2fd6d33a78b7f
2015-02-26 11:26:19 -08:00
Sunny Goyal
4fbc3828c5
Updating IconCache to maintain a persistent of icons
...
> IconDB maintains a DB of icons keyed on ComponentName + User
> During loader, icons & labels are loaded first from the DB, and
if the entry doesn't exist, loaded using packageManager
> After the loader completes, IconDB updates any entry which might have
changed, while the launcher was dead.
Change-Id: I7a6021cb6d1ca1e66fa5a0bdd21e1543e0cf66fc
2015-02-26 19:08:44 +00:00
Sunny Goyal
1587d5362f
Refactoring common methods
...
Change-Id: Id6d3072dd3a6d7f54e9591abbeffd9bd51c7403d
2015-02-26 18:19:22 +00:00
Sunny Goyal
633325c4c2
DO NOT MERGE: Setting workspace id as primary key
...
Bug: 19475231
Change-Id: I0385e97868db73dafe148ce45af7dda4555ee593
2015-02-25 16:56:54 -08:00
Hyunyoung Song
31178b8237
[key event focus handling] (1)hotseat <-> icon now symmetric, (2)support DEL keycode
...
TL;DR; (1) Key event navigation from and to the hotseat and icons in the workspace
is now symmetric. Since there is one more icon in the hotseat, only left
N-1 icon navigation was symmetric.
(2) KeyEvent.KEYCODE_DEL and KeyEvent.KEYCODE_FORWARD_DEL can now delete icons
from the workspace. The focus move to the previous icon where the focus
traveled from.
Also contains minor styling and indexing issues.
Bug: 15408321
Bug: 19381790
Change-Id: I16cbcb2693e92eebb830997d01c0bf674073dd51
2015-02-24 22:14:11 +00:00
Sunny Goyal
7470c817e4
Using SCREEN_ORIENTATION_LOCKED for locking to current orientation.
...
Bug: 17298128
Change-Id: If64b6957a594bcc48f6454689d11cd63d31b9239
(cherry picked from commit 3c1865ad50 )
2015-02-23 17:55:46 +00:00
Hyunyoung Song and Android (Google) Code Review
d88d0bdaf1
Merge "[key event focus handling] Cleanup/Refactor/Feature 1) Focus navigation handling is refactored to Focus utility class. New 2 step dpad navigation algorithm is inside Focus class 2) Introduced a map (or matrix) that indicates where sparse icons are located inside a grid. This enables getting rid of the icon sorting logic which was costly. 3) Unified all the dpad handling logic inside the handleXXKeyEvent methods 4) DOWN/UP key will allow navigation between workspace icons and the hotseat 5) Folder icons allow DOWN/UP to navigate to the title" into ub-launcher3-master
2015-02-20 22:27:41 +00:00
Hyunyoung Song
ee3e6a7b77
[key event focus handling] Cleanup/Refactor/Feature
...
1) Focus navigation handling is refactored to Focus utility class.
New 2 step dpad navigation algorithm is inside Focus class
2) Introduced a map (or matrix) that indicates where sparse icons are located inside a grid.
This enables getting rid of the icon sorting logic which was costly.
3) Unified all the dpad handling logic inside the handleXXKeyEvent methods
4) DOWN/UP key will allow navigation between workspace icons and the hotseat
5) Folder icons allow DOWN/UP to navigate to the title
b/19381790
Change-Id: Id45b3f215ef7c1ca5f99b08e3d721e219298627a
2015-02-20 14:25:27 -08:00
Adam Cohen and Android (Google) Code Review
c018c4db08
Merge "Revert "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget"" into ub-launcher3-master
2015-02-20 16:39:42 +00:00
Adam Cohen
eb8e282a77
Revert "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget"
...
This reverts commit 87cf88393c .
Change-Id: Ie15c71f76c71dfb6b85aefcc10cd66eb49bea6dc
2015-02-20 16:38:48 +00:00
Adam Cohen and Android (Google) Code Review
ae52d72ccc
Merge "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget" into ub-launcher3-master
2015-02-19 01:35:21 +00:00
Adam Cohen
87cf88393c
Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget
...
Bug 17334589
Change-Id: I0e14381cfc19822451e68eb7f070d94525e126c3
2015-02-18 17:30:15 -08:00
Chet Haase and Android (Google) Code Review
ea292fe762
Merge "Add clip-reveal animation to Launcher" into ub-launcher3-master
2015-02-17 22:40:36 +00:00
Chet Haase
a8f996d039
Add clip-reveal animation to Launcher
...
ClipReveal animation was recently added to the platform. This
makes that animation the default launch animation when running on
that version of the platform.
Issue #19362772 Better material launch animations
Change-Id: I077659c14dc426be465d163bea6ba0fa93a637c5
2015-02-17 14:36:20 -08:00
Sunny Goyal and Android Git Automerger
387f4a7b36
am fce720f3: Merge "Fixing crash when dragging and dropping a restored widget." into ub-launcher3-almonte
...
* commit 'fce720f39adcf8a35b93978c36ab0e8833a74e3e':
Fixing crash when dragging and dropping a restored widget.
2015-02-17 20:39:42 +00:00
Sunny Goyal and Android (Google) Code Review
fce720f39a
Merge "Fixing crash when dragging and dropping a restored widget." into ub-launcher3-almonte
2015-02-17 20:34:56 +00:00
Sunny Goyal
2434d40ef2
Fixing crash when dragging and dropping a restored widget.
...
> When the widget is in pending state, AppWidgetProviderInfo is not available
Bug: 19364311
Change-Id: If3126a375853e6e710c6eba4b8824e18f3f0d391
2015-02-17 12:00:30 -08:00
Adam Cohen and Android Git Automerger
97079bc7d5
am 80e6beb4: Ensure that layers are properly removed after animation
...
* commit '80e6beb48ca71a321f667e79fe35a7ab2fb4c2bf':
Ensure that layers are properly removed after animation
2015-02-14 01:05:58 +00:00
Adam Cohen
80e6beb48c
Ensure that layers are properly removed after animation
...
Bug 19243980
Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
2015-02-13 16:39:10 -08:00
Sunny Goyal and Android (Google) Code Review
f48e71d116
Merge "Use ResolveInfo for label and icon for LauncherActivityInfo" into ub-launcher3-master
2015-02-12 22:31:10 +00:00
Sunny Goyal and Android (Google) Code Review
14334bda03
Merge "Removing code for the unused 'upgrade path'" into ub-launcher3-master
2015-02-12 18:23:28 +00:00
Sunny Goyal and Android Git Automerger
d3f035797e
am c87775d8: Fixing rank migration code to handle null values correctly.
...
* commit 'c87775d8e63c7b5722c23ef95c782f574b847d73':
Fixing rank migration code to handle null values correctly.
2015-02-11 23:01:53 +00:00
Hyunyoung Song
09cd92221e
Remove meaningless bug id from from addDumpLog and Log.d methods
...
b/11683562
b/6557954
Change-Id: Icd0e237ebb09ac868928328f45a3b30cf19a20df
2015-02-11 12:58:33 -08:00
Sunny Goyal
66cfdc2549
Removing code for the unused 'upgrade path'
...
Change-Id: Ib9eca92284b0eabbe36ffaaf26c62a6ce3cfd3e9
2015-02-11 11:55:36 -08:00
Sunny Goyal
54d7d05498
Use ResolveInfo for label and icon for LauncherActivityInfo
...
Instead of using the ActivityInfo, use the ResolveInfo so that
any label or icon specified on the intent-filter is used.
Bug: 18482039
Change-Id: I87c0d9dba0754e3aa2c81727a9f60d789e5e8630
2015-02-11 11:53:44 -08:00