Commit Graph

12092 Commits

Author SHA1 Message Date
Patrick Dubroy
e42cd70f08 Merge "Re-enable menu button -- real fix is to disable at system level." 2010-09-08 22:53:16 -07:00
Patrick Dubroy
5905bca4c4 Re-enable menu button -- real fix is to disable at system level.
Change-Id: I0f9c05b3685725ccf9c8e61f77b6a5e2ea85f452
2010-09-08 22:50:19 -07:00
Patrick Dubroy
430c53bc80 Fix 2981705: Unable to uninstall downloaded app by dragging to trash.
- on long press, copy constructor of ApplicationInfo is called. It wasn't copying flags.
- also fix all apps choice mode so that chosen object is set when preparing CAB
2010-09-08 16:05:51 -07:00
Patrick Dubroy
2b9ff37edb When an app is chosen in All Apps, tapping a workspace screen adds it to that screen. 2010-09-08 10:38:54 -07:00
Chet Haase
b1254a6bdb Animation classes renamed
Change-Id: I96ecb77357a914a746a5989c909246620b977b10
2010-09-08 08:51:12 -07:00
Patrick Dubroy
5539af7826 Don't allow system apps to be uninstalled by tapping the trash can button. 2010-09-07 15:22:10 -07:00
Patrick Dubroy
9f7aec8d43 Implement selection mode for All Apps with delete and info actions. 2010-09-06 17:37:35 -07:00
Patrick Dubroy
39670182be For now, just show a toast when user tries to delete a system app. 2010-09-03 16:26:11 -07:00
Patrick Dubroy
bc6840b316 Support uninstalling an app by dragging from all apps to trash can. 2010-09-03 12:13:00 -07:00
Michael Jurka
c4fb9173e7 Fix crash when clicking "Games" or "Downloaded"
tabs in All Apps.

Change-Id: I832376368a07d65543d142790c8876e16c65067a
2010-09-02 17:25:33 -07:00
Winson Chung
5f2aa4efee Adding single/multi selection mode to AllAppsPagedView (action bar disabled).
Also adding check to prevent scrolling mode from continuing on touch down.

Change-Id: I744f2c1f6bc659219145b52b15a7ea176853ec7c
2010-09-02 11:35:48 -07:00
Brad Fitzpatrick
12815f5ac0 resolved conflicts for merge of 319226a8 to master
Change-Id: Ibeefaa496cc3970e35af007fb64344c2a0f1f82f
2010-09-01 17:10:36 -07:00
Brad Fitzpatrick
319226a894 Make Launcher.checkForLocaleChange async.
Logging indicated a 1.2 second improvement in Launcher start time
during boot (when single-threaded yaffs is very heavily contended).

BUG=2947474

Change-Id: Ie72cf02c5eacb27c6d874b6d67a0bb2de7f6b74a
2010-09-01 15:44:57 -07:00
Michael Jurka
0142d49e13 Changed Workspace to inherit from PagedView
- adds support for seeing dimmed side-pages on
home
- adds workspace support for pages that are
smaller than workspace itself
- removing a lot of code duplicated between
PagedView and Workspace
- tested new Workspace on Nexus One, and perf.
was indistinguishable from old Workspace in my
tests

Change-Id: Ie33ab4e8b35ac01b22894cff66650bb0ece8dfcc
2010-09-01 14:54:34 -07:00
Joe Onorato
6b4adbc055 DO NOT MERGE - Allow the workspace to swipe while it's loading.
You still can't modify the contents of the workspace while it's loading,
but this makes it appear a little bit more responsive.  Launching apps
while the launcher is loading has always been possible.

Bug: 2748595
Change-Id: Iaf203c7358647a9b2211bb7386579ae75b82a698
2010-09-01 12:15:10 -07:00
Joe Onorato
ddc9c1fb1a DO NOT MERGE - Fix 2941495: Launcher short-cut icons don't work for apps on SD card after reboot
Bug: 2941495
Change-Id: Ie8e0e0c62259f8cf933e53b7aa2dc28a835110ae
2010-09-01 12:15:10 -07:00
Jason Sams
0649843cbf Merge "Remove outdated and unused class." 2010-09-01 12:10:04 -07:00
Jason Sams
2a4b029887 Remove outdated and unused class.
Change-Id: I0d71dcff3ca0b77e2dcb6448c4c08790d3ecd841
2010-09-01 12:04:36 -07:00
Michael Jurka
f3009f662e Fixed crash when adding new folder from
customization drawer
2010-08-31 16:43:37 -07:00
Joe Onorato
fdf5fd63c6 DO NOT MERGE - Allow the workspace to swipe while it's loading.
You still can't modify the contents of the workspace while it's loading,
but this makes it appear a little bit more responsive.  Launching apps
while the launcher is loading has always been possible.

Bug: 2748595
Change-Id: Icf252beaee5b801b30216202ce6032c4d565cde3
2010-08-31 12:02:32 -07:00
Joe Onorato
f5ed4f1141 DO NOT MERGE - Fix 2941495: Launcher short-cut icons don't work for apps on SD card after reboot
Bug: 2941495
Change-Id: Idf1869d33cd5c01abea5b059ca466529cee0ad93
2010-08-31 12:02:24 -07:00
Patrick Dubroy
ceae05d573 Add a market button to the toolbar.
We determine the default app market activity by resolving an intent,
and fetch the icon from the activity's meta-data.
2010-08-30 18:08:43 -07:00
Patrick Dubroy
df7c3a7853 Fix problems with unanimated toolbar transitions.
Rather than creating all the Animators and attempting to execute the
transitions immediately, add a separate code path for all the
unanimated cases.

Change-Id: Id615180bd0d2ed5cc60d8df351c00e8d7b13c68d
2010-08-26 18:17:08 -07:00
Patrick Dubroy
07a0de4bc4 Minor animation optimization -- use PropertyValueHolders. 2010-08-26 11:48:35 -07:00
Michael Jurka
7f0f4f3c35 Workspace no longer scrolls during drag when shrunk
Change-Id: If71ba7638259f4015c5c088797f2b2719066cf2e
2010-08-25 17:40:44 -07:00
Winson Chung
241c3b451d Adding outline cache for PagedViewIcons.
Change-Id: I258740a0323660edd73b5f40d61d509455ae195b
2010-08-25 17:38:41 -07:00
Patrick Dubroy
6b509c1fd6 Add a market button and add toolbar button animations.
Also clean up a lot of the animation code to be more centralized.
2010-08-25 17:11:08 -07:00
Winson Chung
86f7753bbd Preventing reloading of pages on swipe and disabling offsets for xlarge static wallpapers.
Change-Id: I4ca72164775d09706e36c38e0fac0e84254221c7
2010-08-24 14:58:11 -07:00
Michael Jurka
a63c452f5b added support for dragging widgets and app icons to mini screens
- gave mini screens a rounded rect background
- mini screens change color when dragged over
- added a way to specify the active region of dragged items, to allow for clipping of whitespace at borders
- fixed: feedback while dragging was often one cell off
- fixed: bug when adding to almost-full screen
- removed unused classes

Change-Id: I2fbd2aaaee6831b288cca8dec75e7b446068e8d1
2010-08-23 15:49:58 -07:00
Michael Jurka
01f0ed4126 pressing home twice shows small overview mode
Change-Id: If5a6c0942685cd52ef77562dd342f28e16ae571c
2010-08-23 15:26:14 -07:00
Michael Jurka
7898466dc0 Merge "Fixed bug where custo drawer remained open after power-off" 2010-08-23 15:06:29 -07:00
Michael Jurka
909f915286 Fixed bug where custo drawer remained open after power-off
Change-Id: I41f39b533fdd7b42b0f2085f8912c1bd30ec1ab2
2010-08-23 14:55:18 -07:00
Winson Chung
9de2296c4c Merge "Fixing alpha issue on AllApps." 2010-08-20 15:20:15 -07:00
Winson Chung
affd7b4d23 Fixing alpha issue on AllApps.
Change-Id: Ifbd81b3e8009cff963bb03bd953e498f8677cc38
2010-08-20 15:17:26 -07:00
Michael Jurka
96226223d9 clicking on mini screens no longer sends click to widgets/icons
Change-Id: Iee905655151dfe1d00acd776752525d3fcc9b0e1
2010-08-20 00:54:40 -07:00
Winson Chung
03c568e608 Fixing issue where recycled views' holographic overlays were not being regenerated.
Change-Id: I879eaf2379490ce99d20cb6c0887b7881e580021
2010-08-19 17:28:24 -07:00
Winson Chung
b3347bb9f4 Adding holographic outline for paged items (sans widgets).
Fixing possible null ptr exception in Launcher.

Change-Id: Ie625a6503299cf122e5c22852846d59e66f77414
2010-08-19 16:00:41 -07:00
Patrick Dubroy
4ed6278e51 Implement button to get application info for an app shortcut.
For now, it's just a drag target like the delete zone. Once all apps
and the home screen support a selection mode, this (and delete) will
be implemented as buttons in the Contextual Action Bar.

Change-Id: I6bf43d03eefda672ea34c583a7021137da22b184
2010-08-18 17:57:59 -07:00
Romain Guy
f07e7a441c Merge "Add a default wallpaper for xlarge devices." 2010-08-18 11:39:08 -07:00
Romain Guy
5bbc91bbbc Add a default wallpaper for xlarge devices.
Change-Id: Icaf3fc953ca6d469d17620c0aec789e7f60c924e
2010-08-18 11:38:46 -07:00
Winson Chung
6935ffd450 Adding check before setting alpha of side pages in a PagedView to prevent constant invalidations.
Change-Id: I4fbb66a851d6cbcd916212e86ed8ba85a9226b02
2010-08-17 14:28:06 -07:00
Michael Jurka
b2c838c2eb removed the temp screen rotation button
Change-Id: I26d5a840270065e43d4f66b3c53c7e9d52ce4200
2010-08-16 20:53:10 -07:00
Winson Chung
80baf5a6b3 Adding paging for the widget/shortcut/folder customization area and fixing bugs.
Adding pages for customization drawer with initial implementation of proposed flow
layout for widgets.  Fixes for keeping all apps, and widgets in sync with Launcher
Model, optimizations for reloading all apps pages when invalidating.  Adding some
animations for tab transitions and feedback when long pressing to add certain items.

Change-Id: I8d51749f3a91c964bed35681f3a9192200b0d93e
2010-08-16 15:51:43 -07:00
Winson Chung
321e9ee688 Creating generic Workspace/CellLayout for paged views in Launcher.
Adding SimpleWorkspace, SimpleCellLayout and an AllApps implementation of the SimpleWorkspace.
Making SimpleWorkspace support content with smaller dimensions than the workspace dimensions
itself.  Temporary change to AllApps tabs styling until we get new assets for tabs in general.

Change-Id: Ibe3c56603223853d232816b6695e4ddd757857ba
2010-08-16 15:50:40 -07:00
Jason Sams
f0d03e4e7f Use RS API for checking isNull.
Change-Id: I840c2ac3d0fe478595f2a558b52a79886097c5b5
2010-08-13 12:18:36 -07:00
Michael Jurka
c28de51eed fixed crash in addVacantCell
No longer precalculating vacant cells

The previous way of finding empty cells for 
widgets/icons etc. precalculated all the possible
empty spaces. Now that we have an 8x7 grid in
tablet, there are too many possible empty spaces.

Change-Id: Ib39113fdf755935bfad257843e1618c680ed9e72
2010-08-13 11:59:51 -07:00
Adam Cohen
da4dc5edd8 -> Set grid to 8x7 with proper spacing for landscape/portrait
-> Added a button to the top left of Launcher which switches
   between landscape and portrait. For testing purposes only.

Change-Id: I01f8cfcf92c8ba7727eeba0e59a0b8ff055598fe
2010-08-11 10:46:55 -07:00
Patrick Dubroy
a67e867db9 Fix workspace shrinking bug caused by change in animations
Change-Id: Ia34ae2a6cb863da28d319c46a95f61536cd31ade
2010-08-10 18:13:41 -07:00
Michael Jurka
4cb3724a2c workspace bug fixes
- fixed: pressing home sometimes left workspaces
in shrunken state
- fixed: position of delete zone (trash icon)
- fixed: workspace unshrink sometimes looked weird
when coming from all apps
- fixed: clicking power button and returning left
workspace in shrunken state

Change-Id: Ie974202926e6880ccda26ac9fe967fb587a9b7a3
2010-08-10 14:10:20 -07:00
Patrick Dubroy
3ec8bdd576 Refactor zooming animation, and apply it to customize drawer too.
Change-Id: I0bbd5a68adc82cea02dc583ac3d04e3de8c0346e
2010-08-09 14:25:36 -07:00