OSDN Git Service

android-x86/packages-apps-Launcher3.git
8 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 7 Jun 2016 20:42:19 +0000 (13:42 -0700)]
Import translations. DO NOT MERGE

Change-Id: Idd8897ea385ab5190750df3179e21a829d160099
Auto-generated-cl: translation import

8 years agoMerge "Allowing the first screen to expand to the screen edge" into ub-launcher3...
Sunny Goyal [Tue, 7 Jun 2016 17:10:33 +0000 (17:10 +0000)]
Merge "Allowing the first screen to expand to the screen edge" into ub-launcher3-calgary

8 years agoMerge "Removing the SearchDropTarget bar as it no longer contains the QSB" into ub...
Sunny Goyal [Tue, 7 Jun 2016 17:05:19 +0000 (17:05 +0000)]
Merge "Removing the SearchDropTarget bar as it no longer contains the QSB" into ub-launcher3-calgary

8 years agoMerge "Guard all apps pull up work behind the flag" into ub-launcher3-calgary
TreeHugger Robot [Tue, 7 Jun 2016 04:18:24 +0000 (04:18 +0000)]
Merge "Guard all apps pull up work behind the flag" into ub-launcher3-calgary

8 years agoGuard all apps pull up work behind the flag
Hyunyoung Song [Tue, 7 Jun 2016 04:04:36 +0000 (21:04 -0700)]
Guard all apps pull up work behind the flag

b/28917826

Change-Id: Ic001d820bad777d90c6bdcd1a17b6961e38769be

8 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
TreeHugger Robot [Tue, 7 Jun 2016 02:25:28 +0000 (02:25 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

8 years agoAllowing the first screen to expand to the screen edge
Sunny Goyal [Wed, 1 Jun 2016 21:08:21 +0000 (14:08 -0700)]
Allowing the first screen to expand to the screen edge

This allows the QSB to extend all the way to the edge
Change-Id: I43c6e21e44fef7fffe6fb12b7afb95549b68679f

8 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 6 Jun 2016 23:27:25 +0000 (16:27 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ia6c33079c6d94e4e6045fba33317f886cc6d9907
Auto-generated-cl: translation import

8 years agoRemoving the SearchDropTarget bar as it no longer contains the QSB
Sunny Goyal [Thu, 26 May 2016 01:56:41 +0000 (18:56 -0700)]
Removing the SearchDropTarget bar as it no longer contains the QSB

> Renaming it to simply DropTargetBar
> Moving AppInfo to the top bar as well
> The workspace pages will extend to the top edge (minus some padding).
Since the QSB is no longer displayed on top of every page, there is
no reason to reserve the space.
> In spring-loaded mode, the workspace cell layout will scale enough
to make room for the drop target bar at the top

Change-Id: I2baf607310335dd576c9d9fcbb75ab708f47ac03

8 years agoMerge "Pull up all apps interaction First phase implementation: dragging and animatio...
Hyunyoung Song [Mon, 6 Jun 2016 21:20:45 +0000 (21:20 +0000)]
Merge "Pull up all apps interaction First phase implementation: dragging and animation interaction is implemented namely in two classes. ScrollGestureDetector and AllAppsTransitionController." into ub-launcher3-calgary

8 years agoPull up all apps interaction
Hyunyoung Song [Mon, 6 Jun 2016 21:19:02 +0000 (14:19 -0700)]
Pull up all apps interaction
First phase implementation: dragging and animation interaction is implemented
namely in two classes. ScrollGestureDetector and AllAppsTransitionController.

FeatureFlag.LAUNCHER#_ALL_APPS_PULL_UP will be true for only AOSP and
not in the extending builds. This way, we can safely iterate without
turning it on the shipped ready version.
b/28917826

Change-Id: I0501309c0121880ffe0555f82d6ac5a145581bb1

8 years agoFixing memory leak in QSB widget
Sunny Goyal [Fri, 3 Jun 2016 20:37:01 +0000 (13:37 -0700)]
Fixing memory leak in QSB widget

> Instead of recreating the whole fragment, only recreating the views
when reinflating
> Binding the fragment in xml instead of in code

This prevents duplicate fragment binding

Bug: 29120662
Change-Id: I25b942f64d68f25e1358f15d8a919daeebdcff9c

8 years agoMerge "Animate size and position of page indicator when adding/removing page" into...
Tony Wickham [Thu, 2 Jun 2016 18:27:56 +0000 (18:27 +0000)]
Merge "Animate size and position of page indicator when adding/removing page" into ub-launcher3-calgary

8 years agoAnimate size and position of page indicator when adding/removing page
Tony Wickham [Tue, 31 May 2016 23:55:01 +0000 (16:55 -0700)]
Animate size and position of page indicator when adding/removing page

Change-Id: I85f37a4e0aeb8c3fd0bd8da3b90338d0333a84d5

8 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 1 Jun 2016 14:21:12 +0000 (07:21 -0700)]
Import translations. DO NOT MERGE

Change-Id: I98b86e3d83370b4548154c5b290faffa1f05ca5c
Auto-generated-cl: translation import

8 years agoOnly show workspace page indicator when scrolling or in spring-loaded mode.
Tony Wickham [Thu, 26 May 2016 20:00:02 +0000 (13:00 -0700)]
Only show workspace page indicator when scrolling or in spring-loaded mode.

- Stop showing indicator when resuming or ending transitions.
- In spring-loaded mode, prevent page indicator from auto-hiding.

Change-Id: I87070d2d8f46cf491e60380aed5540196f2fbba3

8 years agoDisabling stricty mode checks when launching an activity.
Sunny Goyal [Tue, 31 May 2016 17:44:03 +0000 (10:44 -0700)]
Disabling stricty mode checks when launching an activity.

The default strict mode policy in NYC cause death penalty when
when sharing file URI in intent. This causes launcher to crash
for users who have shortcuts of images and documents on their
homescreen.

Bug: 28853579
Change-Id: If84cd5ff732713aaff5d3164edf428c8b4233ea2

8 years agoMoving the QSB to the workspace grid.
Sunny Goyal [Thu, 26 May 2016 23:05:17 +0000 (16:05 -0700)]
Moving the QSB to the workspace grid.

The QSB will only be resent on the first screen of the workspace
covering the full width of the first row. If will not be movable.
The first screen of the workspace will not be movable.
The searchDropTargetBar no longer contains the QSB (it can be
renamed in aseparate cl).

Refactoring all QSB related logic by moving it to a custom view
inflated only using xml.
Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a

8 years agoMerge "Add feature flag for all apps pull up work." into ub-launcher3-calgary
Hyunyoung Song [Fri, 27 May 2016 19:15:15 +0000 (19:15 +0000)]
Merge "Add feature flag for all apps pull up work." into ub-launcher3-calgary

8 years agoFixing comments
Sunny Goyal [Fri, 27 May 2016 19:11:36 +0000 (12:11 -0700)]
Fixing comments

Change-Id: I412fef8e07d91548beb8a5431d6aa86611237f69

8 years agoAdd feature flag for all apps pull up work.
Hyunyoung Song [Fri, 27 May 2016 19:10:03 +0000 (12:10 -0700)]
Add feature flag for all apps pull up work.

b/28917826

Change-Id: I98b647694b1041ef4061dcd6297b63f11fddc7ea

8 years agoMerge "Adding some UI tests > Launcher app from all-apps > Drag icon to all-apps...
Sunny Goyal [Fri, 27 May 2016 19:00:44 +0000 (19:00 +0000)]
Merge "Adding some UI tests > Launcher app from all-apps > Drag icon to all-apps and launch it > Add widget from widget tray" into ub-launcher3-calgary

8 years agoRefactoring out grid occupancy management in a separate class
Sunny Goyal [Sat, 2 Apr 2016 21:12:34 +0000 (14:12 -0700)]
Refactoring out grid occupancy management in a separate class

Change-Id: I37a830c0f2eb0a0dd4f5fc78fa29127cb18cb3c2

8 years agoMerge "Showing a permission dialog when a restored widget is not yet bound, and launc...
Sunny Goyal [Fri, 27 May 2016 00:44:56 +0000 (00:44 +0000)]
Merge "Showing a permission dialog when a restored widget is not yet bound, and launcher does not has the permission to bind the widget" into ub-launcher3-calgary

8 years agoShowing a permission dialog when a restored widget is not yet bound, and launcher
Sunny Goyal [Fri, 1 Apr 2016 19:04:16 +0000 (12:04 -0700)]
Showing a permission dialog when a restored widget is not yet bound, and launcher
does not has the permission to bind the widget

Change-Id: I51d32b9958f82671b928d559105129261fb8f268

8 years agoAdding some UI tests
Sunny Goyal [Thu, 19 May 2016 19:15:39 +0000 (12:15 -0700)]
Adding some UI tests
> Launcher app from all-apps
> Drag icon to all-apps and launch it
> Add widget from widget tray

Change-Id: I6bd6128a7b560a23a887d1fb40bfcda25b9b02e7

8 years agoMerge "Adding a loading view for widgets list" into ub-launcher3-calgary
Sunny Goyal [Thu, 26 May 2016 23:40:05 +0000 (23:40 +0000)]
Merge "Adding a loading view for widgets list" into ub-launcher3-calgary

8 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
TreeHugger Robot [Thu, 26 May 2016 17:03:46 +0000 (17:03 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

8 years agoUpdate wallpaper API to match NYC change.
Kenny Guy [Wed, 25 May 2016 18:22:14 +0000 (19:22 +0100)]
Update wallpaper API to match NYC change.

Update check for whether setting wallpaper
is allowed for renamed API.

Bug: 28954131
Change-Id: I09ee46167d59d267ba95d136366f78f5735ea9a5

8 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 26 May 2016 01:38:23 +0000 (18:38 -0700)]
Import translations. DO NOT MERGE

Change-Id: I3e46a07d27c7e8578532ec595aae472e67c0764d
Auto-generated-cl: translation import

8 years agoMerge "Storing the widget item views in Widget holder, to avoid looks on every bind...
Sunny Goyal [Wed, 25 May 2016 20:38:51 +0000 (20:38 +0000)]
Merge "Storing the widget item views in Widget holder, to avoid looks on every bind/recycle" into ub-launcher3-calgary

8 years agoMerge "Removing logic for workspace migration from Launcher2" into ub-launcher3-calgary
Sunny Goyal [Wed, 25 May 2016 19:26:18 +0000 (19:26 +0000)]
Merge "Removing logic for workspace migration from Launcher2" into ub-launcher3-calgary

8 years agoMerge "Separating out configs and common manifest entries" into ub-launcher3-calgary
Sunny Goyal [Tue, 24 May 2016 22:19:10 +0000 (22:19 +0000)]
Merge "Separating out configs and common manifest entries" into ub-launcher3-calgary

8 years agoSeparating out configs and common manifest entries
Sunny Goyal [Tue, 24 May 2016 04:40:53 +0000 (21:40 -0700)]
Separating out configs and common manifest entries

This separation allows for easier modification of Launcher3
by derivative projects

Change-Id: Ib3469e9b5d2707daef572050698d792316534d45

8 years agoMerge "Removing some usused resources" into ub-launcher3-calgary
Sunny Goyal [Tue, 24 May 2016 02:37:17 +0000 (02:37 +0000)]
Merge "Removing some usused resources" into ub-launcher3-calgary

8 years agoRemoving logic for workspace migration from Launcher2
Sunny Goyal [Mon, 23 May 2016 22:55:41 +0000 (15:55 -0700)]
Removing logic for workspace migration from Launcher2

Change-Id: I8a121d74862f665c58406f8d5c7eb1263e7ccff3

8 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 23 May 2016 10:15:58 +0000 (03:15 -0700)]
Import translations. DO NOT MERGE

Change-Id: I398e3304ae15e66577c39b53896d46d602a91965
Auto-generated-cl: translation import

8 years agoMerge "Adding android.icu.text.AlphabeticIndex implementation for AlphabeticIndexComp...
Sunny Goyal [Fri, 20 May 2016 21:26:53 +0000 (21:26 +0000)]
Merge "Adding android.icu.text.AlphabeticIndex implementation for AlphabeticIndexCompat as libcore.icu.AlphabeticIndex is no longer available in N" into ub-launcher3-calgary

8 years agoMaking page indicator an abstract class and implementing some common methods.
Sunny Goyal [Fri, 20 May 2016 19:48:10 +0000 (12:48 -0700)]
Making page indicator an abstract class and implementing some common methods.

Change-Id: I06613428c54f1f086090580db8242cf81f7fb128

8 years agoMerge "Preventing unnecessary options update to QSB provider by checking if the optio...
Sunny Goyal [Thu, 19 May 2016 22:54:22 +0000 (22:54 +0000)]
Merge "Preventing unnecessary options update to QSB provider by checking if the options have changed before calling update" into ub-launcher3-calgary

8 years agoMissed one more page indicator null check.
Tony Wickham [Thu, 19 May 2016 19:45:40 +0000 (12:45 -0700)]
Missed one more page indicator null check.

Hopefully this is the last one.

Change-Id: I1af4f7058834fe0ba60ccc8752a6bf0df64be473

8 years agoAdd more null checks for page indicators.
Tony Wickham [Thu, 19 May 2016 18:27:55 +0000 (11:27 -0700)]
Add more null checks for page indicators.

Change-Id: Id86d4827c9079abfb236f956e531f0e29edfc54e

8 years agoStoring the widget item views in Widget holder, to avoid looks on every bind/recycle
Sunny Goyal [Thu, 19 May 2016 16:33:30 +0000 (09:33 -0700)]
Storing the widget item views in Widget holder, to avoid looks on every bind/recycle

Change-Id: Ifad34f419b1b4f2bf97cc4ff533277867598a719

8 years agoAdding a loading view for widgets list
Sunny Goyal [Thu, 19 May 2016 16:16:41 +0000 (09:16 -0700)]
Adding a loading view for widgets list

Bug: 28427096
Change-Id: Icdc5ceed0caa1fafc97452142e4b71aa3026ddf9

8 years agoRemoving some usused resources
Sunny Goyal [Thu, 19 May 2016 02:56:43 +0000 (19:56 -0700)]
Removing some usused resources

Change-Id: Ib11db872270931f956ba7093e472c866a1b0e794

8 years agoUpdating the folder page indicator to be more like the
Sunny Goyal [Wed, 18 May 2016 21:12:02 +0000 (14:12 -0700)]
Updating the folder page indicator to be more like the
framework page indicator (used in quick settings)

The active page is indicated with the accent color. During scroll
the active indicator expands to 2 dots corresponding to the visible pages.

Change-Id: Iaf57836b642cf87e5eed98048ecca7dd8e7643a4

8 years agoAdding android.icu.text.AlphabeticIndex implementation for AlphabeticIndexCompat
Sunny Goyal [Thu, 19 May 2016 00:16:26 +0000 (17:16 -0700)]
Adding android.icu.text.AlphabeticIndex implementation for AlphabeticIndexCompat
as libcore.icu.AlphabeticIndex is no longer available in N

Bug: 28795251
Change-Id: I3b168dfb451c0eac9b64c6559a51d2b1b8c578b9

8 years agoAdd null check to page indicator to prevent crashes in landscape.
Tony Wickham [Wed, 18 May 2016 22:16:40 +0000 (15:16 -0700)]
Add null check to page indicator to prevent crashes in landscape.

Change-Id: I9676c19bcdd9129a8519e96febc779f019bc8a13

8 years agoPreventing unnecessary options update to QSB provider
Sunny Goyal [Fri, 13 May 2016 20:48:44 +0000 (13:48 -0700)]
Preventing unnecessary options update to QSB provider
by checking if the options have changed before calling update

Bug: 28586377
Change-Id: Idf263b7a32ca85f23f728fa29b9c8ac84289052e

8 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
Baligh Uddin [Wed, 18 May 2016 19:06:21 +0000 (19:06 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary

8 years agoFixing build breakage
Sunny Goyal [Wed, 18 May 2016 16:47:50 +0000 (09:47 -0700)]
Fixing build breakage

Change-Id: Ib649bff709f4b6e4f173006d267aafa069c2a8b4

8 years agoRearranging the provider checks to avoid packagemanager lookups
Sunny Goyal [Mon, 16 May 2016 19:41:09 +0000 (12:41 -0700)]
Rearranging the provider checks to avoid packagemanager lookups
whenever launcher starts

Bug: 28737985
Change-Id: I3ce3e2741b3224fa5419d7ceca496e1bb91f065c

8 years agoMerge "Add PageIndicator interface and custom PageIndicatorLine view." into ub-launch...
Tony Wickham [Wed, 18 May 2016 02:09:02 +0000 (02:09 +0000)]
Merge "Add PageIndicator interface and custom PageIndicatorLine view." into ub-launcher3-calgary

8 years agoAdd PageIndicator interface and custom PageIndicatorLine view.
Tony Wickham [Mon, 16 May 2016 16:54:06 +0000 (09:54 -0700)]
Add PageIndicator interface and custom PageIndicatorLine view.

- The current PageIndicator has been renamed to PageIndicatorDots
  and PageIndicatorMarker has been renamed to PageIndicatorDot.
- PageIndicatorDots and PageIndicatorLine implement PageIndicator.
- PageIndicatorLine uses scroll progress and number of pages to
  draw a line of the correct size and position.
- All of these page indicator files are now in a pageindicators package.

Bug: 27227498

Change-Id: I9230d2e0600ce583989bd31d0b0e252b148d15c2

8 years agoMerge "Only show App Info drag target if developer settings are enabled." into ub...
Tony Wickham [Wed, 18 May 2016 01:05:48 +0000 (01:05 +0000)]
Merge "Only show App Info drag target if developer settings are enabled." into ub-launcher3-calgary

8 years agoOnly show App Info drag target if developer settings are enabled.
Tony Wickham [Tue, 17 May 2016 19:19:07 +0000 (12:19 -0700)]
Only show App Info drag target if developer settings are enabled.

Bug: 28794577
Change-Id: Ia515a627a4f94121c47386829c6772bea42e70f1

8 years agoinstead of unbinding items from the loader, unregistering listeners
Sunny Goyal [Tue, 17 May 2016 20:38:54 +0000 (13:38 -0700)]
instead of unbinding items from the loader, unregistering listeners
in activity.onDestroy()

Bug: 28740269
Change-Id: I6bf2ad6aca43970fd10cfbcc113e609c227e07bf

8 years agoMerge "Revert "Wrapping folderLisners with weak reference, and storing it as an array...
Sunny Goyal [Tue, 17 May 2016 21:27:46 +0000 (21:27 +0000)]
Merge "Revert "Wrapping folderLisners with weak reference, and storing it as an array"" into ub-launcher3-calgary

8 years agoRevert "Wrapping folderLisners with weak reference, and storing it as an array"
Sunny Goyal [Tue, 17 May 2016 21:25:48 +0000 (21:25 +0000)]
Revert "Wrapping folderLisners with weak reference, and storing it as an array"

This reverts commit e48644a6cc3024399ee2c9509d42ef6c2770ef61.

Change-Id: I7bd1d09cae42193de228cb58c08526eeaf57ec04

8 years agoMerge "Wrapping folderLisners with weak reference, and storing it as an array" into...
Sunny Goyal [Tue, 17 May 2016 20:29:12 +0000 (20:29 +0000)]
Merge "Wrapping folderLisners with weak reference, and storing it as an array" into ub-launcher3-calgary

8 years agoWrapping folderLisners with weak reference, and storing it as an array
Sunny Goyal [Mon, 16 May 2016 23:16:14 +0000 (16:16 -0700)]
Wrapping folderLisners with weak reference, and storing it as an array

Storing as an array allows the listeners to be overriten on next bind.
These changes remove the need to unbind the item

Bug: 28740269
Change-Id: Ibbe4b760d64784fbe3075d18e2b946b366d631c5

8 years agoOpening the system default wallpaper picker on clicking the wallpaper tile
Sunny Goyal [Tue, 17 May 2016 17:32:43 +0000 (10:32 -0700)]
Opening the system default wallpaper picker on clicking the wallpaper tile

Bug: 28790378
Change-Id: If283b60a0b9563ab8e80d49b0ffa195fc3ffda8a

8 years agoImport translations. DO NOT MERGE
Baligh Uddin [Tue, 17 May 2016 07:22:02 +0000 (00:22 -0700)]
Import translations. DO NOT MERGE

Change-Id: I6ed48cc0d1df572fa6aa007722fd1bb4246cd6c5
Auto-generated-cl: translation import

8 years agoMerge "Removing reference of hostView from LauncherAppWidgetInfo" into ub-launcher3...
Sunny Goyal [Tue, 17 May 2016 02:22:11 +0000 (02:22 +0000)]
Merge "Removing reference of hostView from LauncherAppWidgetInfo" into ub-launcher3-calgary

8 years agoRemoving reference of hostView from LauncherAppWidgetInfo
Sunny Goyal [Mon, 16 May 2016 21:56:02 +0000 (14:56 -0700)]
Removing reference of hostView from LauncherAppWidgetInfo

LauncherAppWidgetInfo is a model item and does not need to reference
a view. Removing this dependency will allow cleaning up the
item unbinding logic

Bug: 28740269
Change-Id: I11fc2e2500b8fe29d157eefe74c70b1decdfd08d

8 years agoOn some "non-standard" devices, load label can cause a security exception due to...
Sunny Goyal [Mon, 16 May 2016 20:05:33 +0000 (20:05 +0000)]
On some "non-standard" devices, load label can cause a security exception due to modified platform code
am: 0d86a8dccf  -s ours

* commit '0d86a8dccf6557587eb3abae1bb3573e2c40c12c':
  On some "non-standard" devices, load label can cause a security exception due to modified platform code

Change-Id: Ic2256db82871f26497f699dd4ded276db63ff0ac

8 years agoOn some "non-standard" devices, load label can cause a security exception
Sunny Goyal [Mon, 16 May 2016 18:57:45 +0000 (11:57 -0700)]
On some "non-standard" devices, load label can cause a security exception
due to modified platform code

Bug: 28243147
Change-Id: Iab899d0cb233e19ebf994f8a3eacba26f840148f

8 years agoMaking the 'Allow rotation' setting dependent on system state
Sunny Goyal [Thu, 12 May 2016 22:36:20 +0000 (15:36 -0700)]
Making the 'Allow rotation' setting dependent on system state

The setting will not be available on a tablet, where rotation is
always enabled. On mobiles, it will be disabled when auto-rotate
is disabled in display settings.
Also removing content provider dependency from settings, as its in the
same process as launcher.

Bug: 28704055
Change-Id: Ibe6b1e67411fb0e4b2e36446710f463e4a3d6883

8 years agoCall onLauncherTransitionPrepare() and End() from pinch.
Tony Wickham [Wed, 6 Apr 2016 01:36:36 +0000 (18:36 -0700)]
Call onLauncherTransitionPrepare() and End() from pinch.

This makes the pinch transition more consistent with other transitions.
One immediate benefit of this is that it updates adjacent overview
panels during pinch, regardless of whether they are completely visible.

Previously the adjacent panels' alphas weren't always reset to 0.
Specifically, if you made a small pinch from workspace, which
canceled and went back to workspace, adjacent pages retained a
slightly visible panel.

Bug: 27676309
Change-Id: I7e79fddec31cd649e0811e4524b9a9a501c627f9

8 years agoUpdate page when scrolling/flinging in free-scroll.
Tony Wickham [Fri, 8 Apr 2016 01:46:44 +0000 (18:46 -0700)]
Update page when scrolling/flinging in free-scroll.

Bug: 28054048
Change-Id: Ic22e7e717c3ead52dd6fb7495c37be3837e11030

8 years agoSimplifying view cluster by using a single int flag instead of 4 booleans
Sunny Goyal [Sun, 3 Apr 2016 22:25:29 +0000 (15:25 -0700)]
Simplifying view cluster by using a single int flag instead of 4 booleans

Also fixing the bug where dirty flgas were never being set to false

Change-Id: Idbb16d07bef5a157502e1652bd1beb33ff39faaa

8 years agoRemoving icon_type column
Sunny Goyal [Thu, 21 Apr 2016 21:30:18 +0000 (14:30 -0700)]
Removing icon_type column
Icon type is not used consistently. It is used initially
during the loader. Afterwards, we save both the icon and resource to the db.
Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available,
always write the bitmap to DB whenever the shortcut is edited.

Change-Id: I0ea5e88f8904bd3250ca669220b3e5d6aeef1bfd

8 years agoMerge "Fixing a crash/ Launcher3 doesn't have predicted apps" into ub-launcher3-calgary
TreeHugger Robot [Wed, 11 May 2016 20:18:58 +0000 (20:18 +0000)]
Merge "Fixing a crash/ Launcher3 doesn't have predicted apps" into ub-launcher3-calgary

8 years agoFixing a crash/ Launcher3 doesn't have predicted apps
Hyunyoung Song [Wed, 11 May 2016 18:26:01 +0000 (11:26 -0700)]
Fixing a crash/ Launcher3 doesn't have predicted apps

Change-Id: Id405e6d077f8b4c3fb399d4a613d6013dca5cddc

8 years agoMerge "Changing minSDK for launcher3 to 21 (Lollipop)" into ub-launcher3-calgary
Sunny Goyal [Wed, 11 May 2016 04:44:38 +0000 (04:44 +0000)]
Merge "Changing minSDK for launcher3 to 21 (Lollipop)" into ub-launcher3-calgary

8 years agoMerge "Send predictedApps rank via user event logging" into ub-launcher3-calgary
Hyunyoung Song [Wed, 11 May 2016 00:06:45 +0000 (00:06 +0000)]
Merge "Send predictedApps rank via user event logging" into ub-launcher3-calgary

8 years agoSend predictedApps rank via user event logging
Hyunyoung Song [Tue, 10 May 2016 23:59:55 +0000 (16:59 -0700)]
Send predictedApps rank via user event logging

Change-Id: Ib492cb77bce0bc57f60bc4b1310df0810b63d0aa

8 years agobuild fix
Sunny Goyal [Tue, 10 May 2016 23:28:26 +0000 (16:28 -0700)]
build fix

Change-Id: Ib31b7b4efa96897e7ea04412a9deae14a432b6c0

8 years agoChanging minSDK for launcher3 to 21 (Lollipop)
Sunny Goyal [Tue, 10 May 2016 22:35:02 +0000 (15:35 -0700)]
Changing minSDK for launcher3 to 21 (Lollipop)

Change-Id: I421a33801886bdcccb43429b571af1ca7c6b9f55

8 years agoAdding full backup handler for launcher3
Sunny Goyal [Thu, 5 May 2016 21:37:05 +0000 (14:37 -0700)]
Adding full backup handler for launcher3

Bug: 28302573

Change-Id: If0889a3b00b88b134b19d7f790159dfafdcdb004

8 years agoMerge "Removing LauncherProvider dependency in DatabaseHeler" into ub-launcher3-calgary
Sunny Goyal [Tue, 10 May 2016 22:11:43 +0000 (22:11 +0000)]
Merge "Removing LauncherProvider dependency in DatabaseHeler" into ub-launcher3-calgary

8 years agoMerge "Widgets tray should preserve scroll position during screen rotation" into...
Hyunyoung Song [Tue, 10 May 2016 20:49:13 +0000 (20:49 +0000)]
Merge "Widgets tray should preserve scroll position during screen rotation" into ub-launcher3-calgary

8 years agoWidgets tray should preserve scroll position during screen rotation
Hyunyoung Song [Tue, 10 May 2016 20:46:13 +0000 (13:46 -0700)]
Widgets tray should preserve scroll position during screen rotation

> This used to work, but when I got rid of preloading which was
handled by linear manager to increase scrolling speed, the save
and restore instance that was being handled by the linear layout
manager created using Launcher context also went away. Hence,
bringing back custom LinearLayoutManager.

Change-Id: Ibccdf80533a5ace06cc6c6932b257c223cbac0ff

8 years agoRemoving LauncherProvider dependency in DatabaseHeler
Sunny Goyal [Tue, 10 May 2016 19:28:59 +0000 (12:28 -0700)]
Removing LauncherProvider dependency in DatabaseHeler

This will allow DatabaseHeler to easily be moved to an independent class

Change-Id: I9a3d5d3380ed0af246d7a01553a492467c3096b0

8 years agoMerge "Using a separate thread for logging" into ub-launcher3-calgary
Sunny Goyal [Tue, 10 May 2016 03:49:28 +0000 (03:49 +0000)]
Merge "Using a separate thread for logging" into ub-launcher3-calgary

8 years agoMerge "Removing some obsolete flags" into ub-launcher3-calgary
Sunny Goyal [Tue, 10 May 2016 03:49:15 +0000 (03:49 +0000)]
Merge "Removing some obsolete flags" into ub-launcher3-calgary

8 years agoUpdating gradle version
Sunny Goyal [Mon, 9 May 2016 23:57:48 +0000 (16:57 -0700)]
Updating gradle version

Change-Id: I4f43a45576118572470703668ff3f495a25f3e3c

8 years agoExtract color for the hotseat.
Tony Wickham [Fri, 1 Apr 2016 23:00:49 +0000 (16:00 -0700)]
Extract color for the hotseat.

- Only considers the bottom fourth of the wallpaper
- Is translucent black or white depending on how dark/light
  the wallpaper is
- Hotseat extends behind the nav bar

Bug: 27230217
Change-Id: Id4ea6ee91b4dd221b4c277d22d5041cab178801d

8 years agoUsing a separate thread for logging
Sunny Goyal [Mon, 9 May 2016 22:33:41 +0000 (15:33 -0700)]
Using a separate thread for logging

Change-Id: I85a900bd70e01a7df2c2d8bd09c82cebdec2d3be

8 years agoRemoving some obsolete flags
Sunny Goyal [Fri, 6 May 2016 20:05:23 +0000 (13:05 -0700)]
Removing some obsolete flags

Change-Id: Id33e28ddd7341d2b494c4b2a294663091afdb157

8 years agoMerge "Adding a utility class for persistant logging." into ub-launcher3-calgary
Sunny Goyal [Mon, 9 May 2016 21:06:04 +0000 (21:06 +0000)]
Merge "Adding a utility class for persistant logging." into ub-launcher3-calgary

8 years agoMerge "Fixing bug where the widget background enters into a focused state if a child...
Sunny Goyal [Mon, 9 May 2016 20:53:39 +0000 (20:53 +0000)]
Merge "Fixing bug where the widget background enters into a focused state if a child calls requestFocus in xml" into ub-launcher3-calgary

8 years agoAdding a utility class for persistant logging.
Sunny Goyal [Fri, 6 May 2016 16:58:34 +0000 (09:58 -0700)]
Adding a utility class for persistant logging.

The logs are kept for at max 48 hours. It uses two log files and switches
between the two based on the day of the year.

Change-Id: I9a99499b3445a62f29f62a5cd13db20b1783bcd3

8 years agoMerge "Add test size annotation." into ub-launcher3-calgary
Hyunyoung Song [Thu, 5 May 2016 21:05:15 +0000 (21:05 +0000)]
Merge "Add test size annotation." into ub-launcher3-calgary

8 years agoMerge "Workaround issue where IME doesn't show up when tapping folder text" into...
Adam Cohen [Thu, 5 May 2016 20:38:06 +0000 (20:38 +0000)]
Merge "Workaround issue where IME doesn't show up when tapping folder text" into ub-launcher3-calgary

8 years agoAdd test size annotation.
Hyunyoung Song [Thu, 5 May 2016 18:46:03 +0000 (11:46 -0700)]
Add test size annotation.

Rational/Background:

@MediumTest: An integration or functional test that validates the
interaction of one or more application modules on a single machine.
(should run under 1 sec: Usually get killed after 5 min)
@LargeTest: A system test, integration test, or end-to-end test that
verifies that a complete application works and accounts for the behavior
of external subsystems.
(Usually get killed after 15 min)

Change-Id: I8b668af3d2ca09c43ad45c6fd72b1d0d80c6b7d3

8 years agoFixing bug where the widget background enters into a focused state
Sunny Goyal [Wed, 4 May 2016 21:03:40 +0000 (14:03 -0700)]
Fixing bug where the widget background enters into a focused state
if a child calls requestFocus in xml

Bug: 28562293
Change-Id: I005e23550184de29fa15eb70ab322615920b8947

8 years agoReturn 1f in Log(Ac/De)celerateInterpolators on a 1f input.
Tony Wickham [Tue, 3 May 2016 23:03:46 +0000 (16:03 -0700)]
Return 1f in Log(Ac/De)celerateInterpolators on a 1f input.

In battery saver mode, animations skip directly to the final values.
For LogDecelerateInterpolator, however, an input of 1f outputs an
interpolated 0.99999994. This meant that the FirstFrameAnimatorHelper
didn't realize that this was the last frame, and messed things up.
Since any interpolator should return 1 on an input of 1, we just
short-circuit in that case for the log interpolators.

Bug: 25666809
Change-Id: I60527e3758cea383fbcf50acb95460a7bd9ab43c
(cherry picked from commit 8dd24099233c8a2e3e94350a23e4880f3aa89c28)

8 years agoWorkaround issue where IME doesn't show up when tapping folder text
Adam Cohen [Tue, 3 May 2016 21:05:37 +0000 (14:05 -0700)]
Workaround issue where IME doesn't show up when tapping folder text

-> Various calls on EditText don't work when calling from
   onFocusChange, post instead

issue 28523980

Change-Id: Ib9972c3c5083450412340f27bdd231605957ae6f

8 years agoMerge "Import translations. DO NOT MERGE" into ub-launcher3-calgary
Baligh Uddin [Tue, 3 May 2016 16:32:46 +0000 (16:32 +0000)]
Merge "Import translations. DO NOT MERGE" into ub-launcher3-calgary