Commit Graph

111 Commits

Author SHA1 Message Date
Daniel Sandler 388f679aa4 Introduce 2D All Apps and other support for sapphire-class devices.
AllAppsView is now the 2D, GridView-based version (very
similar to classic Launcher); AllApps3D is the
RenderScript/Rollo implementation.

TODO:
 - some mdpi assets are not in fact mdpi
 - related to above: static wallpapers not working yet
 - add dynamic selection of 2D/3D AA; currently you must
   choose one at build time by picking the appropriate class
   in all_apps.xml (see separate CL for sapphire overlay
   that does this)

Change-Id: I253d98404ea8a329a4049d2e48edd2e5129fa6ba
2010-03-03 14:38:45 -05:00
Joe Onorato a5ecf71e57 am 2347b233: am 4700fed7: Maybe this will silence http://b/2460740
Merge commit '2347b2335b26edc5b7145759cc8a727fc712b970'

* commit '2347b2335b26edc5b7145759cc8a727fc712b970':
  Maybe this will silence http://b/2460740
2010-03-01 18:34:15 -08:00
Joe Onorato 4700fed72b Maybe this will silence http://b/2460740 2010-03-01 15:26:36 -08:00
Joe Onorato 983e5f2cd3 am 96ef9f68: am bf5350db: fix 2460740 com.android.launcher2: java.lang.NullPointerException at com.android.launcher2.AllAppsView.saveAppsList(AllAppsView.java:1270)
Merge commit '96ef9f68a43604c99cd18537a6c8e9d1c5049c31'

* commit '96ef9f68a43604c99cd18537a6c8e9d1c5049c31':
  fix 2460740 com.android.launcher2: java.lang.NullPointerException at
2010-02-22 15:07:16 -08:00
Joe Onorato bf5350db61 fix 2460740 com.android.launcher2: java.lang.NullPointerException at
com.android.launcher2.AllAppsView$RolloRS.saveAppsList(AllAppsView.java:1270)
2010-02-22 14:46:10 -08:00
Joe Onorato 75fd1ec46d DO NOT MERGE - Use the froyo launcher2 in mr3, except for a few unbundling things that can't be merged back. 2010-02-18 17:09:55 -08:00
Joe Onorato 339cdd9816 fix 2411389 - calling RS with no Context
This thing where the context sometimes works and sometimes doesn't is starting to piss me off.  We
really need to have RenderScriptActivity that deals with the lifecycle for you...
2010-02-17 14:08:32 -05:00
Jason Sams 52ba5b08f2 DO NOT MERGE. Update for new RS library with ES 2.0 support. 2010-02-11 18:15:48 -08:00
Jason Sams e48eae0c4d Convert to RenderScriptGL. 2010-02-09 15:55:48 -08:00
Jason Sams 82e1a27ba0 More dead code cleanup. 2010-02-04 17:32:57 -08:00
Jason Sams 23dcb7babf Remove dead code. 2010-02-04 17:00:27 -08:00
Jason Sams 7651248dd1 Support rotation of the all apps screen. 2010-02-04 16:38:48 -08:00
Jason Sams 66ed54e13b Clean up vertex program with easy to manage uniform constants. 2010-02-04 12:43:26 -08:00
Joe Onorato b83155406b Possibly fix 2415260 - IllegalStateException: Calling RS with no Context active 2010-02-03 20:39:25 -08:00
Joe Onorato e9a3f3d85b Fix 2379378 Trackball up on all apps home icon doesn't highlight the correct icon 2010-02-01 18:36:43 -05:00
Jason Sams 1a94ee3a8b Fix selection highligh in all apps. Selection highlight now follows the curve and uses a smaller bitmap. 2010-01-20 13:34:30 -08:00
Jason Sams 6ec11bc3a8 Change text labels from RGBA to ALPHA8. Reduces memory usage and may increase performance. 2010-01-19 17:56:52 -08:00
Jason Sams b4ecab24db Update launcher2 with vertex shader and single draw method for icons. 2010-01-19 16:43:26 -08:00
Joe Onorato f5e4dd01ad Put the label into the same texture as the icon. 2010-01-14 19:10:18 -05:00
Joe Onorato 6374c51a89 Fix bug 2337808 - zoom state gets out of sync when the surface disappears 2010-01-11 11:15:08 -05:00
Jason Sams d15f3ef981 cleanup RS scripts leftover from previous design and rename final script. 2010-01-06 14:58:06 -08:00
Jason Sams 72f1d3100c Update to new RS texture API. 2009-12-17 16:58:25 -08:00
Jason Sams 510ee04942 Remove WAR for handling uploads when no surface was present. 2009-12-15 14:23:37 -08:00
Joe Onorato 3ecbd81f99 Still trying to fix 2320348 - Launcher2 crashed: AIOOBE at com.android.launcher2.AllAppsView$RolloRS.removeApp 2009-12-11 13:38:54 -08:00
Joe Onorato 8cf34293dc Launcher2 - This might fix the missing app problem and the crash in removeApp.
This marks the apps list as dirty by default.  Usually, because of how long
it takes the loader thread to run, the apps list comes in after the surface
has been initialized.  However, if the surface isn't around yet when setApps
is called, then setApps won't set mRollo.mAppsDirty because mRollo is null.
The extra null check is necessary for the normal case when mAllAppsList isn't
ready yet when the surface comes in.
2009-12-11 10:59:51 -08:00
Joe Onorato 8eea3914a0 fix 2315821 and 2315729 - problems caused because the apps list could become
unsynchronized with the list of icons.
2009-12-09 13:01:06 -08:00
Joe Onorato af5b4cb277 Fix 2305903 Scrolling trackball upwards at the top of the app menu selects app at the bottom left 2009-12-08 17:51:22 -08:00
Joe Onorato a276fc59f5 Fix 2306862 - Launcher2 crashed: in libs/rs. Uploading texture without a context.
turns off some logging and fixes latent bugs that this uncovered where we were
accessing renderscript while there was no context.
2009-12-08 17:02:02 -08:00
Joe Onorato bf173f11d2 Fix 2304151 - crash while installing apps
It was happening if you had previously uninstalled an app.
2009-12-08 13:29:38 -08:00
Joe Onorato b0c27f254a Bug 2290800 - Use a collator to sort the app labels.
SHAME ON ME for using String.compareTo().
2009-12-01 16:20:30 -08:00
Joe Onorato be38609f87 Add a lot of logging that can be seen by doing adb shell setprop launcher2.dumpstate 1 and presssing volume down 2009-11-17 18:04:52 -08:00
Joe Onorato 478730f3c1 fix 2261526 - Trackball doesn't work in 3D all-apps if you opened it using trackball 2009-11-16 18:54:43 -08:00
Jason Sams 5612e4321e Fix duplicated text when returning home from an app that hid the status bar and launcher2 was killed. 2009-11-16 14:18:07 -08:00
Jason Sams e26d9fc287 Update AllApps to defered surface attachment for RS. 2009-11-12 15:09:21 -08:00
Joe Onorato 68ba5ca5d7 Keep banging on the launcher locks up bug. This moves the
delayed zoom stuff into one place, so it should be out of
sync less.
2009-11-12 14:23:43 -08:00
Joe Onorato cb75f366cc Fix bug 2258128 - homescreen on Passion unresponsive while still not leaking the contexts. 2009-11-12 13:28:09 -08:00
Joe Onorato fab744014a Fix bug 2249797 - Launcher2 leaking textures on locale change 2009-11-11 16:05:23 -08:00
Joe Onorato 52a653f3ff Fix 2241848 - 3D apps folder does not send accessibility events
It's now sending them.  The beeping and vibrating accessibility things
work, but we only have prebuilts for the speech one and it's not saying
anything and I can't debug it, so this will have to do.
2009-11-11 14:52:11 -08:00
Joe Onorato a30ce8e6b2 Bug 2231692 - Turn off launcher2 logging. 2009-11-11 09:24:37 -08:00
Joe Onorato 3a8820bdba Fix bug 2250457 - Open folder on home screen changes changes the behaviour of the home button
Now, home always goes to the center worksapce screen and back from an
app goes to all apps if it was open.

Getting that animations smooth took a little bit of work.
2009-11-10 19:56:02 -08:00
Mike Cleron b64b67a012 Fix http://b/issue?id=2203681
There is a race between the view system
dispatching focus and mRollo being intialized. Now
if AllApps is supposed to gain focus before mRollo
is ready we remember that state and gain focus 
later.
2009-11-08 15:39:29 -08:00
Joe Onorato eb8325a9e2 Bug 2239823 - Can't focus "home" icon in 3d all apps 2009-11-08 13:20:30 -05:00
Joe Onorato c61cff9299 Make the selection indicator and the focus indicator in 3d all apps different colors. Bug 2239818. 2009-11-08 12:06:04 -05:00
Joe Onorato 2d80476997 The apps might not have finished loading by the time we're doing this. Fixes bug 2241755. 2009-11-05 16:03:12 -05:00
Joe Onorato 0ace11a2b0 Add logging to launcher2 to help diagnose 2239265 since QA keeps reassigning it to me without
providing more detailed steps to reproduce.
2009-11-05 16:03:12 -05:00
Jason Sams 20df7c7d72 Fix white square bug when new apps are added while home is not active. 2009-11-05 12:30:24 -08:00
Jason Sams 90396672ba Don't release the GL context when all-apps looses its surface. 2009-11-03 13:59:34 -08:00
Mike Cleron 4a5c1e1ec9 Fix 2209039 and 2220106
Improve trackball handling and menu interaction
2009-11-03 10:17:05 -08:00
Joe Onorato a13f574e3a Fix 2205899 - unable to access last row using trackball scroll if last row is having less than
4 icons.
2009-11-02 17:15:19 -05:00
Joe Onorato 080d9b614e Adjust logging of launcher2 launch times, and make all apps loading wait a little longer,
even though usually it happens later anyway.

For bug 2226555.
2009-11-02 12:01:11 -05:00