Commit Graph

197 Commits

Author SHA1 Message Date
Adam Cohen ded9f8d865 Adding auto-advance to launcher
Change-Id: I96c88d35399057ccddc71dc93b974a39241a13da
2010-11-10 16:55:46 -08:00
Winson Chung 68846fdce6 Initial changes to allow resolution of arbitrary clip data to widgets that support them.
Change-Id: Id5dfa8436a5bf6eb7bd300ec603911a9d3698de3
2010-11-03 19:48:17 -07:00
Michael Jurka c9a961952d Using hdpi icons in Launcher
Known issue: Default activity icon is still showing up as small
2010-11-01 23:06:54 -07:00
Patrick Dubroy 9e48238c39 Fix crash in non-xlarge configurations. 2010-11-01 15:16:24 -07:00
Michael Jurka 3c4c20fbe6 Fix: switching states during animations was broken
- cancelling state animations on home screens before starting new ones
- temporary workaround for the fact that onAnimationEnd is not called immediately when an animation is cancelled
- forcing all apps zoom-in animation to complete if it's cancelled

Change-Id: I3eb011f689050692e8d95f2736e01ab5420f722e
2010-10-29 14:52:03 -07:00
Winson Chung 55cef262f9 Adding initial support for dropping widgets with custom configuration data.
Change-Id: I4a7ba51783b27e544e9a21882bc7cd582b3b43e0
2010-10-28 16:08:46 -07:00
Winson Chung 0e41ae6433 Increasing icons for homescreen as well as as all-apps (temporarily until we get hi-res icons).
- Also fixing spacing in the portrait mode, and using the same styles for both AllApps and workspace icons.

Change-Id: I222dd5d53a39d6940a85f40b57912b69c926ffd0
2010-10-27 20:26:37 -07:00
Winson Chung a9abd0e0bd Initial changes to allow dragging external shortcuts to launcher using the same InstallShortcut intent.
Change-Id: I21b57115429ed37d604084ae01308d1d3f33ee7e
2010-10-27 18:35:04 -07:00
Joe Onorato ef2efcff5e When the launcher is paused and we reload stuff in the background, we need to re-re-load it in onResume.
Otherwise we can load widgets and other resources from the wrong Configuration.
This doesn't completely fix the bug, but it makes it much less likely.  We tell
the launcher once at the beginning of starting a reload because of SD cards coming
back, and once when we bind.

cherry pick of I99ee6af38bef91e261832bad4dec978a5d4a8b3d

Bug: 3126698
Change-Id: I917bdb3982e3eea4924c6e9a8f3c037fd493f415
2010-10-27 13:21:00 -07:00
Winson Chung 5974adcc72 Removing the Folders tab.
Change-Id: I5cf3aa8bf987500800340e047336233db5eb0491
2010-10-25 14:29:11 -07:00
Gilles Debunne dd6c992943 Made Launcher and AllApps use the new Tabs holo theme.
Style temp settings removed, now provided by default:
https://android-git.corp.google.com/g/#change,76118

Hacks to focus first tab removed as it has been fixed in:
https://android-git.corp.google.com/g/#change,75393

Bug 3008765

Change-Id: Id9121cf3bfc3be08380bec1a45cf447b5fe96422
2010-10-25 11:23:41 -07:00
Michael Jurka 774bd377df Fixing drag to application info button in All Apps
Change-Id: I6f31bf3ac24366791cf84830584846d57aab9b80
2010-10-22 14:02:08 -07:00
Michael Jurka 883f55b1d2 Correctly preserve state on orientation changes
Bug: 3049975
2010-10-21 15:47:22 -07:00
Michael Jurka f3ca3ab695 Fix bug that allowed multiple items in one cell
Fixed issue where opening a folder allowed items to be placed on any cell, even if it was occupied.

Bug: 3094164

Change-Id: I392e7236f9cd7ea0b09f36e249d2a57c9934dc8e
2010-10-21 11:30:28 -07:00
Michael Jurka 6b4b25d093 fixed bug with adding items in customize mode
also, no longer mark items as checked in customize mode

Bug: 3116708

Change-Id: I01b935ba8bfb450dfab9175a7eb5b7619ad187a6
2010-10-20 20:00:44 -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
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
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
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
Michael Jurka 0423dcf286 Resolve global search activity more robustly
Change-Id: I5c25db5dec67c02bf7658f34729584b5393e0a8e
2010-10-05 15:11:10 -07:00
Michael Jurka 5617056f9b Long press on Launcher background no longer
brings up customization tray on XLarge devices
2010-10-05 14:14:56 -07:00
Michael Jurka 6ae0fcfc80 Pulling search button from metadata in search provider,
or falling back on our default icon.

Change-Id: I59fc59b76a0915a04275e08c88f5d46c3484cc6c
2010-10-04 15:37:02 -07:00
Winson Chung 58f2088922 Adding more specific title for pick-application dialog.
Change-Id: I9703f80b34d05b2cfa6239652eae36d1ebcde6e5
2010-10-01 13:51:55 -07:00
Winson Chung 5f94172071 Re-updating widget set in customization drawer when applications are changed.
- This prevents a particular crash where a widget that no longer exists is queried for it's app icon

Change-Id: I84b450d37c01d995bb249aae8cdf8e5c032883cf
2010-09-28 17:56:38 -07:00
Winson Chung d0cca08e4f resolved conflicts for merge of 7ad01419 to master
Change-Id: Idcbb2ffd6f0b72610dc06fc07695e3546f80da70
2010-09-28 09:39:16 -07:00
Winson Chung 7ad0141905 Adding menu item to Launcher to manage applications directly from homescreen
Change-Id: I56d726080968777eb5ccdc8826a872977cf7868c
2010-09-27 17:49:09 -07:00
Andrew Stadler 959f603a93 Fix crash on small-screen devices
Allow for mCustomizePagedView to be null in more cases.

Bug: 3040307
Change-Id: Idf5e50e661bcffa726db204a3318ab932db265aa
2010-09-27 14:09:29 -07:00
Joe Onorato ebfe4b08df am 4a79a04b: When we\'re launching apps, we need to always use startActivitySafely.
Merge commit '4a79a04bcd5f8c4d4fab7bcc46eea9e19a3dc63e'

* commit '4a79a04bcd5f8c4d4fab7bcc46eea9e19a3dc63e':
  When we're launching apps, we need to always use startActivitySafely.
2010-09-27 12:08:31 -07:00
Joe Onorato 4a79a04bcd When we're launching apps, we need to always use startActivitySafely.
It's possible that the app doesn't implement the component as promised, and the launcher shouldn't
crash.

Bug: 3005141
Change-Id: Ieac51433a467fd12160247bfd281828a69f5f7d2
2010-09-27 10:43:16 -07:00
Michael Jurka 28750fba6a fixed minor code review issues from change I0280c3be
(it was submitted early accidentally)

Change-Id: I3753366b4d5e1dc228baf02eba27a2c0d8fa42cf
2010-09-24 18:34:23 -07:00
Michael Jurka 0280c3be4d Adding support for drag and drop of folders and shortcuts.
also:
- Long press on empty space on workspace now brings up customization tray
- Fixed: while dragging, items appeared to be dropping on folders two cells to the right
- Fixed: Disabling drops on folders when the workspace is shrunken
- Fixed: account for scaling of dragged items when checking if they overlap
          with shrunken workspace screens
- Making folder icons dimmable to match shortcuts and widgets
- When deciding with shrunken workspace screen we're dragging to, we now use the closest screen rather than the one that has been overlapped the most
- Refactored drag/add mechanism, removing array of occupied cells from CellInfo
- Removed dead code/variables
2010-09-24 15:28:20 -07:00
Winson Chung 5ffd8eafeb Initial changes to add Applications tab in the customization drawer for usability testing.
- Also adding padding attributes for the dynamic layouts created for each page.

Change-Id: I76a7b6b8f4d83329c506fd6055f910575d0c200f
2010-09-24 11:09:38 -07:00
Winson Chung 24ab2f1bb5 Fixing set wallpaper crash in Launcher
Change-Id: I3b6299bb10f397209cd69e715fee783abe0c9b64
2010-09-16 14:11:09 -07:00
Winson Chung e3193b93ad Initital changes for new customization drawer/widget tab design.
Change-Id: I160c8777fe2657ab303acfa20934f2e90f9e953e
2010-09-15 14:45:11 -07:00
Michael Jurka 5f1c509d5a supporting swipable home screens on xlarge devices
- icons and widgets on home screens can be "dimmed"
- celllayout no longer renders a dimmed version of itself, but instead its children make dimmed versions of themselves
- celllayout no longer always takes up full size of workspace, in landscape mode 
neighboring screens (celllayouts) are visible
- on xlarge devices, in landscape mode side screens are "dimmed"
- moved holographic outline helper to its own file
- fixed bug where mini-screens were still able to scroll left/right

Change-Id: I9e85ab4147edfae1e7525c3d11d42be3fabf4f6d
2010-09-13 15:16:10 -07:00
Michael Jurka 99229f67d1 tapping home in Launcher now returns you to
default screen instead of going to overview mode

Change-Id: If19f5d6d9324a217211e0ced89dab92eddca385e
2010-09-09 12:10:15 -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 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 bc6840b316 Support uninstalling an app by dragging from all apps to trash can. 2010-09-03 12:13:00 -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
Michael Jurka f3009f662e Fixed crash when adding new folder from
customization drawer
2010-08-31 16:43:37 -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