Commit Graph

4413 Commits

Author SHA1 Message Date
Daniel Sandler 2e2656ccaa Merge "Disable hotseat buttons if AllApps is visible." into froyo 2010-05-24 11:31:34 -07:00
Daniel Sandler 3e9454a9ac Disable hotseat buttons if AllApps is visible.
Bug: 2707845
Change-Id: Ic4039f9737b3218a45bb3e8456c47927edd3fe3d
2010-05-24 11:22:41 -04:00
Jason Sams 13a75d5f1e Update names and move clear to script.
Change-Id: I17af3cd027248f52ce6516f81968c6b3d976a09d
2010-05-19 18:58:48 -07:00
Joe Onorato 53a34ea27c am f3d5ea92: Have LauncherModel poke the gc after it\'s done, to give the renderscript objects a chance to get deleted, since they aren\'t in the java heap. 2010-05-18 18:53:23 -07:00
Joe Onorato f3d5ea926d Have LauncherModel poke the gc after it's done, to give the
renderscript objects a chance to get deleted, since they aren't
in the java heap.

Bug 2685490

Change-Id: Ifff97b64585ac0f6faed0feb6362f6137682e32d
2010-05-18 18:44:36 -07:00
Jason Sams ad1bdf0204 Launcher2 cleanup.
Will remove dead script functions once reflection is working.

Change-Id: Ieffcf55047b5e241a8cffb1852619d04e1a00d53
2010-05-14 17:55:13 -07:00
Jason Sams 14f67edd3f Update Launcher2 to work with LLVM.
Change-Id: I992b812ec58d182e5df7ddad3ab8e7d9e7b88551
2010-05-11 14:02:43 -07:00
Daniel Sandler cfb390545f am e1cc6c37: Fix 2617318 - NPE in Launcher2. 2010-05-07 10:53:11 -07:00
Daniel Sandler e1cc6c3745 Fix 2617318 - NPE in Launcher2.
Applies the fix in change Id91712fa to widgets.

Bug: 2617318
Change-Id: I1e1dac6238a26497eacc23b161df171ae40bb588
2010-05-07 11:49:29 -04:00
Adam Powell 8be8b97130 am 68b4182d: Merge "Bug 2639807 - Add smarter smoothing to home screen touch scrolling." into froyo 2010-05-05 11:07:16 -07:00
Joe Onorato 506c1b49aa am fad1fb5e: Tweak locking in launcher so mLock isn\'t held while the slow stuff happens. 2010-05-05 11:07:12 -07:00
Adam Powell 68b4182d77 Merge "Bug 2639807 - Add smarter smoothing to home screen touch scrolling." into froyo 2010-05-04 15:17:11 -07:00
Joe Onorato fad1fb5ed4 Tweak locking in launcher so mLock isn't held while the slow stuff happens.
Bug 2652948

Change-Id: I9d386395278830ead5deda17b8b09e0dcfeff989
2010-05-04 14:43:16 -07:00
Adam Powell fe8e279dbc Bug 2639807 - Add smarter smoothing to home screen touch scrolling.
Change-Id: I242e11f5aec218ae2b8f80ef3babcb2836c173db
2010-05-04 14:20:28 -07:00
Adam Powell 7b220c71e3 am fefa0ce2: Fix bug 2646531 - regression in home screen bitmap caching 2010-05-03 15:23:32 -07:00
Adam Powell fefa0ce22a Fix bug 2646531 - regression in home screen bitmap caching
Looks like the code path for buildDrawingCache(false) has some bugs.
This reverts to the old code path and tries to manage the creation of
those caches a bit better.

Change-Id: Ic468e9db396c51f723454dc3832e0cd1c0c82004
2010-05-03 10:23:50 -07:00
Adam Powell 11c8f9cb93 am 1896a6ec: Merge "Filter input events and smooth out touch scrolling. Bug 2639807" into froyo 2010-04-29 17:38:24 -07:00
Adam Powell fea5d02507 Filter input events and smooth out touch scrolling. Bug 2639807
Change-Id: I71a18497862a30db5ff0f52f566fb86eae213ea3
2010-04-29 16:46:03 -07:00
Romain Guy 5593296715 am 19b0600e: Merge "Avoid ANR in Home by avoiding a sycnhronized call on the UI thread. Bug #2614636" into froyo 2010-04-28 14:06:18 -07:00
Romain Guy 19b0600e47 Merge "Avoid ANR in Home by avoiding a sycnhronized call on the UI thread. Bug #2614636" into froyo 2010-04-28 13:55:53 -07:00
Daniel Sandler 848de496ac am 0554b749: Merge "Hotseats: better strategy for finding the default browser." into froyo 2010-04-28 13:46:30 -07:00
Daniel Sandler 0554b74917 Merge "Hotseats: better strategy for finding the default browser." into froyo 2010-04-28 13:32:44 -07:00
Romain Guy 0e74d9f057 Avoid ANR in Home by avoiding a sycnhronized call on the UI thread.
Bug #2614636

Change-Id: If9ded9a2e231a429e4d0a21626b486f76fd0a3a6
2010-04-28 13:32:43 -07:00
Daniel Sandler ab1ebd7e6f Hotseats: better strategy for finding the default browser.
To do this, we invoke resolveActivity to see what activity
would result from viewing an arbitrary (but valid) URL. If
there's just one installed, or there are multiple and the
user has chosen a default handler for http:, we take that
component and launch it with CATEGORY_HOME (so as not to
upset the URL in the frontmost window/tab/what-have-you).
We also use this information to extract the localized name
of the app, which is then installed into the hotseat as the
contentDescription (for accessibility).

If there's no default and multiple options are availble,
we'll get the activity chooser instead. In this case, we
just fire off that chooser and let the user pick an app
(possibly setting a default along the way). Because the
default may change, we reload all this hotseat information
every time one of the hotseats is tapped.

Another side-effect of this approach is that until there
exists a default browser, the original URL will be sent to
the activity the user chooses from the ResolveActivity. So
we need a sensible default URL here; one can be found in
R.string.default_browser_url (similar to Browser's
R.string.homepage_base).

This change also moves the hotseat intents and icons into
arrays.xml for easier configuration.

Change-Id: I06268df8b59e0f41f1f8b0e47f823db4c44ec761
2010-04-28 15:52:54 -04:00
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
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
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
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
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 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