Commit Graph

417 Commits

Author SHA1 Message Date
Sunny Goyal 22235bcb40 Reinflating QBS on resume, if the widget orientation is not same as launcher orientation
Bug: 20044969
Change-Id: I5c285ddb09fc8b5d8444795eda64cd28486ab81d
2015-04-03 09:26:48 -07:00
Sunny Goyal 1d4a2df091 Removing ContentObserver from LauncherModel, and calling reload
whereever necessary

Change-Id: Ia4a8abdfe2be9703f3217a60527d3a1220b33bdc
2015-04-01 10:20:18 -07:00
Robert Kozikowski 7db312f37b am 67c30861: Adding Launcher3 callbacks for trimming memory.
* commit '67c3086163593db47e57b8cf4fcb034334374000':
  Adding Launcher3 callbacks for trimming memory.
2015-03-30 23:10:00 +00:00
Robert Kozikowski 67c3086163 Adding Launcher3 callbacks for trimming memory.
It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .

Plan after this CL:
- Generate drop CL with launcher3_drop.sh. Add empty metods to
 make code compile.
- Sync the cl/83222937 and hide the code behind the feature flag.

It was previously submitted in ag/628070 and reverted in ag/630423
due to GSA release schedule.

Change-Id: I56eee618b86d518d0afc362b6cf44c3bbec1f19c
2015-03-30 23:57:46 +01:00
Adam Cohen b272ca83f0 am b823ae4f: Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
* commit 'b823ae4fca345e051831732ff2760023ef6ec2c4':
  Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
2015-03-28 22:12:01 +00:00
Adam Cohen b823ae4fca Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
issue 19904413

Change-Id: Ie1b4a2b1331f6a707f8590cd0396138a20946658
2015-03-27 18:09:01 -07:00
Adam Cohen 5f2a098ef3 am 173f711e: Ensure that we capture all paths for starting activity for result
* commit '173f711e03dfce70d76c3b45f764a4f6b682a3b3':
  Ensure that we capture all paths for starting activity for result
2015-03-27 23:18:30 +00:00
Adam Cohen 173f711e03 Ensure that we capture all paths for starting activity for result
-> AppWidgetManagerCompatVL uses an IntentSender to launch the widget
   config activity (to handle the case of cross profile config activities)
-> Launcher was not overriding this method, and so not capturing the fact
   that we are waiting for a result.

issue 19723510

Change-Id: If5751e6d23d31c9f7b3b85f9464a93f935487cec
2015-03-27 22:19:38 +00:00
Winson Chung 3d9490ab95 Removing more code with API 21 dependencies.
Change-Id: I16c914334ce0694b84626269ae4bb5e83082c739
2015-03-24 18:02:01 -07:00
Sunny Goyal 6a1e95a3df Removing all dependencies of launcher code on wallpaper-picker
> WallpaperPicker can still depend on launcher code, but not the
other way round.

Change-Id: I93a07f985c3955c638a68a5fad9c09b184a879b9
2015-03-20 18:16:58 -07:00
Adam Cohen 091440a9cb Reducing method count by eliminating synthetic accessors
Elimates 304 methods based on dex analysis

The java compiler generates sythetic accessor methods for all private
fields, methods and contructors accessed from inner classes. By marking them
package-private and @Thunk instead, sythentic accessor methods are no
longer needeed. These annotated elements should be treated as private.

Change-Id: Id0dc2c92733474250d8ff12fa793d3a8adeb1f26
2015-03-20 11:15:54 -07:00
Robin Lee 26ace12135 Don't clobber widgets with the same component.
By not storing them in a HashMap keyed against ComponentName (which is
almost guaranteed to conflict with other widgets when managed profiles
are in play).

Bug: 19444068
Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
2015-03-19 21:23:13 +00:00
Robin Lee 2dd9f018ff Don't clobber widgets with the same component - DO NOT MERGE
By not storing them in a HashMap keyed against ComponentName (which is
almost guaranteed to conflict with other widgets when managed profiles
are in play).

Bug: 19444068
Change-Id: I6ffce78e8aaf265196239670404cbdaff9fa09be
2015-03-19 21:16:34 +00:00
Adam Cohen b0df1b0e1a Make sure we set the QSB bar on the SearchDropTargetBar
Change-Id: If106bae15b3d628d6385711bcb8059acd17d6147
2015-03-18 22:22:03 -07:00
Hyunyoung Song fe1dcbf0c5 Fix widget refresh issue on package install/uninstall
Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java

b/19658229

Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
2015-03-11 17:40:23 -07:00
Hyunyoung Song 70a48befe4 Fix widget refresh issue on package install/uninstall
Culprit CL: https://googleplex-android-review.git.corp.google.com/#/c/592303/3/src/com/android/launcher3/LauncherModel.java

b/19658229

Change-Id: I02b0b2a0ed9bc3200bbe1edcb251cf0efe939e53
2015-03-11 16:36:52 -07:00
Winson Chung b745afbdd7 Initial changes to break out AllApps into its own view.
- Moves launcher state-transition code into its own class
- Moves all-apps related code into a separate view/set of classes
- Implements a basic list view for all apps

Change-Id: I68f174aa9e1bf82c4e46ce9549c78a8dc4623f46
2015-03-10 18:14:22 -07:00
Sunny Goyal 434e667b5b Merge "Ensuring setQsbSearchBar is called whenever the QSB is created" into ub-launcher3-burnaby 2015-03-10 21:02:46 +00:00
Adam Cohen ec3682b564 Merge "Enabling accessible drag and drop" into ub-launcher3-burnaby 2015-03-09 19:47:33 +00:00
Adam Cohen c9735cff2e Enabling accessible drag and drop
-> Using the context menu, and a new two stage system, this allows
   users to curate icons and widgets on the workspace
-> Move icons / widgets to any empty cell on any existing screen, or
   create a new screen (appended to the right, as with regular drag
   and drop)
-> Move icons into existing folders
-> Create folders by moving an icon onto another icon
-> Also added confirmations for these and some existing accessibility actions

Limitations:
-> Currently, no support for drag and drop in folders
-> Considering moving the drag view so it doesn't occlude any
   content (in particular, when user changes pages)
-> In this mode, accessibility framework seems to have
   problems with the next / prev operations

Bug: 18482913

Change-Id: I19b0be9dc8bfa766d430408c8ad9303c716b89b2
2015-03-09 11:29:28 -07:00
Sunny Goyal 64b3fcc9f7 Ensuring setQsbSearchBar is called whenever the QSB is created
> On launcher3 when the QSB is created for the first time after a
widget drop, it is not set in searchDropTarget and as a result
the "Remove" and "App Info" drop targets are not visible until
Launcher3 restarts and rebinds QSB

Change-Id: I599a9a18cc5d46af790b3145dae2eb385b32b20e
2015-03-04 13:59:21 -08:00
Sunny Goyal 9282059e44 Fixing wrong check to determine the drag source
> target it the drop target, i.e., the InfoDropTarget or DeleteDropTarget

Change-Id: If4a9f8eb72ee6afb4d80c7df6f0f2ada4bc35b22
2015-03-02 15:39:01 -08:00
Sunny Goyal 5b437d8957 Merge "Removed disableAllApps flag" into ub-launcher3-burnaby 2015-03-02 19:33:35 +00:00
Sunny Goyal c9acdd51c4 Removed disableAllApps flag
Change-Id: I50ba511b8493bca2506ab6010f141c093bfa7499
2015-02-26 12:35:09 -08:00
Sunny Goyal 4fbc3828c5 Updating IconCache to maintain a persistent of icons
> IconDB maintains a DB of icons keyed on ComponentName + User
> During loader, icons & labels are loaded first from the DB, and
if the entry doesn't exist, loaded using packageManager
> After the loader completes, IconDB updates any entry which might have
changed, while the launcher was dead.

Change-Id: I7a6021cb6d1ca1e66fa5a0bdd21e1543e0cf66fc
2015-02-26 19:08:44 +00:00
Sunny Goyal 7470c817e4 Using SCREEN_ORIENTATION_LOCKED for locking to current orientation.
Bug: 17298128
Change-Id: If64b6957a594bcc48f6454689d11cd63d31b9239
(cherry picked from commit 3c1865ad50)
2015-02-23 17:55:46 +00:00
Adam Cohen c018c4db08 Merge "Revert "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget"" into ub-launcher3-master 2015-02-20 16:39:42 +00:00
Adam Cohen eb8e282a77 Revert "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget"
This reverts commit 87cf88393c.

Change-Id: Ie15c71f76c71dfb6b85aefcc10cd66eb49bea6dc
2015-02-20 16:38:48 +00:00
Adam Cohen ae52d72ccc Merge "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget" into ub-launcher3-master 2015-02-19 01:35:21 +00:00
Adam Cohen 87cf88393c Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget
Bug 17334589

Change-Id: I0e14381cfc19822451e68eb7f070d94525e126c3
2015-02-18 17:30:15 -08:00
Chet Haase a8f996d039 Add clip-reveal animation to Launcher
ClipReveal animation was recently added to the platform. This
makes that animation the default launch animation when running on
that version of the platform.

Issue #19362772 Better material launch animations

Change-Id: I077659c14dc426be465d163bea6ba0fa93a637c5
2015-02-17 14:36:20 -08:00
Adam Cohen 97079bc7d5 am 80e6beb4: Ensure that layers are properly removed after animation
* commit '80e6beb48ca71a321f667e79fe35a7ab2fb4c2bf':
  Ensure that layers are properly removed after animation
2015-02-14 01:05:58 +00:00
Adam Cohen 80e6beb48c Ensure that layers are properly removed after animation
Bug 19243980

Change-Id: Ic1d54f92051f7d937878898cae210ec18ecbaff8
2015-02-13 16:39:10 -08:00
Sunny Goyal 14334bda03 Merge "Removing code for the unused 'upgrade path'" into ub-launcher3-master 2015-02-12 18:23:28 +00:00
Sunny Goyal 66cfdc2549 Removing code for the unused 'upgrade path'
Change-Id: Ib9eca92284b0eabbe36ffaaf26c62a6ce3cfd3e9
2015-02-11 11:55:36 -08:00
Sunny Goyal 3c1865ad50 Using SCREEN_ORIENTATION_LOCKED for locking to current orientation.
Bug: 17298128
Change-Id: If64b6957a594bcc48f6454689d11cd63d31b9239
2015-02-10 14:32:55 -08:00
Sunny Goyal 8f9a787945 Launcher crashes on widget bind permission prompt
Change-Id: If09feb357e1604e5ee1a66305b022674f466833e
(cherry picked from commit e6b63a3d73)
2015-02-06 23:38:45 +00:00
Adam Cohen 762d08eead am bd4a7893: Merge "Revert "Adding Launcher3 callbacks for trimming memory."" into ub-launcher3-almonte
* commit 'bd4a78937ffe2f37386dae4ae8817e33422c1267':
  Revert "Adding Launcher3 callbacks for trimming memory."
2015-02-06 23:34:26 +00:00
Adam Cohen e2d4ee1b21 Revert "Adding Launcher3 callbacks for trimming memory."
This reverts commit 42f3b9e028.

Change-Id: I65a7c893576c0901b231bab9abe6937f99415f1e
2015-02-06 23:28:49 +00:00
Robert Kozikowski 9d083a1c2a am acbe9f65: Merge "Adding Launcher3 callbacks for trimming memory." into ub-launcher3-almonte
* commit 'acbe9f6546455672b2edf51928d4fee4b6e246ba':
  Adding Launcher3 callbacks for trimming memory.
2015-02-04 18:41:44 +00:00
Robert Kozikowski 42f3b9e028 Adding Launcher3 callbacks for trimming memory.
It will help reduce memory footprint of Launcher, when in background.
It is required to help deallocate images, when Google Now Launcher
goes into the background. See cl/83222937/ .

Change-Id: I6d3d4d1f0457c67abcad3ba4516c87abcf666b05
2015-02-04 15:06:54 +00:00
Sunny Goyal d009101232 Removing usage of reflection.
> Updated launcher.java with the new APIs
> Removed unused method in BitmapUtils

Change-Id: I24804d2cd7d9fc45040532e8324672f5ea6fc110
2015-01-20 15:56:23 -08:00
Sunny Goyal 808ba3dd1b Merge "Adding accessibility controls" into ub-launcher3-almonte
automerge: 54cdef7

* commit '54cdef77dbb958a853387957c303e1b872489b00':
  Adding accessibility controls
2015-01-20 19:39:44 +00:00
Sunny Goyal 71b5c0b988 Adding accessibility controls
> Adding 'Remove' option to workspace items
> Adding 'Add to workspace' to all apps and widget list items, which
adds the item to the first available space, giving preference to
the current workspace screen
> Adding 'App info' and 'Uninstall' options to appropriate items

Bug: 18482913
Change-Id: Ifab7423af2d9ba502b5a2771b37bb5436b3df937
2015-01-16 17:40:41 -08:00
Sunny Goyal e6b63a3d73 Launcher crashes on widget bind permission prompt
Change-Id: If09feb357e1604e5ee1a66305b022674f466833e
2015-01-16 16:14:29 -08:00
Adam Cohen 5940042d39 Supporting custom widgets provided by launcher
-> This change provides integration for widgets provided by
   the launcher package which can run arbitrary code.

Change-Id: I6052da5c4afed7ee72e3b44d045b9c46f2d84c42
2014-12-05 16:18:41 -08:00
Adam Cohen c8f4e1bc88 Fix a couple regressions from resetting AppsCustomizeTabHost
Bug 18409435
Bug 18358080

Change-Id: I07a071342b5c5e062ab2bb562b672d93ba0d5c2e
2014-11-19 16:24:12 -08:00
Adam Cohen c7cd2cb28f Add callback which got missed in refactor
Bug 18418855

Change-Id: Ia3a1cec76721bbbc118dd7389b5e960802a64b88
2014-11-17 23:02:52 -08:00
Sunny Goyal 416541cc0e Adding a few null checks.
1) During migration, if launcher2 has deleted user data,
migration oes not happen
  2) If Launcher3 does not has bind widget permission,
QSB would be null.

Bug: 18388507
Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
2014-11-14 12:36:13 -08:00
Sunny Goyal b155bbb375 Merge "Using the default search widget in Launcher3" into ub-now-queens 2014-11-12 18:00:23 +00:00