Commit Graph

78507 Commits

Author SHA1 Message Date
Kenny Root 057131d535 am 82faa751: Import revised translations 2010-04-29 17:09:28 -07:00
Adam Powell 1896a6ec2d Merge "Filter input events and smooth out touch scrolling. Bug 2639807" into froyo 2010-04-29 16:57:49 -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
Kenny Root 82faa75153 Import revised translations
Change-Id: I46c56ec11d883a3df1bf43944ea66240a5ea3962
2010-04-29 15:35:49 -07:00
The Android Automerger d8e796f87a Merge branch 'froyo' into froyo-release 2010-04-29 13:34:17 -07:00
Ficus Kirkpatrick 9a3c919ca5 am 9d179ade: Merge "Add Market widget to default workspace." into froyo 2010-04-28 16:00:20 -07:00
Ficus Kirkpatrick 9d179ade1a Merge "Add Market widget to default workspace." into froyo 2010-04-28 15:49:10 -07:00
Ficus Kirkpatrick 3862a6639a Add Market widget to default workspace.
Bug: 2606783
Change-Id: I8ea5e3564a21b98aadb8789e24276507c7ef46b7
2010-04-28 15:23:44 -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
Daniel Sandler 8da7bebfb9 am e1d923a6: Increase hot rectangle of trash can. 2010-04-28 14:02:04 -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 3ac52b6399 am de38c8e4: Merge "Updated hotseat artwork." into froyo 2010-04-28 13:53:22 -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 e1d923a67a Increase hot rectangle of trash can.
The drop region is now 70dip^2. This means it invisibly
overlaps nearby icons ever so slightly---not enough to
prevent icons being properly dropped on the workspace.

Bug: 2623734
Change-Id: I945160ef6bdfc0a4ac3cf9db57d440bad424dfc4
2010-04-28 16:42:33 -04:00
Daniel Sandler de38c8e42d Merge "Updated hotseat artwork." into froyo 2010-04-28 13:41:58 -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
The Android Automerger e88fcadb06 Merge branch 'froyo' into froyo-release 2010-04-28 12:21:11 -07:00
Kenny Root b1b4953a7d am 993d2efb: Merge "Import revised translations" into froyo 2010-04-28 09:56:47 -07:00
Daniel Sandler 786ae544e4 Updated hotseat artwork.
Also closes the gap below the buttons (not visibly, but the
hit rect now reaches the bottom of the screen). Bug: 2630273

Change-Id: I8e8de6b63f91b2fcf87c3af856003cc36dd6c096
2010-04-28 11:30:44 -04:00
Kenny Root 993d2efb74 Merge "Import revised translations" into froyo 2010-04-27 21:44:33 -07:00
Kenny Root 1b626a4af2 Import revised translations
Change-Id: Ia9b370372f0ea1ae5271030d946db621161f30a2
2010-04-27 13:39:00 -07: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
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