Commit Graph

150 Commits

Author SHA1 Message Date
Michael Jurka 931dc9779d Solving bug where labels were uneven
- Ensuring all icons, even those that are pulled from our database cache, are always the correct size
- Solves bug where loading icon for shortcuts with missing activities on a GB->ICS upgrade caused uneven labels (Bug 5111191)

Change-Id: I4b8a97c3b0fa02fd189f82d0c01444f47fee2205
2011-08-05 15:43:18 -07:00
Michael Jurka 7578ec6fa9 Fix crash when adding bookmark to homescreen from browser
Bug 5109799

Change-Id: Ic7de1dcd06d20715170a856ed345f91bd36d982d
2011-08-03 14:12:12 -07:00
Adam Cohen 9932a9b1e6 Fixing weird deferred click events after deleting folder
-> Fixing issue 5055487

Change-Id: I932f95f29322fa50035b13063ab51fad2d2217e8
2011-08-02 22:26:50 -07:00
Winson Chung 3d503fbd94 Initial changes to add configurable hotseat.
Change-Id: I4c2ed4a1c122c057662fabc70bfef7c5c088460b
2011-07-20 14:12:20 -07:00
Narayan Kamath cb1a477868 Update the search widget icon if the global search provider changes.
Note that this change is necessary because the launcher might
receive the PM broadcast before the SearchManagerService does.

Change-Id: I5a03e2fb16dee232a83d24b834ef6bd0eaabe774
2011-07-18 11:43:34 +01:00
Michael Jurka 288a36b563 Cleaning up code to deal with language changes 2011-07-12 16:53:48 -07:00
Michael Jurka c2f801e770 Reload workspace if language changes 2011-07-12 14:19:46 -07:00
Michael Jurka fe63476a2d Merge "Fix bug where All Apps wasn't always getting updated" 2011-07-12 12:51:14 -07:00
Michael Jurka 5b1808da75 Fix bug where All Apps wasn't always getting updated
Bug # 4731290
2011-07-11 19:59:46 -07:00
Adam Cohen 93993f8745 Merge "Fixing bug 5011917 - clearing refernce to old folders from FolderInfo" 2011-07-11 18:42:27 -07:00
Adam Cohen 4eac29a80b Fixing bug 5011917 - clearing refernce to old folders from FolderInfo
-> Also, ensured that unbind() gets called on all ItemInfos on rotate

Change-Id: I869b68fcae5c66702ec204596f5ecabdc7a32df7
2011-07-11 18:37:16 -07:00
Winson Chung c3eecff904 Preventing multiple calls to loadLabel for the same info within a single load.
- Fixing mind boggling bug where we weren't even using the label cache earlier.

Change-Id: I605abf4d589ad02b2426d20adfe9cd1773cc84fd
2011-07-11 17:47:42 -07:00
Michael Jurka a8c760d395 Improving LauncherModel performance
- no longer reloading DB on each configuration change
- adding/updating items in DB on background thread

Change-Id: Ie140f31608df84b0ca2d45eb7a210a8a3b36b52f
2011-07-08 14:06:14 -07:00
Adam Cohen d044526d82 Adding transitions during folder creation
-> Seamless* transition from dropping item onto another
   to the creation of a folder containing those items
-> Seamless* transitions when adding the third item
   to a folder
-> Cleaned up the code in FolderIcon in order to achieve
   above

Change-Id: Iaf2519ac480acfdc928cc2b7585f28bc7d50bd23
2011-07-06 11:35:56 -07:00
Adam Cohen afb01ee742 Folder auto-destroys itself when there is only one item left.
Change-Id: I4ea41e0730e3dc474a518eba0a04c11167b5c1df
2011-06-23 18:52:18 -07:00
Winson Chung cd2b01416f Removing old Launcher callback reference from LauncherModel when the activity is destroyed.
Change-Id: I288d2bd7e305c2cf9bdeec5357997d566d5205b7
2011-06-08 16:19:08 -07:00
Winson Chung 63257c110a Minor changes to help address some hiccups when panning, changing tabs and rotating in AppsCustomize.
- Also removing references to old all-apps 2d/3d

Change-Id: Ibe07ad8b4facc5c57b3c82ccf0b55260be61a31b
2011-05-06 16:25:37 -07:00
Winson Chung 4dbea7920a Cleaning up icon code.
- Changing long-press on homescreen to bring up wallpaper picker.

Change-Id: I854b1b7dc5a102e95853732d6e9a4fa298144650
2011-05-05 15:22:05 -07:00
Winson Chung 1ed747a4c0 Testing mixing shortcuts into widgets pane.
- Initial changes adding LRU cache to widget pane to speed up getting widget previews.

Change-Id: If9ed479ba8f2fb321b3ff8c384ac5a9f87d4c689
2011-05-04 17:22:37 -07:00
Michael Jurka 20c0364a1d Deleting deprecated and unused code 2011-04-29 14:43:17 -07:00
Adam Cohen df2cc41acb Stripping LiveFolders from Launcher
Change-Id: Ic105fbeb1289e43469d5975b7d977b2fc7900c0b
2011-04-28 12:28:39 -07:00
Winson Chung 785d2eb2b8 Initial changes to merged AllApps/Customize pane in the Phone UI.
Change-Id: Ifa1676736033fe617dd0cca965156c38fa452948
2011-04-22 12:53:59 -07:00
Adam Cohen 71a9546402 Fix launcher crash, bug: 3368489
Change-Id: I8b693d9ea6b4ef58ee1141e8f61b3fede134606b
2011-03-22 13:54:11 -07:00
Adam Cohen 1b607ed454 Cleaning up widget resizing code
Change-Id: Ib4c0de0080f0b69f873fd88016f23c319a13c6ff
2011-03-03 18:30:20 -08:00
Adam Cohen d4844c3e73 Implementing resizable widgets in launcher
Change-Id: I18598493dcf34fc6089fa330a4b66803f658b773
2011-02-25 13:56:06 -08:00
Joe Onorato 17a8922e2a Make the icon caching for SD cards actually work.
We need to save the icon *after* we have loaded all the other information about it.

Also, add a check that if apps on SD aren't possible, don't even bother saving the icon.  This saves
~200 ms on each run of the loader.

Bug: 3240615
Change-Id: Idc2329a868ab970b51deec341ffa8a47a344e110
2011-02-10 11:41:57 -08:00
Winson Chung 78403feedc Changing downloads tab to my apps and making most recent first. (3377455)
Change-Id: I75ae46ad601457ecfc9555aff7f7ff5284440317
2011-01-21 15:48:45 -08:00
Patrick Dubroy 2313eff05b Allow previous view hierarchy to be GC'ed more quickly on rotation
Change-Id: I76215a48e76234501b7ce253dedfa449502ab88f
2011-01-14 14:50:47 -08:00
Winson Chung 68846fdce6 Initial changes to allow resolution of arbitrary clip data to widgets that support them.
Change-Id: Id5dfa8436a5bf6eb7bd300ec603911a9d3698de3
2010-11-03 19:48:17 -07:00
Michael Jurka c9a961952d Using hdpi icons in Launcher
Known issue: Default activity icon is still showing up as small
2010-11-01 23:06:54 -07:00
Joe Onorato e9ad59eba6 When the locale changes, flush the all apps list.
Bug: 3032131
Change-Id: I47659a459044fdace0a3480d216b168c18f2de37
2010-10-29 17:35:36 -07:00
Winson Chung 55cef262f9 Adding initial support for dropping widgets with custom configuration data.
Change-Id: I4a7ba51783b27e544e9a21882bc7cd582b3b43e0
2010-10-28 16:08:46 -07:00
Winson Chung a9abd0e0bd Initial changes to allow dragging external shortcuts to launcher using the same InstallShortcut intent.
Change-Id: I21b57115429ed37d604084ae01308d1d3f33ee7e
2010-10-27 18:35:04 -07:00
Joe Onorato ef2efcff5e When the launcher is paused and we reload stuff in the background, we need to re-re-load it in onResume.
Otherwise we can load widgets and other resources from the wrong Configuration.
This doesn't completely fix the bug, but it makes it much less likely.  We tell
the launcher once at the beginning of starting a reload because of SD cards coming
back, and once when we bind.

cherry pick of I99ee6af38bef91e261832bad4dec978a5d4a8b3d

Bug: 3126698
Change-Id: I917bdb3982e3eea4924c6e9a8f3c037fd493f415
2010-10-27 13:21:00 -07:00
Brad Fitzpatrick 76275ac1c5 resolved conflicts for merge of 700889f5 to master
Change-Id: I85320de6483e6820fe27b4012bfc323ccafa0e04
2010-10-12 13:52:44 -07:00
Brad Fitzpatrick adb4229c23 am 02e53429: Merge "Don\'t block the UI when rearranging icons." into gingerbread
Merge commit '02e53429c4ef01bee548e0eaba4aeeee99db35f4'

* commit '02e53429c4ef01bee548e0eaba4aeeee99db35f4':
  Don't block the UI when rearranging icons.
2010-10-11 17:43:21 -07:00
Brad Fitzpatrick 700889f504 Serialize background async db updates
Bug: 2983765
Change-Id: I1fdd33ea8ee4fbc79a75ce0450f04d8e18915975
2010-10-11 10:10:40 -07:00
Brad Fitzpatrick ade2f8122f Don't block the UI when rearranging icons.
The pause is mostly notable when a sync is happening at the same time.

The related function addItemToDatabase() is unchanged by this CL
though as it populates item.id and would need more invasive changes
elsewhere.

Change-Id: I6538445aeb15d9efedf99f262c39f6175f7f1e0e
2010-10-10 15:42:06 -07:00
Joe Onorato 5eb7fff487 am 673aefe8: Merge "When the SD card comes back, we need to show the apps on it." into gingerbread
Merge commit '673aefe8b2b27790d704cc15282c8989a132877b'

* commit '673aefe8b2b27790d704cc15282c8989a132877b':
  When the SD card comes back, we need to show the apps on it.
2010-10-10 11:26:02 -07:00
Joe Onorato cec583352c When the SD card comes back, we need to show the apps on it.
The problem was that we were doing startLoader, but once the
apps are loaded, all that does is re-bind everything.  Before
a recent change of mine, we were clearing mWorkspaceLoaded and
mAllAppsLoaded.  But that's not good either, because it meant
that there needed to be a lock that the main thread and the
worker thread were both acquiring, which was causing ANRs.

Instead, now we schedule two messages - one to add the apps
back into the list, and one to update everything to use
those new icons.

Bug: 3065061
Change-Id: If9d36d4b55a7ba72fcf48a5ed8941bb9466bebe6
2010-10-07 14:37:40 -04:00
Joe Onorato a249304572 am d98979b8: Merge "Reload everything when coming back from the SD being unmounted." into gingerbread
Merge commit 'd98979b8147065878719cd2adb039317ba3abe0a'

* commit 'd98979b8147065878719cd2adb039317ba3abe0a':
  Reload everything when coming back from the SD being unmounted.
2010-09-30 19:46:29 -07:00
Joe Onorato 789065d26e Reload everything when coming back from the SD being unmounted.
We could do this more efficiently by only updating the packages that
have changed, but that would involve a big rewrite.

Bug: 3020854
Change-Id: Ie7e3bee20f45dc5efa93d960902e9dfb79c4a3a5
2010-09-30 16:32:11 -07:00
Michael Jurka 845ba3b17b Fix: crash on portrait/landscape switch due to
duplicate View ids

Change-Id: I69d09823d4825dadd7f3e119f9248140256f91b3
2010-09-30 10:54:28 -07:00
Michael Jurka 0280c3be4d Adding support for drag and drop of folders and shortcuts.
also:
- Long press on empty space on workspace now brings up customization tray
- Fixed: while dragging, items appeared to be dropping on folders two cells to the right
- Fixed: Disabling drops on folders when the workspace is shrunken
- Fixed: account for scaling of dragged items when checking if they overlap
          with shrunken workspace screens
- Making folder icons dimmable to match shortcuts and widgets
- When deciding with shrunken workspace screen we're dragging to, we now use the closest screen rather than the one that has been overlapped the most
- Refactored drag/add mechanism, removing array of occupied cells from CellInfo
- Removed dead code/variables
2010-09-24 15:28:20 -07:00
Brad Fitzpatrick 98cf129f80 am 73013bf9: Make LauncherModel.deleteItemFromDatabase write to disk async.
Merge commit '73013bf94f49ffbacba2b8300f6a2dd4eeebbd13'

* commit '73013bf94f49ffbacba2b8300f6a2dd4eeebbd13':
  Make LauncherModel.deleteItemFromDatabase write to disk async.
2010-09-15 12:17:49 -07:00
Brad Fitzpatrick 73013bf94f Make LauncherModel.deleteItemFromDatabase write to disk async.
Fixes a bunch of StrictMode violations and removes TODOs.

Change-Id: I886bd071d4a8336c228d29c517a8ffc5223c0623
2010-09-14 12:33:35 -07:00
Joe Onorato ddc9c1fb1a DO NOT MERGE - Fix 2941495: Launcher short-cut icons don't work for apps on SD card after reboot
Bug: 2941495
Change-Id: Ie8e0e0c62259f8cf933e53b7aa2dc28a835110ae
2010-09-01 12:15:10 -07:00
Joe Onorato f5ed4f1141 DO NOT MERGE - Fix 2941495: Launcher short-cut icons don't work for apps on SD card after reboot
Bug: 2941495
Change-Id: Idf1869d33cd5c01abea5b059ca466529cee0ad93
2010-08-31 12:02:24 -07:00
Winson Chung 80baf5a6b3 Adding paging for the widget/shortcut/folder customization area and fixing bugs.
Adding pages for customization drawer with initial implementation of proposed flow
layout for widgets.  Fixes for keeping all apps, and widgets in sync with Launcher
Model, optimizations for reloading all apps pages when invalidating.  Adding some
animations for tab transitions and feedback when long pressing to add certain items.

Change-Id: I8d51749f3a91c964bed35681f3a9192200b0d93e
2010-08-16 15:51:43 -07:00
Adam Cohen d22015cd37 Cleaning up grid size specification in Launcher
This commit eliminates the notion of in-place rotations and a bunch of
associated complexities (including the notion of canonical coordinates).
Further, the number of x and y cells per workspace screen is now being stored
in a single location in the XML definition of Workspace. This fixes a couple
bugs where incorrect values were being used. Finally, eliminated the notion of
"shortAxis" and "longAxis" in terms of padding and cell count. These have been
translated to corresponding x and y axis values.

Change-Id: I30cfed66f82d739355b3f01730b28b6c0437989c
2010-08-04 11:03:47 -07:00