OSDN Git Service

android-x86/packages-apps-Launcher3.git
8 years agoMerge "Preventing crash when there is not enough width to show the pending text"...
Sunny Goyal [Thu, 25 Feb 2016 04:14:06 +0000 (04:14 +0000)]
Merge "Preventing crash when there is not enough width to show the pending text" into ub-launcher3-burnaby-polish

8 years agoMerge "Revert "Disabling som attributes so that dependencies can use compat libraries...
Sunny Goyal [Thu, 25 Feb 2016 00:04:25 +0000 (00:04 +0000)]
Merge "Revert "Disabling som attributes so that dependencies can use compat libraries"" into ub-launcher3-burnaby-polish

8 years agoMerge "Change preloading coefficient for widgets tray to improve jankness on low...
Hyunyoung Song [Wed, 24 Feb 2016 02:28:59 +0000 (02:28 +0000)]
Merge "Change preloading coefficient for widgets tray to improve jankness on low performance devices." into ub-launcher3-burnaby-polish

8 years agoChange preloading coefficient for widgets tray to improve jankness
Hyunyoung Song [Wed, 24 Feb 2016 02:23:54 +0000 (18:23 -0800)]
Change preloading coefficient for widgets tray to improve jankness
on low performance devices.

Change-Id: I6dfe1161bf596792a7fc8b3c5160a4922e177834

8 years agoPreventing crash when there is not enough width to show the pending text
Sunny Goyal [Wed, 24 Feb 2016 00:43:23 +0000 (16:43 -0800)]
Preventing crash when there is not enough width to show the pending text

Bug: 26901856
Change-Id: I03c9631ce224cce76b2c896a5e6ce6b0ee741782

8 years agoRevert "Disabling som attributes so that dependencies can use compat libraries"
Sunny Goyal [Wed, 24 Feb 2016 00:27:08 +0000 (00:27 +0000)]
Revert "Disabling som attributes so that dependencies can use compat libraries"

This reverts commit e1bd986d77afc9426e320b7cce53993086f9d8ba.

Change-Id: I27490d0cb241b2e58ce45998f7f9e9bc8d84993c

8 years agoManual revert due to conflict:
Hyunyoung Song [Tue, 23 Feb 2016 19:36:21 +0000 (11:36 -0800)]
Manual revert due to conflict:

Revert "Load label in bg thread to prevent ANR b/27238970"

This reverts commit b62fd0957607ae54c7bca7ce64eed288a11f0f2f.

Change-Id: Ia751e3414fb24a18bb8bb9ca09dcd93d0e4249f6

8 years agoDisabling som attributes so that dependencies can use compat libraries
Sunny Goyal [Tue, 23 Feb 2016 18:42:29 +0000 (10:42 -0800)]
Disabling som attributes so that dependencies can use compat libraries

Bug: 27101533
Change-Id: I18de77cffbbb234f25fb85dfe0334ed7fe113a74

8 years agoLoad label in bg thread to prevent ANR
Hyunyoung Song [Tue, 23 Feb 2016 00:36:15 +0000 (16:36 -0800)]
Load label in bg thread to prevent ANR
b/27238970

Change-Id: Ic5d77df7d5276cee07861d59427a94fb19691d9c
(cherry picked from commit 72a9953cf463e0e7a8d24903f1692828ffe5b017)

8 years agoWrapping thw widgetList inside a layout, so that it has the same view structure as...
Sunny Goyal [Fri, 19 Feb 2016 17:34:09 +0000 (09:34 -0800)]
Wrapping thw widgetList inside a layout, so that it has the same view structure as allApps

Change-Id: I28b035beb1c7e13101ec20ff671d3cad5f757c0e

8 years agoRemoving LauncherCallbacks control over app search
Sunny Goyal [Thu, 18 Feb 2016 23:31:55 +0000 (15:31 -0800)]
Removing LauncherCallbacks control over app search

Change-Id: Icb199607dea3f169055e44946272aa9f1e758d1d

8 years agoAdding a utility method to iterate over folder contents
Sunny Goyal [Thu, 18 Feb 2016 17:10:19 +0000 (09:10 -0800)]
Adding a utility method to iterate over folder contents

Change-Id: I9f17ade7dc06819587290387b811d828da57b2fb

8 years agoMerge "Setting content bounds in onMeasure as it uses measuredWidth, which might...
Sunny Goyal [Wed, 17 Feb 2016 01:43:08 +0000 (01:43 +0000)]
Merge "Setting content bounds in onMeasure as it uses measuredWidth, which might not be available during onCreate" into ub-launcher3-burnaby-polish

8 years agoSetting content bounds in onMeasure as it uses measuredWidth, which might
Sunny Goyal [Tue, 16 Feb 2016 22:56:33 +0000 (14:56 -0800)]
Setting content bounds in onMeasure as it uses measuredWidth, which might
not be available during onCreate

Also fixing the calculation of allApps column could, which was counting an
additional icon gap

Bug: 27173894
Change-Id: I8be8cccc76d7e7d945cf9383567a3026228b6c86

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 15 Feb 2016 13:46:10 +0000 (05:46 -0800)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Clears the widget resize frame when a directional key is pressed." into ub...
Tony Wickham [Fri, 12 Feb 2016 22:07:26 +0000 (22:07 +0000)]
Merge "Clears the widget resize frame when a directional key is pressed." into ub-launcher3-burnaby-polish

8 years agoClears the widget resize frame when a directional key is pressed.
Tony Wickham [Thu, 11 Feb 2016 00:18:15 +0000 (16:18 -0800)]
Clears the widget resize frame when a directional key is pressed.

Also gives focus to the corresponding widget host view in this case.

Bug: 27130066
Change-Id: I0a564aa7c509450cd1b9cf259c0a009c68ce3e3b

8 years agoFixing crash during rotation
Sunny Goyal [Thu, 11 Feb 2016 18:07:36 +0000 (10:07 -0800)]
Fixing crash during rotation

> Different views with same IDs were saving state
> Fixing scroll getting reset on rotation

Change-Id: Iae42419b83ee5ffa1bb43959f0931c8dfb761f32

8 years agoMerge "Change widget host view background when giving focus to child." into ub-launch...
Tony Wickham [Wed, 10 Feb 2016 23:35:11 +0000 (23:35 +0000)]
Merge "Change widget host view background when giving focus to child." into ub-launcher3-burnaby-polish

8 years agoChange widget host view background when giving focus to child.
Tony Wickham [Wed, 10 Feb 2016 20:15:41 +0000 (12:15 -0800)]
Change widget host view background when giving focus to child.

Before, the FocusIndicatorView stayed on the widget host unless the
widget had its own focus change listener, which caused a couple of
problems, namely  (1) it was hard to know where the focus was from
a user's standpoint, and (2) the focus indicator could get stuck on
the screen if you entered a widget and then long-pressed workspace.
Now, the focus indicator goes away and instead the widget is framed
with a white border to indicate that the focus is inside it. The
frame goes away when pressing ESC or when touching the screen.

Bug: 26744224

Change-Id: I14025576fd7a9f901b4d969b878af0bebad79a70

8 years agoMerge "Merging search bar with all apps" into ub-launcher3-burnaby-polish
Sunny Goyal [Wed, 10 Feb 2016 19:18:12 +0000 (19:18 +0000)]
Merge "Merging search bar with all apps" into ub-launcher3-burnaby-polish

8 years agoWidgetsModel clone method should be called in worker thread
Hyunyoung Song [Mon, 8 Feb 2016 19:31:33 +0000 (11:31 -0800)]
WidgetsModel clone method should be called in worker thread

b/24582368

Change-Id: I7b1d2ccfa7d7ac8235e4aeccc2b6b1a8eeea6461
(cherry picked from commit 747a5bc486a7c8335fc4a481cab1567369570c24)

8 years agoMerging search bar with all apps
Sunny Goyal [Fri, 29 Jan 2016 21:14:14 +0000 (13:14 -0800)]
Merging search bar with all apps

Change-Id: I78577124cd3c05d52669c3e52b0294d6eb1d194d

8 years agoAdd more debugging info when Launcher deletes widget from homescreen.
Hyunyoung Song [Wed, 3 Feb 2016 23:28:47 +0000 (15:28 -0800)]
Add more debugging info when Launcher deletes widget from homescreen.
b/26219491

Change-Id: I5899cafa8d78e5e64a4ec1495ebf62ebc55ea8f5
(cherry picked from commit 70264a971797116dcb16e18551d5c35bb011ed0f)

8 years agoMerge "Updating folder UI when icons are normalized > Increasing padding > Making...
Sunny Goyal [Wed, 3 Feb 2016 19:32:02 +0000 (19:32 +0000)]
Merge "Updating folder UI when icons are normalized   > Increasing padding   > Making the folder label bold and lighter color" into ub-launcher3-burnaby-polish

8 years agoMerge "Fixing Search drop target bar stays visible, until the first time an item...
Sunny Goyal [Mon, 1 Feb 2016 23:08:25 +0000 (23:08 +0000)]
Merge "Fixing Search drop target bar stays visible, until the first time an item is picked up" into ub-launcher3-burnaby-polish

8 years agoMerge "Add extra space for the search bar." into ub-launcher3-burnaby-polish
Tony Wickham [Mon, 1 Feb 2016 22:29:55 +0000 (22:29 +0000)]
Merge "Add extra space for the search bar." into ub-launcher3-burnaby-polish

8 years agoAdd extra space for the search bar.
Tony Wickham [Mon, 1 Feb 2016 22:15:20 +0000 (14:15 -0800)]
Add extra space for the search bar.

Also fixed a broken test.

Change-Id: I1c270e69617528ea30f0e26a2101673e9b9fa63c

8 years agoUpdating folder UI when icons are normalized
Sunny Goyal [Sat, 30 Jan 2016 02:45:18 +0000 (18:45 -0800)]
Updating folder UI when icons are normalized
  > Increasing padding
  > Making the folder label bold and lighter color

Change-Id: Ib86d711c27cd03f366cdd35222d1f63f4a542f06

8 years agoFixing Search drop target bar stays visible, until the first time
Sunny Goyal [Sat, 30 Jan 2016 02:38:34 +0000 (18:38 -0800)]
Fixing Search drop target bar stays visible, until the first time
an item is picked up

Change-Id: I48ac697147ffe7a1f8802ed00de4fa4006a1878e

8 years agoAdding a method to throttle backup manager calls
Sunny Goyal [Fri, 22 Jan 2016 00:41:54 +0000 (16:41 -0800)]
Adding a method to throttle backup manager calls
Notifying backup manager when a boolean preference changes

Bug: 22885775
Change-Id: I105013af1841f6cd87472f558fa490670ed1ba24

8 years agoMerge "Fixing Test builds" into ub-launcher3-burnaby-polish
Sunny Goyal [Fri, 29 Jan 2016 21:18:02 +0000 (21:18 +0000)]
Merge "Fixing Test builds" into ub-launcher3-burnaby-polish

8 years agoMerge "Removing unnecessary new object creation in dispatchDraw" into ub-launcher3...
Sunny Goyal [Thu, 28 Jan 2016 00:30:06 +0000 (00:30 +0000)]
Merge "Removing unnecessary new object creation in dispatchDraw" into ub-launcher3-burnaby-polish

8 years agoFixing Test builds
Sunny Goyal [Fri, 22 Jan 2016 23:19:06 +0000 (15:19 -0800)]
Fixing Test builds

Change-Id: I8524ebc124270feb2e6e69e17ba0e0c6301bce18

8 years agoPreventing a Runtime widget crash from crashing the Launcher
Sunny Goyal [Tue, 26 Jan 2016 01:28:37 +0000 (17:28 -0800)]
Preventing a Runtime widget crash from crashing the Launcher

Bug: 26750103
Change-Id: I31f120bb0c4d64b903b3dd5dae0ae46f95bcdf59

8 years agoRemoving unnecessary new object creation in dispatchDraw
Sunny Goyal [Sat, 23 Jan 2016 22:40:35 +0000 (14:40 -0800)]
Removing unnecessary new object creation in dispatchDraw

dispatchDraw was calling getVisiblePages which in turn calls
getDescendantCoordRelativeToParent and created multiple new abjects

Change-Id: I401fec076183979d30dfdbbdc02a57bd79f3886d

8 years agoFix broken tests.
Tony Wickham [Fri, 22 Jan 2016 22:28:55 +0000 (14:28 -0800)]
Fix broken tests.

- Missing a comma in one of the focus logic test matrices
- Disable QuickAddwidgetTest, because it isn't that useful and is
  flaky by nature.

Change-Id: Ia85fa578ea563ca525419b68ffcf90cfef8f86d0

8 years agoMerge "Removing some obsolete files" into ub-launcher3-burnaby-polish
Sunny Goyal [Tue, 19 Jan 2016 20:54:00 +0000 (20:54 +0000)]
Merge "Removing some obsolete files" into ub-launcher3-burnaby-polish

8 years agoRemoving some obsolete files
Sunny Goyal [Thu, 7 Jan 2016 20:17:38 +0000 (12:17 -0800)]
Removing some obsolete files

Change-Id: I45cc23afcecb67163da99a9b81ace0021f723c9b

8 years agoRemovign 'final' modifiers from FeatureFlags so that then can be overridden
Sunny Goyal [Tue, 19 Jan 2016 18:35:52 +0000 (10:35 -0800)]
Removign 'final' modifiers from FeatureFlags so that then can be overridden

Change-Id: I07265eaeed883301787eb0ffd838f516d7c63d26

8 years agoMerge "Disabling icon normalization" into ub-launcher3-burnaby-polish
Sunny Goyal [Wed, 13 Jan 2016 18:04:19 +0000 (18:04 +0000)]
Merge "Disabling icon normalization" into ub-launcher3-burnaby-polish

8 years agoDisabling icon normalization
Sunny Goyal [Wed, 13 Jan 2016 17:48:17 +0000 (09:48 -0800)]
Disabling icon normalization

Bug: 26537769
Change-Id: Ia1d7127a7c01fe98127e34440d1c003b669eaf75

8 years agoMerge "Fixing icon badging being done on scaled bitmap size" into ub-launcher3-burnab...
Sunny Goyal [Tue, 12 Jan 2016 22:35:16 +0000 (22:35 +0000)]
Merge "Fixing icon badging being done on scaled bitmap size" into ub-launcher3-burnaby-polish

8 years agoFixing custom content screen not aligned properly in landscape
Sunny Goyal [Tue, 12 Jan 2016 18:35:32 +0000 (10:35 -0800)]
Fixing custom content screen not aligned properly in landscape

Bug: 26413100
Change-Id: I1a111c9d2b0dfdfbc3cbd566e5784a1ed2bb6719

8 years agoFixing icon badging being done on scaled bitmap size
Sunny Goyal [Fri, 8 Jan 2016 20:16:15 +0000 (12:16 -0800)]
Fixing icon badging being done on scaled bitmap size

Launcher already scales the bitmap during the icon creaiton. The
badging should be done based on the actual size

Bug: 26345646
Change-Id: I1b1f7ac736322ba10db9083d602eec221b99687a

8 years agoAccessibility delegate is already set in BubbleTextView constructor. Not need to...
Sunny Goyal [Thu, 7 Jan 2016 21:50:08 +0000 (13:50 -0800)]
Accessibility delegate is already set in BubbleTextView constructor. Not need to set it again

Bug: 25948877
Change-Id: I1d301a6169404a78881fa29da6d6bdf2fec8f146

8 years agoRemoving lib proto util
Sunny Goyal [Wed, 6 Jan 2016 23:30:53 +0000 (15:30 -0800)]
Removing lib proto util

Change-Id: Iebe6341a60a5e62bde97b5cca68f8abb93b04d36

8 years agoFixing syntax error
Sunny Goyal [Wed, 6 Jan 2016 23:09:22 +0000 (15:09 -0800)]
Fixing syntax error

Change-Id: I8fbcd34d891b1d020436e9aa430fd26372910a63

8 years ago[DO NOT MERGE] Revert "Fix broken make target launcher_protoutil_lib Bug:26406415"
Hyunyoung Song [Wed, 6 Jan 2016 23:04:46 +0000 (23:04 +0000)]
[DO NOT MERGE] Revert "Fix broken make target launcher_protoutil_lib Bug:26406415"
am: 8363faf9a8  -s ours

* commit '8363faf9a885933aca2ced9bb1c6f9aa4a43c9f7':
  [DO NOT MERGE] Revert "Fix broken make target launcher_protoutil_lib Bug:26406415"

8 years agoMerge "Adding support for negative x and y in layout xml. Fixing default configuratio...
Sunny Goyal [Wed, 6 Jan 2016 22:51:43 +0000 (22:51 +0000)]
Merge "Adding support for negative x and y in layout xml. Fixing default configurations for some screen sizes." into ub-launcher3-burnaby-polish

8 years ago[DO NOT MERGE] Revert "Fix broken make target launcher_protoutil_lib Bug:26406415"
Hyunyoung Song [Wed, 6 Jan 2016 22:39:56 +0000 (22:39 +0000)]
[DO NOT MERGE] Revert "Fix broken make target launcher_protoutil_lib Bug:26406415"

In branch ub-launcher3-burnaby,
libprotobuf-java-2.3.0-nano can be linked, because the protobuf project is tracking lmp tree

In branch ub-launcher3-burnaby-polish,
libprotobuf-java-nano can be linked, because the
protobuf project is tracking master tree.

Hence the original CL should be reverted in ub-launcher3-burnaby tree but should not be merged automatically
to downstream trees.

This reverts commit 4ae00b1b8e853f45770c833085179eb382220d78.

Change-Id: I137756b79e2c12d36408073bdd6cddc773a4f168

8 years agoAdding a .nano prefix in the proto package name
Sunny Goyal [Wed, 6 Jan 2016 22:47:13 +0000 (14:47 -0800)]
Adding a .nano prefix in the proto package name

Change-Id: Ia513089f813567953ca146538f79d21ca5fd8ddf

8 years agoFix broken make target launcher_protoutil_lib Bug:26406415
Hyunyoung Song [Wed, 6 Jan 2016 21:20:56 +0000 (21:20 +0000)]
Fix broken make target launcher_protoutil_lib Bug:26406415
am: 4ae00b1b8e

* commit '4ae00b1b8e853f45770c833085179eb382220d78':
  Fix broken make target launcher_protoutil_lib Bug:26406415

8 years agoFix broken make target launcher_protoutil_lib
Hyunyoung Song [Wed, 6 Jan 2016 21:12:45 +0000 (13:12 -0800)]
Fix broken make target launcher_protoutil_lib
Bug:26406415

Change-Id: If3895b384feb9f2a6294fd76c043420851a37f49

8 years agoRemove unnecessary use of ../.
Ying Wang [Mon, 4 Jan 2016 20:19:01 +0000 (12:19 -0800)]
Remove unnecessary use of ../.

Change-Id: Ie747c305cbf1a6bf42f6c04c5c4d5ec3c6dad990

8 years agoAdding support for negative x and y in layout xml.
Sunny Goyal [Wed, 16 Dec 2015 19:32:54 +0000 (11:32 -0800)]
Adding support for negative x and y in layout xml.
Fixing default configurations for some screen sizes.

> Negative values for x and y are parsed as distance from end
column and row respectively. e.g.  (-1, -2) => (3, 2) in a
4x4 grid

Bug: 26110981
Change-Id: I4ca30e225ed6e2a31610ab23235d2cd10e8d317c

8 years agoMerge "Using SharedPrefenrece.apply instead of commit to prevent disk IO on main...
Sunny Goyal [Fri, 18 Dec 2015 22:38:52 +0000 (22:38 +0000)]
Merge "Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread" into ub-launcher3-burnaby-polish

8 years agoMerge "Preventing launcher crashes due to low disk space." into ub-launcher3-burnaby...
Sunny Goyal [Fri, 18 Dec 2015 22:29:47 +0000 (22:29 +0000)]
Merge "Preventing launcher crashes due to low disk space." into ub-launcher3-burnaby-polish

8 years agoFix item count check in Folder#replaceFolderWithFinalItem()
Tony Wickham [Fri, 18 Dec 2015 21:13:48 +0000 (13:13 -0800)]
Fix item count check in Folder#replaceFolderWithFinalItem()

Instead of checking the item count (number of views), check the number
of items in the model, since that is where the item is being removed.
This way, mInfo.contents.remove(0) will never be out of bounds.

Bug: 25666490
Change-Id: I0eb880b366157bddb5a8c342d538737722b7f0cd

8 years agoFixing some invalid checks and cleaning some redundant conditions
Sunny Goyal [Fri, 18 Dec 2015 07:22:42 +0000 (23:22 -0800)]
Fixing some invalid checks and cleaning some redundant conditions

Change-Id: I770ce2cc2eccbee105958634e81bbc9bc2e4cc48

8 years agoPreventing launcher crashes due to low disk space.
Sunny Goyal [Fri, 18 Dec 2015 01:09:36 +0000 (17:09 -0800)]
Preventing launcher crashes due to low disk space.

In case of low disk space, all write operations to the IconCache are
silently ignored. This will not affect the Launcher behavior and
user will still see the latest icons, but in some cases, icon loading
would appear slow

Bug: 24585352
Change-Id: I85ccc519046fc3708403388bba89e019a3f2ce3d

8 years agoUsing SharedPrefenrece.apply instead of commit to prevent disk IO on main thread
Sunny Goyal [Fri, 18 Dec 2015 06:23:02 +0000 (22:23 -0800)]
Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread

Bug: 25903149
Change-Id: Ib1ee3fd27cca14f147f704aec768a330c4f03b33

8 years agoProtecting Icon normalization behind a feature flag
Sunny Goyal [Thu, 17 Dec 2015 19:24:31 +0000 (11:24 -0800)]
Protecting Icon normalization behind a feature flag

Change-Id: I91b7126765049372a3ffec3ad6f661715dc83bab

8 years agoReverting the cache version change, so that users on release version do not get the...
Sunny Goyal [Wed, 16 Dec 2015 01:12:22 +0000 (17:12 -0800)]
Reverting the cache version change, so that users on release version do not get the cache reset

Change-Id: I61b06ca001e6ae47693e8d6f467565314d66f1b4

8 years agoRestarting launcher when on font scale change
Sunny Goyal [Fri, 11 Dec 2015 17:50:49 +0000 (09:50 -0800)]
Restarting launcher when on font scale change

Chaning the font scale affects the static device profile and may
affect various background threads and static constants. Killing
the process ensures that these states get invalidated properly.

Bug: 26131935
Change-Id: Idc262ee5d158019e7a2505f8fb9a6413c06bfdeb

8 years agoMerge "Fixing All apps not respecting scaled icon size" into ub-launcher3-burnaby...
Sunny Goyal [Fri, 11 Dec 2015 01:49:02 +0000 (01:49 +0000)]
Merge "Fixing All apps not respecting scaled icon size" into ub-launcher3-burnaby-polish

8 years agoMerge "Clearing DB instead of deleting the DB file." into ub-launcher3-burnaby-polish
Sunny Goyal [Fri, 11 Dec 2015 01:37:56 +0000 (01:37 +0000)]
Merge "Clearing DB instead of deleting the DB file." into ub-launcher3-burnaby-polish

8 years agoFixing All apps not respecting scaled icon size
Sunny Goyal [Thu, 10 Dec 2015 20:28:21 +0000 (12:28 -0800)]
Fixing All apps not respecting scaled icon size

Change-Id: I3d05c713939fd69d04f5896cdc5db91480b0d4d1

8 years agoMerge "Verifying the install shortcut intent before casting the extras to various...
Sunny Goyal [Tue, 8 Dec 2015 21:43:10 +0000 (21:43 +0000)]
Merge "Verifying the install shortcut intent before casting the extras to various object types" into ub-launcher3-burnaby-polish

8 years agoRecreating QSB when the widget host gets reset
Sunny Goyal [Tue, 8 Dec 2015 17:28:23 +0000 (09:28 -0800)]
Recreating QSB when the widget host gets reset

Bug: 25073414
Change-Id: Ibdaa2b330ef7989cb7c93d64a05c8f6e5b26594a

8 years agoMerge "Added an instrumentation test case for quickly adding a widget." into ub-launc...
Tony Wickham [Tue, 8 Dec 2015 02:36:54 +0000 (02:36 +0000)]
Merge "Added an instrumentation test case for quickly adding a widget." into ub-launcher3-burnaby-polish

8 years agoMerge "Adding FeatureFlags.java file to aggregate various feature definitions" into...
Sunny Goyal [Tue, 8 Dec 2015 01:44:40 +0000 (01:44 +0000)]
Merge "Adding FeatureFlags.java file to aggregate various feature definitions" into ub-launcher3-burnaby-polish

8 years agoAdding FeatureFlags.java file to aggregate various feature definitions
Sunny Goyal [Mon, 7 Dec 2015 23:00:24 +0000 (15:00 -0800)]
Adding FeatureFlags.java file to aggregate various feature definitions

Change-Id: I52d04ab979329d1afd42fd74ec0a533dd819fd23

8 years agoVerifying the install shortcut intent before casting the extras to various object...
Sunny Goyal [Mon, 7 Dec 2015 22:51:23 +0000 (14:51 -0800)]
Verifying the install shortcut intent before casting the extras to various object types

Bug: 26043109
Change-Id: I95f127d62a6a508a850e11d6728afc7509fb07d1

8 years agoMerge "Add appropriate (tiny) offset to widget drops so they land correctly." into...
Tony Wickham [Fri, 4 Dec 2015 22:14:36 +0000 (22:14 +0000)]
Merge "Add appropriate (tiny) offset to widget drops so they land correctly." into ub-launcher3-burnaby-polish

8 years agoAdded an instrumentation test case for quickly adding a widget.
Tony [Sun, 18 Oct 2015 22:01:32 +0000 (15:01 -0700)]
Added an instrumentation test case for quickly adding a widget.

This would have caught the race condition bugs that caused the "specified child
already has a parent" IllegalStateException (bug 23896857).

Change-Id: I3b408d21113237b0c89a0a7161f504596212bd58

8 years agoMerge "Increase spacing between icons in All Apps on tablets." into ub-launcher3...
Tony Wickham [Fri, 4 Dec 2015 18:30:09 +0000 (18:30 +0000)]
Merge "Increase spacing between icons in All Apps on tablets." into ub-launcher3-burnaby-polish

8 years agoMerge "Normalizing app icons based on the standard icon guidelines" into ub-launcher3...
Sunny Goyal [Fri, 4 Dec 2015 17:56:04 +0000 (17:56 +0000)]
Merge "Normalizing app icons based on the standard icon guidelines" into ub-launcher3-burnaby-polish

8 years agoMerge "Cleanup keyboard code." into ub-launcher3-burnaby-polish
Tony Wickham [Fri, 4 Dec 2015 17:55:33 +0000 (17:55 +0000)]
Merge "Cleanup keyboard code." into ub-launcher3-burnaby-polish

8 years agoCleanup keyboard code.
Tony Wickham [Fri, 4 Dec 2015 17:48:17 +0000 (09:48 -0800)]
Cleanup keyboard code.

This should be the last keyboard CL.
- Fix bug: couldn't focus All Apps button in some cases when the All
Apps column was skipped over. Also added test case for this.
- Stop explicitly passing countX and countY to handleKeyEvent, as
these had to match the matrix dimensions anyways.
- Rename createSparseMatrix() - there were 3 methods of the same name,
but all had different purposes. This is confusing both from a
readability standpoint and also when looking at stack traces.

Change-Id: I08ba8411674fcea43a608856c114dee8dbd22398

8 years agoHide the focus indicator view when going to a fullscreen page.
Tony Wickham [Wed, 18 Nov 2015 18:56:35 +0000 (10:56 -0800)]
Hide the focus indicator view when going to a fullscreen page.

Bug: 25649853
Change-Id: I9f2f221020548b48d816924a1803a1a70d11c412

8 years agoFullscreen pages (e.g. Now) are focusable via keyboard.
Tony Wickham [Sat, 14 Nov 2015 01:32:20 +0000 (17:32 -0800)]
Fullscreen pages (e.g. Now) are focusable via keyboard.

Change-Id: I962551651aeb9ac7b57bb51b195adc3140db30d8

8 years agoMake sure pages are always accessible via left/right arrow keys.
Tony Wickham [Wed, 11 Nov 2015 17:25:38 +0000 (09:25 -0800)]
Make sure pages are always accessible via left/right arrow keys.

- Handle NextPageFirstItem as first focusable item in reading order
- Handle PreviousPageLastItem as last focusable item in reading order
- Check the hotseat after the workspace in both cases above
- Dpad horizontal navigation (left/right) uses these as a last
  resort (Rule3) to guarantee an item takes focus if a page exists

Note that it is necessary to search for a focusable item because
widgets are not yet focusable.

Bug: 25591057
Change-Id: I953648bd76c657d660a38427fdd4108bf9963c23

8 years agoMerge "Add special column for All Apps button in FocusLogic's sparse matrix." into...
Tony Wickham [Thu, 3 Dec 2015 20:41:28 +0000 (20:41 +0000)]
Merge "Add special column for All Apps button in FocusLogic's sparse matrix." into ub-launcher3-burnaby-polish

8 years agoAdd appropriate (tiny) offset to widget drops so they land correctly.
Tony Wickham [Wed, 4 Nov 2015 02:05:01 +0000 (18:05 -0800)]
Add appropriate (tiny) offset to widget drops so they land correctly.

Also removed some unused parameters I found on the way.

Bug: 25191623
Change-Id: Ib9a30db106467c114cc8b54a5b13ed3e88162d56

8 years agoNormalizing app icons based on the standard icon guidelines
Sunny Goyal [Thu, 17 Sep 2015 21:59:10 +0000 (14:59 -0700)]
Normalizing app icons based on the standard icon guidelines

Bug: 18245189
Change-Id: Iaadcddbe3f966733a13b2e1fb60ba09a8b3aef9a

8 years agoMerge "Scaling down the icon before applying the user badge > This also saves memor...
Sunny Goyal [Thu, 3 Dec 2015 03:25:21 +0000 (03:25 +0000)]
Merge "Scaling down the icon before applying the user badge   > This also saves memory only create one new bitmap while loading instead of two" into ub-launcher3-burnaby-polish

8 years agoMerge "Disallow scrolling if workspace is in transition." into ub-launcher3-burnaby...
Tony Wickham [Wed, 2 Dec 2015 23:11:09 +0000 (23:11 +0000)]
Merge "Disallow scrolling if workspace is in transition." into ub-launcher3-burnaby-polish

8 years agoIncrease spacing between icons in All Apps on tablets.
Tony Wickham [Wed, 2 Dec 2015 21:37:07 +0000 (13:37 -0800)]
Increase spacing between icons in All Apps on tablets.

Change-Id: If90332098f749295da07f4faca707a7a6965666b

8 years agoMerge "Keeping the focus indicator on the widget view, while a child is focused"...
Sunny Goyal [Tue, 1 Dec 2015 23:19:11 +0000 (23:19 +0000)]
Merge "Keeping the focus indicator on the widget view, while a child is focused" into ub-launcher3-burnaby-polish

8 years agoAdding margin to Drag layer instead of checking for right insets at every place
Sunny Goyal [Mon, 23 Nov 2015 19:47:50 +0000 (11:47 -0800)]
Adding margin to Drag layer instead of checking for right insets at every place

Bug: 25692432
Change-Id: I853f41a17c54b30b7772b9fd8556d9465de84752

8 years agoKeeping the focus indicator on the widget view, while a child is focused
Sunny Goyal [Tue, 1 Dec 2015 21:21:49 +0000 (13:21 -0800)]
Keeping the focus indicator on the widget view, while a child is focused

Bug: 25199581
Change-Id: Ie08d1438ae0c1b5d4fcaa4d642508c1b9db0f5d4

8 years agoClearing DB instead of deleting the DB file.
Sunny Goyal [Mon, 30 Nov 2015 18:59:35 +0000 (10:59 -0800)]
Clearing DB instead of deleting the DB file.

> Deleting a file/reinitializing the openHelper variable is not thread safe
and can cause the sqlite instance ot go in an invalid state

Change-Id: I54d992c7e3daee82e6dad38d6bfbfcbf8ede506c

8 years agoOnly fetching firstInstallTime for an activity when required
Sunny Goyal [Tue, 24 Nov 2015 18:16:37 +0000 (10:16 -0800)]
Only fetching firstInstallTime for an activity when required

Change-Id: Ia16c05718938849f4250802d8770ddfe6dbef055

8 years agoScaling down the icon before applying the user badge
Sunny Goyal [Mon, 19 Oct 2015 21:03:30 +0000 (14:03 -0700)]
Scaling down the icon before applying the user badge
  > This also saves memory only create one new bitmap while loading instead of two

Bug: 25027252
Change-Id: Ia594dd65a30f32e99404190f649b334615c9e17f

8 years agoMerge "Allowing widgets to be focusable" into ub-launcher3-burnaby-polish
Sunny Goyal [Wed, 25 Nov 2015 18:10:56 +0000 (18:10 +0000)]
Merge "Allowing widgets to be focusable" into ub-launcher3-burnaby-polish

8 years agoMerge "Skip to the end of the folder open animation in battery saver mode." into...
Tony Wickham [Wed, 25 Nov 2015 00:02:12 +0000 (00:02 +0000)]
Merge "Skip to the end of the folder open animation in battery saver mode." into ub-launcher3-burnaby-polish

8 years agoDon't let folder be replaced with final item twice.
Tony Wickham [Tue, 24 Nov 2015 23:34:53 +0000 (15:34 -0800)]
Don't let folder be replaced with final item twice.

Bug: 25732317
Change-Id: I77b3ddc8951583bebfb908fda934c9b80ddebce0

8 years agoTying LauncherAppState lifecycle with LauncherProvider
Sunny Goyal [Tue, 24 Nov 2015 19:40:40 +0000 (11:40 -0800)]
Tying LauncherAppState lifecycle with LauncherProvider

The content provider is the first component started with the main process,
which makes it ideal for initiating LauncherAppState

Change-Id: I03db82a8949ad1376af53a0033592f421dbf0b15

8 years agoMerge "Setting statusbar and nav bar colors in theme instead of code" into ub-launche...
Sunny Goyal [Mon, 23 Nov 2015 18:45:41 +0000 (18:45 +0000)]
Merge "Setting statusbar and nav bar colors in theme instead of code" into ub-launcher3-burnaby-polish