Commit Graph

757 Commits

Author SHA1 Message Date
Patrick Dubroy
bae3d061cc Merge "Various cleanups in the drag viz code." 2010-10-20 15:02:04 -07:00
Patrick Dubroy
8e58e91606 Various cleanups in the drag viz code.
Most importantly:
- Don't allocate a new Paint object in CellLayout.onDraw
- Scale holographic outlines based on the screen density
2010-10-20 14:37:49 -07:00
Michael Jurka
fd177c1d10 Fix bug where screen would get stuck while panning
Bug: 3109113
2010-10-19 15:50:43 -07:00
Patrick Dubroy
ce34a9768b Animate items into place when dropping on home screen 2010-10-19 10:42:24 -07:00
Michael Jurka
18014791be Added bounce animation when item added to screens
Change-Id: I87d9e8545e2de588d083b48991d932eb904f6e3a
2010-10-18 18:29:21 -07:00
Michael Jurka
1adf5391a3 Fixing a bug where you could scroll the mini screens
Change-Id: I3638618cb5f4ec2705955fda994fd6aff42fd70f
2010-10-18 18:16:46 -07:00
Michael Jurka
3adcb0c4a3 making size of delete zone & info button larger
- only on XLarge devices
- make application info button inactive when its not visible
- making scroll right "dead" zone bigger so users don't trigger accidental scroll when deleting items

Change-Id: I474de710a80b165d2ce1553c9231a829679132b2
2010-10-15 18:19:49 -07:00
Patrick Dubroy
08ae2ec484 Fix bug drag viz & hover state
Change-Id: I6b40d4dd43a2ee0c127df938375870347faeb5f6
2010-10-15 14:12:36 -07:00
Adam Cohen
6bed786509 Merge "Fixing a bug with anti-aliasing during page scrolling" 2010-10-14 18:44:09 -07:00
Adam Cohen
e45440ef0e Fixing a bug with anti-aliasing during page scrolling
Change-Id: If03e8ce5880d44ed33378e53f59e0c5d39fceb61
2010-10-14 18:33:38 -07:00
Michael Jurka
d718d6a7ba fix setting/unsetting hover on thumbnailed screens
cleaned up dragenter / dragexit events so they're only received by CellLayouts if the workspace isn't small

ignoring enter/exit scrollarea events when workspace is small
2010-10-14 15:45:30 -07:00
Winson Chung
7a75bd48bf Merge "Adding message when there are no icons in a particular tab." 2010-10-14 14:22:08 -07:00
Winson Chung
9678557e66 Adding message when there are no icons in a particular tab.
Change-Id: Icbf122d10d07fcacb8a4429431ea389826a3d173
2010-10-14 14:21:20 -07:00
Chet Haase
472b281d5c Updating code to use new non-generified animator APIs
Change-Id: Ie1928a22f774b226d90fa0918f61dba35d183dd6
2010-10-14 10:51:21 -07:00
Adam Cohen
564976a46e Fixing bug with swiping
Change-Id: I2957aedded514d4dd2f9a9d766eede5d0801622c
2010-10-13 19:54:27 -07:00
Winson Chung
82f77e513d Merge "Setting children alpha for widget-customization layout for performance." 2010-10-13 18:25:29 -07:00
Patrick Dubroy
fe6bd87881 Fix some incorrect animation code that might be causing visual glitches. 2010-10-13 18:13:11 -07:00
Winson Chung
8e4ec31415 Setting children alpha for widget-customization layout for performance.
Change-Id: Ic7f672b06971df867db8af326d1334d1d3f4c102
2010-10-13 18:08:29 -07:00
Joe Onorato
4be866d3a1 fix 3029324: Implement new drag feedback
Add "shrinkwrap" icon outlines to visualize where the item will land
2010-10-13 12:01:04 -07:00
Winson Chung
b0b2e6f588 Tweaking spacing and layout of AllApps/Customize in portrait.
- Also added workaround for tab label not being initially selected
- Added fix for initial layout of PagedViews preventing side pages from having proper alpha
- Marking widget dims format string as not translatable

Change-Id: I74a5410b88e2766816a87b14e64058b4288c214d
2010-10-12 18:27:22 -07:00
Jean-Baptiste Queru
f93a49422b am e90cc3ba: resolved conflicts for merge of 35e79e32 to gingerbread-plus-aosp
Merge commit 'e90cc3ba6c6ccd383f31b539367c2cccea278fed'

* commit 'e90cc3ba6c6ccd383f31b539367c2cccea278fed':
  Replaced /sdcard with Environment.getExternalStorageDirectory()
2010-10-12 13:57:11 -07:00
Brad Fitzpatrick
76275ac1c5 resolved conflicts for merge of 700889f5 to master
Change-Id: I85320de6483e6820fe27b4012bfc323ccafa0e04
2010-10-12 13:52:44 -07:00
Brad Fitzpatrick
adb4229c23 am 02e53429: Merge "Don\'t block the UI when rearranging icons." into gingerbread
Merge commit '02e53429c4ef01bee548e0eaba4aeeee99db35f4'

* commit '02e53429c4ef01bee548e0eaba4aeeee99db35f4':
  Don't block the UI when rearranging icons.
2010-10-11 17:43:21 -07:00
Jean-Baptiste Queru
e90cc3ba6c resolved conflicts for merge of 35e79e32 to gingerbread-plus-aosp
Change-Id: I039355b9d5852436c8352efc5a85590e5f2bc080
2010-10-11 14:44:10 -07:00
Brad Fitzpatrick
700889f504 Serialize background async db updates
Bug: 2983765
Change-Id: I1fdd33ea8ee4fbc79a75ce0450f04d8e18915975
2010-10-11 10:10:40 -07:00
Jason Sams
c4d61fc0f5 Merge "Update to use SurfaceConfig." 2010-10-10 18:05:04 -07:00
Jason Sams
e5806ba2bf Update to use SurfaceConfig.
Change-Id: Ic99c1406ef8f51fdf7d9d44e378eeb0bb701a69e
2010-10-10 16:18:57 -07:00
Michael Jurka
b8f0672d7c Snap workspace back to screen on ACTION_CANCEL.
Bug: 3066123
2010-10-10 16:01:05 -07:00
Brad Fitzpatrick
02e53429c4 Merge "Don't block the UI when rearranging icons." into gingerbread 2010-10-10 15:49:12 -07:00
Brad Fitzpatrick
ade2f8122f Don't block the UI when rearranging icons.
The pause is mostly notable when a sync is happening at the same time.

The related function addItemToDatabase() is unchanged by this CL
though as it populates item.id and would need more invasive changes
elsewhere.

Change-Id: I6538445aeb15d9efedf99f262c39f6175f7f1e0e
2010-10-10 15:42:06 -07:00
Michael Jurka
c86756c201 Fixed 3073371: Home screen locked after app launch
Change-Id: Iedac4b94d20cc3352aa247c58978a8f60df1a09f
2010-10-10 15:27:31 -07:00
Michael Jurka
3e7c763453 updated Workspace thumbnail behavior
- in All Apps mode, fade thumbnails completely
- while dragging, have thumbnails re-appear
- while dragging, give screen thumbnails that can accept drops a different appearance (green outline instead of blue)

Change-Id: I72ddf8a0f1947d35ef11514b7d4eea9ae5eee6e2
2010-10-10 15:03:45 -07:00
Joe Onorato
5eb7fff487 am 673aefe8: Merge "When the SD card comes back, we need to show the apps on it." into gingerbread
Merge commit '673aefe8b2b27790d704cc15282c8989a132877b'

* commit '673aefe8b2b27790d704cc15282c8989a132877b':
  When the SD card comes back, we need to show the apps on it.
2010-10-10 11:26:02 -07:00
Patrick Dubroy
49250ad530 Fix bug with dragging crosshairs sometimes being too bright
Change-Id: Ieb20ab96e73c5f297ffd69d29472024c11978a13
2010-10-10 11:18:29 -07:00
Stephen Hines
b41dbd6d0c Merge "Remove now unnecessary pragma rs export_var()." 2010-10-09 00:23:45 -07:00
Jeff Brown
0db354cba9 Snap workspace back to screen on ACTION_CANCEL.
Bug: 3066123
Change-Id: Icbdf3ef241ec44b5569e7490c1b950d80699ddc8
2010-10-08 22:53:33 -07:00
Michael Jurka
9987a5c45e Fixed 3066306 Widget measurement wrong in customize tray 2010-10-08 16:58:12 -07:00
Stephen Hines
b02af38110 Remove now unnecessary pragma rs export_var().
Change-Id: I2863a2f583af648677d2e53ef4167870fd532c5e
2010-10-08 15:52:00 -07:00
Michael Jurka
4516c11039 Fixed dragging over mini-screens
- during dragging, finding the mini-screen closest to the touch point

Change-Id: I4d967803b85de8af3208511c60c1f3bf5691718f
2010-10-08 15:06:43 -07:00
Patrick Dubroy
130c37d309 Merge "fix 3049894: Require fiddle or longer timeout for subsequent page flips" 2010-10-08 10:32:10 -07:00
Adam Cohen
21f12b52a5 -Changing page scroll click regions
-Cleaning up code for page rotations

Change-Id: I046784b108186b6627ce0df3aed57d70c303ef23
2010-10-07 18:20:49 -07:00
Patrick Dubroy
a16fd5a6bd fix 3049894: Require fiddle or longer timeout for subsequent page flips
After initiating a scroll while dragging an item on the home screen, don't flip
so quickly to the next page. Instead, require a bit of additional movement to
trigger the next scroll.
2010-10-07 16:49:10 -07:00
Joe Onorato
cec583352c When the SD card comes back, we need to show the apps on it.
The problem was that we were doing startLoader, but once the
apps are loaded, all that does is re-bind everything.  Before
a recent change of mine, we were clearing mWorkspaceLoaded and
mAllAppsLoaded.  But that's not good either, because it meant
that there needed to be a lock that the main thread and the
worker thread were both acquiring, which was causing ANRs.

Instead, now we schedule two messages - one to add the apps
back into the list, and one to update everything to use
those new icons.

Bug: 3065061
Change-Id: If9d36d4b55a7ba72fcf48a5ed8941bb9466bebe6
2010-10-07 14:37:40 -04:00
Chet Haase
00397b1d92 Use new TimeInterpolator interface for interpolation
Change-Id: I53e8fcbabfdb4cb69bec309aeceeddc63e1715ed
2010-10-07 11:13:36 -07:00
Michael Jurka
c0e8fcae49 Fixing state transition bugs
- explicitly keeping track of state in Workspace
- cancelling animations before starting new ones
- adding additional state variable for workspace for in-progress transitions
- updating Scroller object if we jump to a certain location

Change-Id: I5ddf51bae543ec89b2a44ab651d7269eb4859a6d
2010-10-06 17:54:12 -07:00
Patrick Dubroy
1262e36948 wip 3029324: Implement new drag feedback
- Show page borders when dragging
- Enlarge scroll region (landscape only)
- When inside scroll region, show green border on adjacent page
2010-10-06 17:39:05 -07:00
Winson Chung
7ed39f3362 am 6a5f4d85: Merge "Adding more specific title for pick-application dialog." into gingerbread
Merge commit '6a5f4d8526944ad4189072543ec4cc3f6d638b6f'

* commit '6a5f4d8526944ad4189072543ec4cc3f6d638b6f':
  Adding more specific title for pick-application dialog.
2010-10-06 17:09:10 -07:00
Alex Sakhartchouk
b2f988d15c Merge "Changing texture coord from vec4 to vec2" 2010-10-06 16:10:15 -07:00
Patrick Dubroy
046e7eb472 Fix 3065611: NPE in Launcher attempting to drag app to home screen 2010-10-06 12:14:55 -07:00
Alex Sakhartchouk
2f3b0b625b Changing texture coord from vec4 to vec2
Change-Id: Ice5c1bf30297dfadfa724163ad6f858c72ef4fea
2010-10-06 09:32:12 -07:00