Commit Graph

1584 Commits

Author SHA1 Message Date
Adam Powell 861e4751a0 am d40613a6: Address bug 2631580 - Tweak home screen scrolling behavior. 2010-04-27 12:27:58 -07:00
Adam Powell d40613a693 Address bug 2631580 - Tweak home screen scrolling behavior.
Duration of motion is now influenced by fling velocity. Constants have
been tuned and tweaked.

Fix a couple of drawing optimizations in Launcher2 Workspace.

Change-Id: Iaa674d10a28554884d9cc98134b2d1253b5e3e70
2010-04-26 19:43:53 -07:00
Adam Powell a91200d57b am 2762dd85: Fix bug 2629457 - Scale home screen settle animation based on distance. 2010-04-26 13:00:19 -07:00
Adam Powell 2762dd856e Fix bug 2629457 - Scale home screen settle animation based on distance.
This fixes the issue where using the long-press-on-dots feature to
jump to a specific home screen overshoots by a large distance. It also
speeds up the resulting animation such that jumping from screen 1 to 5
doesn't take as long.

Change-Id: If41086b17df875be5514776e3af24292587d05a7
2010-04-26 12:44:27 -07:00
The Android Automerger 2d3faf4f6c Merge branch 'froyo' into froyo-release 2010-04-26 11:44:50 -07:00
Daniel Sandler 4a4c729a5b Fix proguard flags.
Fixes a crash in the new hotseat launcher icons.

Change-Id: Idcb7441647f16c783a47dfe09400f04fa8980dd3
2010-04-23 14:57:32 -07:00
Daniel Sandler e25ce444b8 am 6ad79427: Merge "Fix proguard flags." into froyo 2010-04-23 14:14:59 -07:00
Daniel Sandler 9b64b09a82 am 14b0ba69: Fixed mdpi hotseat background artwork. 2010-04-23 14:02:35 -07:00
Daniel Sandler 6ad7942740 Merge "Fix proguard flags." into froyo 2010-04-23 14:02:25 -07:00
Daniel Sandler b465cd6b1c Fix proguard flags.
Fixes a crash in the new hotseat launcher icons.

Change-Id: Idcb7441647f16c783a47dfe09400f04fa8980dd3
2010-04-23 16:46:54 -04:00
Daniel Sandler 14b0ba69f3 Fixed mdpi hotseat background artwork.
Bug: 2559083
Change-Id: I969b13227b12a62484c9a91cb671128a3f3c2398
2010-04-23 15:22:10 -04:00
The Android Automerger 1a8d1ccef4 Merge branch 'froyo' into froyo-release 2010-04-23 11:54:59 -07:00
Daniel Sandler aaaf1be168 am 95767e38: Merge "Add widgets to default home screens." into froyo 2010-04-23 10:54:35 -07:00
Daniel Sandler 95767e3808 Merge "Add widgets to default home screens." into froyo 2010-04-23 10:40:10 -07:00
Daniel Sandler a7eb1ed548 am e547b623: Merge "New Launcher feature: "hotseat" icons." into froyo 2010-04-23 10:34:39 -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
The Android Automerger fad128b1e2 Merge branch 'froyo' into froyo-release 2010-04-22 16:16:40 -07:00
Joe Onorato ef03a7d293 am 87d2ca8a: Fix 2614384 - NPE in LauncherModel 2010-04-21 14:20:28 -07:00
Joe Onorato 87d2ca8a66 Fix 2614384 - NPE in LauncherModel
Callbacks can be null.

Change-Id: I56462a54673b1804a6235d6d882008b453290542
2010-04-21 17:09:18 -04:00
The Android Automerger ff6685e39b Merge branch 'froyo' into froyo-release 2010-04-21 10:46:43 -07:00
Joe Onorato 2a50d89f40 am d65d08e7: Fix race in LauncherModel that causes it to show duplicate icons. 2010-04-21 08:57:23 -07: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
The Android Automerger 49c9760c3e Merge branch 'froyo' into froyo-release 2010-04-19 12:50:25 -07:00
Daniel Sandler dadc3887d3 am cbe7f20a: Move batch size to a resource. 2010-04-19 12:48:11 -07: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 4692d88a6f am 9ecd07d6: Merge "More Launcher performance improvements." into froyo 2010-04-19 10:37:38 -07:00
Joe Onorato 9ecd07d636 Merge "More Launcher performance improvements." into froyo 2010-04-19 10:24:23 -07:00
Adam Powell 91ca37b31a am 495f2892: Change workspace scroller interpolator 2010-04-16 17:50:59 -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 44ce293c66 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-16 10:06:34 -07:00
Daniel Sandler 280cece023 Launcher2 performance: Don't sort apps in LauncherModel.
AllApps2D and AllApps3D do their own sorting before display.

Bug: 2562420
Change-Id: I77e3865b856a5123872bee3d8578d0596956cddd
2010-04-16 10:05:24 -07:00
Daniel Sandler 7b6fb9a6f2 am 707b0f7c: Sort apps in AllApps3D.setApps(). 2010-04-15 17:00:08 -07:00
Daniel Sandler a6680ef801 am 7645c94d: Merge "Launcher2 performance: Don\'t sort apps in LauncherModel." into froyo 2010-04-15 16:59:33 -07: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
Joe Onorato db368f4ae7 am effc4a8a: Paper over bug 2592956 - Home not redrawing the shortcuts, widgets, or background. 2010-04-15 16:31:43 -07:00
Joe Onorato 6710fb92f4 am f11079b1: Fix 2595902 - NPE in launcher2 2010-04-15 16:31:41 -07: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 e825010dc9 am dca66123: Batch loading of icons for AllApps. 2010-04-15 13:32:07 -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
The Android Automerger 59e6e51d92 Merge branch 'froyo' into froyo-release 2010-04-15 08:12:33 -07:00
Joe Onorato 0e43d78582 am 7018d8e3: Fix 2575588 - After creating new folder shortcut unable to navigate between home screen using touch. 2010-04-15 06:36:03 -07:00
Joe Onorato 5435ff76eb am ac03330c: Fix 2583234 - It\'s ok for mCallbacks to be null. 2010-04-15 06:36:01 -07:00
Romain Guy ec1c50ab4f Merge "Prevent view ids collisions in the workspace. Bug #2498787" 2010-04-14 14:57:01 -07:00
Romain Guy 1c01b6a138 Prevent view ids collisions in the workspace.
Bug #2498787

Change-Id: I8f007eb2759d00f52e05e776a70510ba3a213ae9
2010-04-14 14:56:34 -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