Commit Graph

3846 Commits

Author SHA1 Message Date
Winson Chung 78564d4e2d Updating ComponentKey for compatibility with build.
Change-Id: I293177c0eff8c162c2d21bfc2aebf83926c62690
2015-06-18 21:05:55 +00:00
Hyunyoung Song 0c979d1f2f Catch TransactionTooLargeException when loading widget provider list
b/19904873

Change-Id: Ic0d13ee7513731706bc0f9fde8502acba0899cb3
Note: fix for almonte will be separate due to diff btw the branches..
(cherry picked from commit 3abd5488cc)
2015-06-09 19:06:29 +00:00
Hyunyoung Song a14cb230da Merge "Guard against monkey actor test NPE inside FocusHelper b/19626762" into ub-launcher3-almonte 2015-05-28 21:49:43 +00:00
Hyunyoung Song 89aeda1b78 Guard against monkey actor test NPE inside FocusHelper
b/19626762

Change-Id: Icaff5931f4076323855f23e7165b0e78a11241b6
2015-05-28 14:45:59 -07:00
Adam Cohen c3d4553d46 [DO NOT MERGE] Use custom slide-up animation on LMP MR1 instead of system default
issue 21402755

Change-Id: I87ddef08e7b3134c791f769fc279e62d520cd18c
2015-05-22 16:19:42 -07:00
Sunny Goyal a6095969bb Preventing NullPointerException when cancelling a shortcut addition
Bug: 21024018
Change-Id: Iac09d9e4f1411aa9fe1ec89fbfe749b009c7d457
(cherry picked from commit f044bb1edd)
2015-05-13 01:07:17 +00:00
Hyunyoung Song 3af56b6052 Remove duplicate calls to getSortedWidgetsAndShortcuts
b/19904873

Change-Id: I2e56bc0c7524caa2ef3c5fb00f35cb032cd1860b
2015-04-20 21:22:46 -07:00
Adam Cohen 68fdeaadc6 Stop using custom activity transition, rely on system default in these cases
-> workaround for platform issue related to this resource, but also
   a decent code cleanup

issue 20006693

Change-Id: Iea3a2fb14be5ed78d882ddf9d970b12d177f4249
2015-04-02 11:53:48 -07: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 b823ae4fca Avoid casting AppWidgetProviderInfo to LauncherAppWidgetProviderInfo upon unparcel
issue 19904413

Change-Id: Ie1b4a2b1331f6a707f8590cd0396138a20946658
2015-03-27 18:09:01 -07: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
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
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
Sunny Goyal c6c8fef3e9 Clearing DB if necessary, when applying the default layout
Bug: 19574498
Change-Id: I34850d9a7f7316bcc2cb9fc8a5be57d2488c16a6
2015-03-04 15:20:24 -08:00
Sunny Goyal e72f3d53f8 Fixing wronk rowID check.
Since screenId is changed to primary key, the rowId can now be 0 (earlier
it was auto-increment and never 0)

Bug: 19566734
Change-Id: Icf0e4294a581039101df1ad1756fdb6e581c4cba
2015-03-02 14:26:31 -08:00
Sunny Goyal 633325c4c2 DO NOT MERGE: Setting workspace id as primary key
Bug: 19475231
Change-Id: I0385e97868db73dafe148ce45af7dda4555ee593
2015-02-25 16:56:54 -08: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
Sunny Goyal fce720f39a Merge "Fixing crash when dragging and dropping a restored widget." into ub-launcher3-almonte 2015-02-17 20:34:56 +00:00
Sunny Goyal 2434d40ef2 Fixing crash when dragging and dropping a restored widget.
> When the widget is in pending state, AppWidgetProviderInfo is not available

Bug: 19364311
Change-Id: If3126a375853e6e710c6eba4b8824e18f3f0d391
2015-02-17 12:00:30 -08: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 c87775d8e6 Fixing rank migration code to handle null values correctly.
Bug: 19297508
Change-Id: I652ef30ab37f5b09204f0388de8e065d64b7724d
2015-02-10 19:53:41 -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 bd4a78937f Merge "Revert "Adding Launcher3 callbacks for trimming memory."" into ub-launcher3-almonte 2015-02-06 23:29:32 +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 acbe9f6546 Merge "Adding Launcher3 callbacks for trimming memory." into ub-launcher3-almonte 2015-02-04 18:38:31 +00:00
Sunny Goyal 4802b4107a Adding null-check before parsing an intent
Bug: 18962665
Change-Id: Iae02435f019fa205f3ee3ae721a29f26b3b56dd2
2015-02-04 10:05:47 -08: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
Adam Cohen b76c165aad Fix ClassCastException due to typo
issue 19159790

Change-Id: I5f9fa0e3672c10a460606dcb13b158bd4e614813
2015-01-30 10:29:26 -08:00
Nilesh Agrawal a258f812fa Modify strict mode thread policy for LauncherProvider.
Allowing thread writes too as SQLiteOpenHelper.getWritableDatabase needs it.

Bug: 19094644
Change-Id: I39fe97a9e7fc07c38a4f8e5c5979196b742e36bf
2015-01-26 14:07:29 -08:00
Sunny Goyal b564efb024 Adding support for <include> tag in AutoInstall layout
Bug: 19121893
Change-Id: I760fa76d6e63c1aa0152e8cd710aba0d6ef4462a
2015-01-23 13:53:38 -08:00
Nilesh Agrawal fde11852cf Add strict mode exception in LauncherProvider.
Content providers are created during process startup (before Application.onCreate),
and we should not be doing expensive stuff in Provider.onCreate

Adding an exception for now as it looks like LauncherProvider initialization is needed
before we can show meaningful UI.

Bug: 19094644
Change-Id: I860c2934c110d3a43f1a3afa00729077dc64796c
2015-01-21 11:50:57 -08:00
Sunny Goyal 54cdef77db Merge "Adding accessibility controls" into ub-launcher3-almonte 2015-01-17 01:58:01 +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 c0ee675f69 Avoiding writing the Metadata in the backup if nothing was changed in the backup
Change-Id: I4608ab5511b01f0d0018596d68e4341635649f73
2015-01-16 14:11:12 -08:00
Sunny Goyal 08f7261d11 Adding a rank column for itemInfo
> Rank is used to determine position of an item
in a folder.

Bug: 18590192
Change-Id: I2826a7c570b4cc58e719d685f17a24ec6133804f
2015-01-13 22:19:56 +00:00
Sunny Goyal e87e6abc36 Removing dead code from Launcher provider
> Removing DB upgrade logic for versions before 12. Launcher3
was forked off Launcher2 when DB version was already 12, so, there
can never be a lower version of the DB.
> Removing logic for auto import of launcher2 DB. This flow had
been permanently disabled by a flag, and we show a confirmation
prompt/cling before migration

Change-Id: I2ac2f21fefc41ee247164566a088927263b09459
2015-01-05 12:48:11 -08:00
Brian Parfett 1bc1ae6714 Updating version codes from L to LOLLIPOP
This is required so Launcher3 can compile within IntelliJ.

Change-Id: I99a98a6d2326a8f8b0f0320430de9b555ea430c6
Bugs: b/18720914
2014-12-12 12:30:00 -08:00
Adam Cohen 30914ad14d Merge "Supporting custom widgets provided by launcher" into ub-now-master 2014-12-06 00:22:43 +00: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 396628876d am 02509457: Avoid db exception on L and above
* commit '0250945759f7ac58aab912448d62dc108b1770c5':
  Avoid db exception on L and above
2014-12-04 18:43:49 +00:00
Adam Cohen 0250945759 Avoid db exception on L and above
Bug 18554839

Change-Id: I43f391b7cc376f697ce7b5b363e8be3aa85814b5
2014-12-04 10:35:52 -08:00
Sunny Goyal ded38dfd28 am f2048779: Fixing wrong package check when adding shortcuts
* commit 'f2048779990bfd3c20b52149f5e8ab208bf2502a':
  Fixing wrong package check when adding shortcuts
2014-12-04 15:15:44 +00:00
Sunny Goyal f204877999 Fixing wrong package check when adding shortcuts
Bug: 18571789,18535867
Change-Id: I2544fa634879846d812b00f8649520400f66d29e
2014-12-03 22:32:46 +05:30
Adam Cohen 4a5898753b am 5c18b80e: Ensure that FirstFrameAnimatorHelper doesn\'t set play time when animation is complete
* commit '5c18b80ed9aaa57b27b56667e3699fd76bcce8ed':
  Ensure that FirstFrameAnimatorHelper doesn't set play time when animation is complete
2014-12-02 23:55:48 +00:00
Adam Cohen 5c18b80ed9 Ensure that FirstFrameAnimatorHelper doesn't set play time when animation is complete
Bug: 18567716

Change-Id: I656e869b8553d650916c2abe6dc83282c8b6fd65
2014-12-02 15:40:19 -08:00
Winson Chung 653af821ea am 1c96028f: Merge "Ignoring specific db exception to workaround Bug. 18554839." into ub-now-queens
* commit '1c96028f414f904b90c1a180a537021a6a3eceff':
  Ignoring specific db exception to workaround Bug. 18554839.
2014-12-02 00:35:51 +00:00
Winson Chung 1c96028f41 Merge "Ignoring specific db exception to workaround Bug. 18554839." into ub-now-queens 2014-12-02 00:30:46 +00:00
Winson Chung 5f05913f71 Ignoring specific db exception to workaround Bug. 18554839.
Change-Id: I80f2dd62297eea671f2d129ae22263e72e506ae4
2014-12-01 15:06:47 -08:00
Chris Wren c080912591 am b02e611d: Don\'t try to create an app state instance during restore.
* commit 'b02e611d15bd6fbb05814adaa804dd68181c556c':
  Don't try to create an app state instance during restore.
2014-11-25 15:12:13 +00:00
Chris Wren b02e611d15 Don't try to create an app state instance during restore.
Added a static utility function to get the DeviceProfile instead.

Bug: 18504164
Change-Id: Ia510a84f1c195e58acf3bf4d1f6a42c739fdd413
2014-11-24 16:57:54 -05:00