Commit Graph

101 Commits

Author SHA1 Message Date
Joe Onorato 7018d8e327 Fix 2575588 - After creating new folder shortcut unable to navigate between home screen using touch.
Somebody fixed a bug in managed dialogs where it wouldn't
create the dialog after a configuration change.  This means that we
shouldn't set mWaitingForResult in createDialog, we need to set it in
onShow.  This is what the add dialog was already doing.

Change-Id: I955c2f7cd4a47213f84986ec9ba251146b1ac423
2010-04-13 20:29:42 -07:00
Joe Onorato f984e853f2 fix 2542590 add more logging when launching app fails
Change-Id: I5a1fa261c6e67eb7afb661de39e35ce43e2caa59
2010-03-25 09:47:45 -07:00
Romain Guy c16fea7161 Improve focus restore on orientation change.
Change-Id: If405c60f4a45aeb4079aa4dcd96b684fd6ea819c
2010-03-12 17:17:56 -08:00
Romain Guy 13c2e7b788 Prevent ANR in Home when changing orientation.
Bug #2504556

This solves the issue by keeping the GL context, the RS context and
the RS scene around, across orientation changes.

Change-Id: I8e3dc6e6bf039087046d49d2826c8800c5bef582
2010-03-10 19:45:00 -08:00
Joe Onorato 64e6be78dc Refactor the app updates so that it doesn't rely on the package name.
This will be needed for the upcoming change to update the icons with the
grayed out when the SD card goes away.
2010-03-10 13:42:32 -08:00
Romain Guy 406d703fad Make touch events work in landscape. 2010-03-04 18:59:31 -08:00
Romain Guy edcce099c9 Fix the build! 2010-03-04 13:03:17 -08:00
Romain Guy 8e633c5a3e Prevent crash when a bad widget launches a non-existent config activity. 2010-03-04 12:51:36 -08:00
Romain Guy 060b5c88cc Implement landscape in 3D all apps.
Bug #2454737
Bug #2454736
2010-03-04 10:16:43 -08:00
Daniel Sandler c351eb8b6a Hide the workspace when launching AllApps2D.
Boosts performance and squashes some weird focus issues.

(Also: fix builds with AllApps3D)

Change-Id: Id1c4628e119c950dced9d3383993674f3d6b9a1c
2010-03-03 15:11:52 -05:00
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
Romain Guy fb5411e982 Correctly position the quick contact badge when opened from a folder.
Bug #2467438
2010-02-24 10:04:17 -08:00
Joe Onorato deb98afe40 minor refactor: This function is only called from one place. It doesn't need the parameters. 2010-02-19 15:00:12 -08:00
Joe Onorato f0dde0927b Don't do the haptic feedback on workspace items when they're not being picked up.
related to bug 2309687
2010-02-16 18:25:23 -05:00
Joe Onorato 52fbb3cd46 Revert "Merge "Launcher changes to handle UTS test mode." into eclair"
This reverts commit b8fc9e7df6, reversing
changes made to 52ba5b08f2.
2010-02-13 11:23:10 -05:00
Wink Saville 7ac5037acc am c4470606: am b8fc9e7d: Merge "Launcher changes to handle UTS test mode." into eclair
Merge commit 'c44706064341f02a14d61091492a5fc6dc6efd2d'

* commit 'c44706064341f02a14d61091492a5fc6dc6efd2d':
  Launcher changes to handle UTS test mode.
2010-02-12 16:02:32 -08:00
Wink Saville 2693030ea4 Launcher changes to handle UTS test mode.
When in UTS test mode keys received need to be handled
by the Phone application or Contacts application to
operate properly in the test mode. When not in test mode
the search widget will handle the keys as it was before
this change.

The UTS test mode is enabled when presist.sys.uts-test-mode is 1.

bug: 2402366
Change-Id: I58e68830f9ce6905e189ecba1c04b1076799a0a0
Signed-off-by: Wink Saville <wink@google.com>
2010-02-12 12:12:45 -08:00
Joe Onorato 0589f0f66c Split ApplicationInfo into ApplicationInfo which is used for AllAppsView and ShortcutInfo which is
used for the workspace.

Consolidate the three icon resampling functions into one.

Ensure that the icons stored in LauncherProvider are the right size, so we don't have to resample
them each time we load them.
2010-02-12 12:18:40 -05:00
Bjorn Bringert 3e244cf9d2 Use Search.SOURCE from android-common
The SOURCE (search source identifier) constant is moving
from hidden in android.app.SearchManager to com.android.common.Search.

Part of http://b/issue?id=2429556

Change-Id: I68fa792f2d452aadcb9216f5c780bd082ca5039f
2010-02-10 14:17:35 +00:00
Joe Onorato 2d7e7d0d48 Fix 2261097 Shouldn't give users the option of MENU > Add in All Apps 2010-01-29 15:57:19 -08:00
Joe Onorato 8a9625e218 mostly fix 2392102 by overriding the force-open input thing 2010-01-28 15:55:35 -08:00
Romain Guy 5c16f3ecd6 Remove LiveFolders when corresponding package is uninstalled.
Bug #2298872
2010-01-12 17:24:58 -08:00
Romain Guy ea3763c267 Fix dpad nav: go left/right when dpad is moved and dots are focused.
Bug #2359364
2010-01-11 18:02:04 -08:00
Romain Guy b5de775467 Prevent crash when the app passes the wrong data type as a shortcut icon.
Bug: #2353444.
2010-01-04 14:43:49 -08:00
Joe Onorato 752a1244be am 34a0e1b0: fix bug 2326478
Merge commit '34a0e1b00b9baeff19e94f1ee35dd890063489d2'

* commit '34a0e1b00b9baeff19e94f1ee35dd890063489d2':
  fix bug 2326478
2009-12-15 15:05:31 -08:00
Joe Onorato 34a0e1b00b fix bug 2326478 2009-12-14 17:44:51 -08:00
Bjorn Bringert 7984c9496b Get rid of the built-in search widget in Launcher2
Uses the widget from packages/apps/QuickSearchBox instead.

Change-Id: I85d64defe155c0cad97fafef6a3db62c6cab504a
2009-12-09 21:48:38 +00:00
Romain Guy f8e6a80acd Let the user click the dots during a scroll on Home.
This allows faster scroll across Home. Also remove dead code.
2009-12-07 18:01:15 -08:00
Joe Onorato 7e4ed99eb0 Fix 2300792 - All apps zooming when you come back from an app.
This makes it so we're only listening for the CLOSE_SYSTEM_DIALOGS
broadcast while we're between onResume and onPause.
2009-12-03 13:10:49 -08:00
Joe Onorato 13724ea607 Make the launcher send the position of the icon that's launching an intent. 2009-12-02 21:33:36 -08:00
Jason Sams eb5615d1af Rename special dump properity so we can set it on user builds. 2009-11-30 11:50:10 -08:00
Joe Onorato f0be2134e5 Fix 2275513 - Icons don't update on package update
Also reuses the BubbleText object, which was being recreated for no reason.
2009-11-24 19:34:29 -05:00
Joe Onorato b20612133b Fix bug 2248173 - all apps animates out when you return home. 2009-11-24 16:13:54 -05:00
Bjorn Bringert 98047dc39f Clear search widget animation in Launcher.onResume()
Before, Launcher relied on a callback to a SearchManager.OnCancelListener to clear the search widget
animation. However, that doesn't get called if some other app opens the search dialog
before the Launcher is reopened. This change clears the animation in onResume().

Should fix http://b/issue?id=2246760
2009-11-21 22:08:04 +00:00
Joe Onorato cc19a53d61 Fix 2271080 - .lang.IllegalArgumentException: no dialog with id 1 was ever shown via
Activity#showDialog on CreateShortcut

I'm not sure how this can happen, but I think it's okay to just
drop the exception.  It's all just trying to clean up anyway.
2009-11-19 14:20:57 -08:00
Joe Onorato 14f122bf84 Fix bug 2271894 - Odd animation when press home button from app that wasn't in center home screen
Now:
 - When you're on the workspace and you press home, it animates back to the middle
 - When you're in all apps and you press home, all apps animates out and the workspace
   doesn't animate to the middle (it just jumps there)
 - When you're in an app and you press home, it doesn't animate to the middle
 - When you're in an app and you press back, it still goes to the page you were on.

Don't look at the evil hack to make it move without animating.
2009-11-19 14:06:36 -08:00
Joe Onorato 88ec0990c6 Fix 2274291 - back key doesn't go from all apps to workspace 2009-11-19 13:16:06 -08:00
Joe Onorato 61597bd5fd Fix 2271141 - Pressing the bottom corner of the screen when the applications menu is visible will
switch the home screen
2009-11-19 12:51:57 -08:00
Joe Onorato a5c32d6ecc Fix bugs 226264 and 2265943 - Home stopped responding to touch, but all-apps & notification panel
still work

I knew it was a problem with mWaitingForResult, which I'm still not convinced we need, but
Jeff Sharkey was able to find repro steps, so he's my new hero.  The steps were:
  1. Open add menu (long pressing or menu > add)
  2. Turn off the screen
  3. Turn back on & unlock
  4. Poof.
The problem was that when we get ACTION_CLOSE_SYSTEM_DIALOGS intents, we're dismissing the dialogs,
not canceling them.  I think we actually want to cancel them, but there's no easy way to do that
with the Activity class, so just clear mWaitingForResult by hand in closeSystemDialogs().
2009-11-19 10:28:49 -08:00
Joe Onorato 247226b1d5 Fix bug 2266095 - all apps animates out when you return home by hitting back
We needed to check that they haven't exited on the down event.
2009-11-18 17:43:22 -08:00
Joe Onorato 39bfc13a77 Add more logging for bugs 2262649, 2262272 and 2265943. 2009-11-18 17:22:01 -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 0d44e9482b Fix bug 2261637 - Workspace previews home screens on long pressing
at the bottom of app drawer

This includes some contortions to get it not to perform the vibrate
haptic feedback then.

(By the way, it appears that we're vibrating on the add context menu
long press, so also do it when when we show the previews.
2009-11-16 18:20:51 -08:00
Romain Guy f2826c7e21 Remove "Configure..." option from wallpaper chooser.
Change-Id: Iae9719dc3197ea0ee8e7637456b9d76d9ce8622b
2009-11-12 18:38:17 -08:00
Joe Onorato 24b6fd854f Fix 2257802 - Screen unresponsive when you get a call while moving the shortcuts or widgets on home screen 2009-11-12 13:49:09 -08:00
Romain Guy e47f55c30b Improve desktop scrolling from the previews switcher.
Change-Id: Iee05120b4363c07294f665f45f561e9d9361ccaa
2009-11-11 19:21:22 -08:00
Romain Guy 9d31e9fa3d Shows all screens in the previews.
Change-Id: Ib8b19492ccb07a135ba95ab75ae03f034275c572
2009-11-11 18:56:51 -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
Joe Onorato 2ca0ae7d7c Fix bug 2250432 - all apps should dismiss when you power off or phone locks
Also cherry-picks this from launcher 1

Fix issue #2133206: dialogs/menus should auto-dismiss when screen turns off

Close things out in various ways.  This should be done for Launcher2 as well.

Change-Id: Id4f1c78e35180b437144c54ddcbf10069cc09071

Conflicts:

	AndroidManifest.xml
	src/com/android/launcher2/Launcher.java
2009-11-10 19:56:01 -08:00