Commit Graph

90 Commits

Author SHA1 Message Date
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
Romain Guy ff0c2e26ec Add the ability to dismiss previews when touching outside of the popup.u
Change-Id: Ieca2267f3cadd88315a50f0cede97b6c42cab39c
2009-11-10 12:09:59 -08:00
Romain Guy e6b8e2fa73 Better previews.
Change-Id: I400c6b45fae2f74722985f766dc17c0892550403
2009-11-10 11:56:55 -08:00
Romain Guy a6abce8464 Improve previews display and allow to jump directly to any screen.
Change-Id: I87e7a6a53f286ab7a04657e1598a947f9302e2a1
2009-11-10 02:54:41 -08:00
Romain Guy 1a304a1198 Better preview visuals.
Smaller thumbnail (removed unnecessary padding), more opaque background.
Uses a white background because the dark background interferes with the
new dark widgets.

Change-Id: I7654741d845609200569fce34b6cde891d2b5d29
2009-11-10 00:02:32 -08:00
Romain Guy 1fbc1c8431 Add previews on long press on the indicators.
Change-Id: I6349d55345255caacc1381e83459544f8b8e085c
2009-11-09 20:45:03 -08:00
Romain Guy 8a73c51ee8 New position indicators and icons for Launcher2.
Change-Id: Id444943a3cc2e9db78733614141cbe2be837fdbf
2009-11-09 19:19:59 -08:00
Jeff Sharkey 1e2efc8a6d Start listening again after LauncherProvider clears widgets.
After the LauncherProvider resets the database and wipes
out the host info, the Launcher must tell the AppWidgetHost
to listen again.

Originally 87e688d8... in packages/apps/Launcher.

Fixes http://b/2238470
2009-11-09 10:07:56 -08:00
Joe Onorato e6168662d8 Fix bug 2242465 - Can add shortcuts while the "3d all apps" is open.
The more I think about it, the more I think AllApps should just be a separate
activity.  It's not a drawer anymore and you open it by pressing a button.
Also, it will want to derive from RenderScriptActivity or something, and
have all that stuff dealt with automatically too.  It's to late to make a
change like this now, but if we do choose to do it someday, I think we'll want
to reconsider the menu that's shown.

For now, just close all apps when they add a shortcut or change the wallpaper.
2009-11-08 13:39:30 -05:00
Joe Onorato d753b42d51 Bug 2246631 - Show soft keyboard on launcher dialogs 2009-11-08 13:31:11 -05:00
Romain Guy 18042c82c5 [Launcher2] Delete app widgets when their configuration is cancelled or there's not enough room on Home.
Bugs #2234228 and #2244729.
Approved by mcleron

Change-Id: I15e4850d8c1a821497df5d32e5fb63b3400d1e44
2009-11-06 13:45:44 -08:00
Joe Onorato ad72e1705c Fix launcher2 crash. We weren't initializing the list of folders. Bug 2210545. 2009-11-06 16:25:43 -05:00