Commit Graph

1382 Commits

Author SHA1 Message Date
Daniel Sandler 95767e3808 Merge "Add widgets to default home screens." into froyo 2010-04-23 10:40:10 -07:00
Daniel Sandler e547b6238a Merge "New Launcher feature: "hotseat" icons." into froyo 2010-04-23 10:26:30 -07:00
Daniel Sandler c9b1877f9a New Launcher feature: "hotseat" icons.
The hotseats are permanent slots on either side of the
AllApps button. Their functions are:

  LEFT/BOTTOM: Phone
    Launched via the hardcoded class name
    com.android.contacts/.ContactsLaunchActivity.

  RIGHT/TOP: Browser
    Launched by querying to see which application is the
    default for URLs, then starting that activity directly.

In the future, it would be ideal to allow an application
with permission to access LauncherProvider to customize
these (icons, contentDescriptions, and Intents).

Bug: 2559083
Change-Id: I56f6e745f8574aa17e28feaa9d2118fb4a715cd4
2010-04-23 12:37:23 -04:00
Daniel Sandler 9cd2e4164a Add widgets to default home screens.
0: (nothing)
  1: News & Weather
=>2: Search; Protips
  3: Music
  4: (nothing)

Will add Market widget to screen 2 (center) when available.

Bug: 2559083
Change-Id: Id025bfbb1514959906d7d42601c3358ef870aebe
2010-04-23 12:08:40 -04:00
Joe Onorato 87d2ca8a66 Fix 2614384 - NPE in LauncherModel
Callbacks can be null.

Change-Id: I56462a54673b1804a6235d6d882008b453290542
2010-04-21 17:09:18 -04:00
Joe Onorato d65d08e709 Fix race in LauncherModel that causes it to show duplicate icons.
Change-Id: I78130d6f237f476bc33a4718ca5ef245fe502857
2010-04-21 11:43:04 -04:00
Daniel Sandler cbe7f20ad7 Move batch size to a resource.
This way we can figure out how many apps to send to the grid
at a time even if the grid hasn't been instantiated yet.

Bug: 2599979
Change-Id: I7960fe1adae6976555334422335f3a4b28d0675e
2010-04-19 14:47:18 -04:00
Joe Onorato 9ecd07d636 Merge "More Launcher performance improvements." into froyo 2010-04-19 10:24:23 -07:00
Adam Powell 495f289228 Change workspace scroller interpolator
Change-Id: I1d8f1ceb39dc21e58c833cf030a41d08913ef7e3
2010-04-16 16:40:55 -07:00
Daniel Sandler 2ff10b3b01 More Launcher performance improvements.
* Removed another redundant sort
* Correctly set the thread priority to BACKGROUND for the
  all apps loading step.
* Moved batch delay to a resource
* Reduced delay between loading batches of apps to 100ms
  (we really just want to sleep a tiny bit between batches
  to give the UI time to react)

Bug: 2562420
Bug: 2599979 (related)
Change-Id: I1ae72a68c1a47377a9eb62827fe7666bfc50caa5
2010-04-16 15:17:01 -04:00
Daniel Sandler 707b0f7c3c Sort apps in AllApps3D.setApps().
The sorting is no longer being done in LauncherModel.
AA3D.addApps correctly performs an insertion sort, but
setApps did not.

Missing from change I77e3865b.

Bug: 2562420
Change-Id: I6854c2c4a221b2c1ad123410292da1fbfece7871
2010-04-15 19:35:16 -04:00
Daniel Sandler 7645c94ded Merge "Launcher2 performance: Don't sort apps in LauncherModel." into froyo 2010-04-15 13:37:33 -07:00
Daniel Sandler 054019dbea Launcher2 performance: Don't sort apps in LauncherModel.
AllApps2D and AllApps3D do their own sorting before display.

Bug: 2562420
Change-Id: I77e3865b856a5123872bee3d8578d0596956cddd
2010-04-15 16:30:11 -04:00
Joe Onorato effc4a8aef Paper over bug 2592956 - Home not redrawing the shortcuts, widgets, or background.
The mNext* stuff in AllApps3D got reset when onNewIntent came in too fast after an
onCreate, which happened because of the configuration changed.

Change-Id: I9a358b6969ac1d17ea98f58218d47bfe983936f0
2010-04-15 11:51:38 -07:00
Joe Onorato f11079b11e Fix 2595902 - NPE in launcher2
This code never worked.  If you delete a live folder for an app that's been uninstalled, it would
crash.

Change-Id: Id91712fada8912addbc4892bd5ae517536fc4f24
2010-04-15 11:51:20 -07:00
Daniel Sandler dca661236c Batch loading of icons for AllApps.
AllAppsList now maintains <data> and <added> in sorted
order, to amortize the cost of sorting the apps list over
multiple batches.

Launcher boosts thread priority on first launch, but we now
reduce thread priority to normal after the main workspace
has been drawn but before all apps are loaded.

Experimental feature: a short delay is introduced between
batches to help free up the CPU (as well as to show that we
are indeed batching apps).

Bug: 2562420
Change-Id: I2035ec3e819b4e7993a80c6d03bfad3914c95a7a
2010-04-14 14:36:10 -04:00
Joe Onorato 7018d8e327 Fix 2575588 - After creating new folder shortcut unable to navigate between home screen using touch.
Somebody fixed a bug in managed dialogs where it wouldn't
create the dialog after a configuration change.  This means that we
shouldn't set mWaitingForResult in createDialog, we need to set it in
onShow.  This is what the add dialog was already doing.

Change-Id: I955c2f7cd4a47213f84986ec9ba251146b1ac423
2010-04-13 20:29:42 -07:00
Joe Onorato ac03330c96 Fix 2583234 - It's ok for mCallbacks to be null.
Change-Id: Iec8df7b668a4657677f9c5421d00aa1b7df91015
2010-04-13 17:19:18 -07:00
Adam Powell a588b878b9 Revised workspace fling physics
Change-Id: Ia14ff132e49390bf3bc4ac6ebf1b3eded8d39caf
2010-04-13 12:40:24 -07:00
Daniel Sandler 55dcedfcc3 Remove all icons and most widgets from default homescreens.
Bug: 2559083
Change-Id: Id77fe641520c36eaee10f10c04d7df04b7637184
2010-04-08 15:39:18 -04:00
Daniel Sandler a78512c681 Merge "Slow down 2D All Apps fadeout." into froyo 2010-04-06 09:46:56 -07:00
Romain Guy 3af600182f Last minute hack to deliver touch events to widget in landscape mode.
Bug #2562729

In landscape, the left and right dots buttons are 93dip wide; this makes them overlap
with widgets at the bottom of the screen. The dots do not need to be that wide but
we chose this size to make it easier to tap them in portrait. To avoid issues in
landscape, this change introduces a new type of ImageView that can ignore touch
events in a certain zone. This was easier and cheaper than re-cutting 36+ assets.

Change-Id: Id261fba41a43dede943e72060e39e87658e4b0df
2010-04-05 18:39:24 -07:00
Daniel Sandler 80c4f3e1b8 Slow down 2D All Apps fadeout.
Change-Id: Ifd8564bca26265540589a48ea281e8ce9fa1001e
2010-04-02 15:08:16 -04:00
Adam Powell 327a9a3a30 Limit workspace flings to one screen at a time.
This prevents users from scrolling left slightly, flinging right,
and scrolling by two screens as a result (and vice versa).

Change-Id: I04c60438c022b24defcd8e4cbedf1c6b07c24423
2010-04-02 10:41:38 -07:00
Joe Onorato 8b5eef7d3f fix 2554422 - Landscape workspace dots have stretched aspect ratio
Change-Id: I9f0ef8370bbf3e73f86dabf006372fc243f302b9
2010-03-29 16:19:42 -07:00
Joe Onorato f984e853f2 fix 2542590 add more logging when launching app fails
Change-Id: I5a1fa261c6e67eb7afb661de39e35ce43e2caa59
2010-03-25 09:47:45 -07:00
Romain Guy 509cd6a656 Correctly upgrade from MR3 to FroYo.
Bug #2530137

Change-Id: I9ab59fd53e17a1f51f60a8cb98dcb19a7957ffc6
2010-03-23 15:10:56 -07:00
Joe Onorato 9690b396d5 fix 2533780 database cursors/statements is not closed in LauncherProvider.java
Change-Id: Iaf8ca76a15b153a1154b106247f81a0213183bcb
2010-03-23 17:34:37 -04:00
Joe Onorato da6759fba8 Merge "Fix 2519335 - Caused by NPE. Here's another place where it needs to be ok for sRS to be null." 2010-03-23 14:04:42 -07:00
Romain Guy 693599f27b Support old-package attribute for default workspace items.
Bug #2509293

Change-Id: I5e76465bceab6b733287f53f6afdcf3d522843fc
2010-03-23 10:58:18 -07:00
Joe Onorato c5210eb384 Fix 2519335 - Caused by NPE. Here's another place where it needs to be ok for sRS to be null.
Change-Id: Iacfc0474c96c657d982a50c8d4851e2fdd79c3ae
2010-03-23 11:26:28 -04:00
Joe Onorato 878f086f75 Fix 2532504 - fix NPE in AllApps3D.onKeyDown.
Change-Id: I8fba9b0b5217d630d84a6a260865d454db2bb046
2010-03-22 12:22:22 -04:00
Joe Onorato 20e7a56658 Fix 2524488 Not able to launch app in the last line of app launcher in landscape mode
Change-Id: Iffe3e95a10e49f1dadcab2f4f177e79c0140699e
2010-03-18 17:12:52 -07:00
Joe Onorato 8fddf15e6f Merge "fix 2430251 - all apps touch targets misaligned." 2010-03-18 15:16:14 -07:00
Joe Onorato cfc4c7b402 fix 2430251 - all apps touch targets misaligned.
Change-Id: I091b152c328a2664ce68c9790117e6e698bd677a
2010-03-18 15:15:10 -07:00
Eric Fischer bf4f48a175 Merge "Import revised translations" 2010-03-18 10:53:23 -07:00
Kenny Root a66bf91d4d Import revised translations
Change-Id: I1b4b8c830701a1aa08a31a78fdff92216bf2ef5f
2010-03-17 22:14:17 -07:00
Joe Onorato 2cc62e82b4 Rename these static variables.
Change-Id: Ic16dcbeb5b0c8afface65a995ea501e155ba69ff
2010-03-17 20:23:53 -07:00
Joe Onorato 96da4012a1 We need to null out this static.
All of the crashes we've been seeing with "Calling RS with no
Context active" were in places that are guarded with if (mRollo != null).

Change-Id: Icb9194cfc4f534bedce5a69a20760a0c3d7fe1d3
2010-03-17 20:03:24 -07:00
Joe Onorato 8ddc4fdba0 Add a log message and some todos.
Change-Id: I948997d169d1833f2b61c620a02dbccae535e8de
2010-03-17 10:24:53 -07:00
Romain Guy a28fd3fa7c Prevent NPE in Launcher when an icon cannot be found.
Bug #2509023

Change-Id: I053c7c9a37ed4aeb4d78a9f62dfdeea09a3959aa
2010-03-15 14:44:42 -07:00
Jason Sams 552a608e3c Merge "Fix stop point for physics in landscape." 2010-03-15 12:12:53 -07:00
Romain Guy c16fea7161 Improve focus restore on orientation change.
Change-Id: If405c60f4a45aeb4079aa4dcd96b684fd6ea819c
2010-03-12 17:17:56 -08:00
Romain Guy 6a42cf3629 Fix focus and touch issues in 3D all apps.
Bug # 2506026

Change-Id: I95f21cc285c17dfa5f93daafa9d90a64042c7a9d
2010-03-12 16:03:52 -08:00
Jason Sams cc903494fa Fix stop point for physics in landscape.
Change-Id: I4ca8fcf9d65746116b3c244e724344d8f90eeba0
2010-03-12 12:46:04 -08:00
Joe Onorato d8d22da5ca Bug 2509023 - NPE on upgrade to froyo
Change-Id: I07cb4f272948062b47da8826ca917fd74ad18404
2010-03-11 17:59:11 -08:00
Joe Onorato c131b74922 Eliminate a race where old Launcher objects will continue to get callbacks for loading if they go
away before they're done.

Change-Id: Id9f57be482da428750285c86d95114d2652064e6
2010-03-11 15:45:05 -08:00
Jason Sams dd8cd8b414 Unbind root script around load activities to prevent commands from being delayed due to swap buffers.
Change-Id: I9720fbe936d3cd336ca39235d0a1bba9e10d137a
2010-03-11 12:41:55 -08:00
Joe Onorato e74daedc3b Fix 2507267 - stack overflow when adding shortcut
Change-Id: Ife5bea443debd481854693b3924e72a04fb66f97
2010-03-11 12:32:24 -08:00
Joe Onorato e075e1f106 bug 2480004 - add some descriptions for the string in home
Change-Id: Ie01900dcb6fd6381d18dcfa80bddb7bfdff19b13
2010-03-11 11:55:26 -08:00