Commit Graph

417 Commits

Author SHA1 Message Date
Jason Sams 1444e6e29c Merge "Code cleanup possible with new reflected classes." 2010-06-21 17:44:53 -07:00
Kenny Root cfc73db0c3 am 8a3ef2ed: Import revised translations
Merge commit '8a3ef2ed6c2cc89ae96384358fa5fcba58b50ac0'

* commit '8a3ef2ed6c2cc89ae96384358fa5fcba58b50ac0':
  Import revised translations
2010-06-21 10:16:51 -07:00
Kenny Root 8a3ef2ed6c Import revised translations
Change-Id: I8b250fac67c854a118fd481466e2e28f773e2229
2010-06-20 18:58:37 -07:00
Jason Sams 60a55bbf54 Code cleanup possible with new reflected classes.
Change-Id: If9e79383722c0df997526717c52ded4921b6663e
2010-06-18 15:11:19 -07:00
Jason Sams 1aa4ff083c Update AppApps to use reflected files.
Previous files were hand written placeholders.
This also fixed the physics bug where movement was right.

Change-Id: I98838084d60f0eaf22f7fbd148a80b2f73f9a14c
2010-06-15 17:13:46 -07:00
Shih-wei Liao 4d7c5cd993 Merge "Add pragma on java package name, for reflection purpose." 2010-06-14 16:11:43 -07:00
Shih-wei Liao c8149656bc Add pragma on java package name, for reflection purpose.
Change-Id: I30a3cc2177b320a76d093cd018216ae936e81150
2010-06-14 11:46:11 -07:00
Kenny Root 2061acae28 am a9bda02f: Import revised translations 2010-06-09 22:51:11 -07:00
Kenny Root a9bda02f7c Import revised translations
Change-Id: I1c61fee7e093d6f1dc9bb1f178ebec89378e2754
2010-06-09 22:37:22 -07:00
Daniel Sandler 9d2b252cb7 am 6662645a: Merge "Make 2D All Apps work better in landscape and on hdpi." into froyo 2010-06-03 14:17:47 -07:00
Daniel Sandler 86b40541a8 Make 2D All Apps work better in landscape and on hdpi.
* Correct the density (or, rather, remove the density) of
  the icons in the cache to ensure they're drawn px-for-px.

* Create a new landscape layout for 2DAA that aligns things
  properly (viz: Home icon at right, padding tuned, 6
  columns).

* Performance improvement: Make the app grid, icons, and
  home icon all opaque (by setting a black background) and
  move the home icon so it doesn't overlap the grid.

Change-Id: I961323e9e39cb122cdc694853706e7fcdd10142f
2010-06-03 10:35:44 -07:00
Jason Sams 13a75d5f1e Update names and move clear to script.
Change-Id: I17af3cd027248f52ce6516f81968c6b3d976a09d
2010-05-19 18:58:48 -07:00
Jason Sams 29ebdeaa1f Merge "Fix regression in master. The attempt to remove the last frame hack in all apps caused home to sometimes render black upon returning from an application." 2010-05-18 17:07:49 -07:00
Jason Sams 5c1417acfc Fix regression in master. The attempt to remove the last frame hack in
all apps caused home to sometimes render black upon returning from an application.

Change-Id: I4444d7a6e62548f5a996c12b7e11aa46876d44e4
2010-05-18 17:06:04 -07:00
Kenny Root 93c0985c42 am d0b7a8cf: Import revised translations 2010-05-17 15:03:58 -07:00
Kenny Root d0b7a8cf2b Import revised translations
Change-Id: I627268e91946716036c1a37b22db48326ce7007d
2010-05-17 11:35:17 -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
Ficus Kirkpatrick 24c0a79821 Update default homescreen layout to latest design.
Change-Id: I3e5699a22103af1fa9c7ec476f4401a53771e5a0
2010-05-03 12:06:08 -07:00
Kenny Root 82faa75153 Import revised translations
Change-Id: I46c56ec11d883a3df1bf43944ea66240a5ea3962
2010-04-29 15:35:49 -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
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
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
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 1b626a4af2 Import revised translations
Change-Id: Ia9b370372f0ea1ae5271030d946db621161f30a2
2010-04-27 13:39:00 -07:00
Daniel Sandler 14b0ba69f3 Fixed mdpi hotseat background artwork.
Bug: 2559083
Change-Id: I969b13227b12a62484c9a91cb671128a3f3c2398
2010-04-23 15:22:10 -04:00
Daniel Sandler 95767e3808 Merge "Add widgets to default home screens." into froyo 2010-04-23 10:40:10 -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
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
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 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
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 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
Kenny Root a66bf91d4d Import revised translations
Change-Id: I1b4b8c830701a1aa08a31a78fdff92216bf2ef5f
2010-03-17 22:14:17 -07:00
Jason Sams cc903494fa Fix stop point for physics in landscape.
Change-Id: I4ca8fcf9d65746116b3c244e724344d8f90eeba0
2010-03-12 12:46:04 -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
Daniel Sandler 73a0554de1 Fix trackball focus weirdness in AllApps2D.
Also vertically align AllApps2D's home icon with Workspace's
grid icon.

Change-Id: I81a8759ed33afd08336482484f1b9bdb9a36718e
2010-03-11 09:00:51 -05:00
Dianne Hackborn 12687cf144 Allow shared user id and process to be set via overlays.
This fiddles the manifest to allow the app's shared user id and
process to be changed at build time via resource overlays, so we
can build launcher to run in the acore process for low-end devices.

Also switches the cert of launcher back to shared, to allow for
this.  (Note this only really matters if the shared user id is set,
otherwise launcher will still get its own uid.)

Change-Id: I0bd0a06e1442c4bfe5ceb2d438cb58f29d911578
2010-03-09 17:18:11 -08:00
Daniel Sandler a4503708ea Updated mdpi art.
Bug: 2485104
Change-Id: I6a84768f45141528361eaee1f0ce4b37e50ca487
2010-03-09 11:00:12 -05:00
Jason Sams 638a93d73b Give up on caching the computed animation state as it keeps causing bugs
where we don't correctly re-initialize it when starting in various states.

Change-Id: Id648c7bba5d8b55a32b5b33363ddf6e74701df87
2010-03-08 17:03:51 -08:00
Daniel Sandler af6db10ca5 Speed up 2D AllApps fade-in.
Change-Id: I466c97cb63687ec3dab5109a8e77445e78e8b3ee
2010-03-08 14:41:21 -05:00
Daniel Sandler fe609f3bab Swap in the classic Android wallpapers in mdpi.
hdpi devices will see the Nexus wallpapers; mdpi devices
will see the old wallpapers.

Change-Id: If019eb90e9d67ede7865a8ea9f7a330d43a664ab
2010-03-05 11:02:55 -05:00
Daniel Sandler 46e47d03b3 Change the way 2D/3D AllApps are selected.
all_apps.xml is now a trampoline that loads the correct layout file.

Also take this opportunity to make 2D the default.

Change-Id: Iba2500da1bf4f505f1a5c2f6f32ed6e72ec34c5f
2010-03-04 16:16:20 -05:00