Commit Graph

10213 Commits

Author SHA1 Message Date
Sunny Goyal 6731395671 Fixing Search drop target bar stays visible, until the first time
an item is picked up

Change-Id: I48ac697147ffe7a1f8802ed00de4fa4006a1878e
2016-01-29 18:39:26 -08:00
Sunny Goyal f7f8cf5743 Merge "Fixing Test builds" into ub-launcher3-burnaby-polish 2016-01-29 21:18:02 +00:00
Sunny Goyal 6362683acb Merge "Removing unnecessary new object creation in dispatchDraw" into ub-launcher3-burnaby-polish 2016-01-28 00:30:06 +00:00
Sunny Goyal ca846f8f54 Fixing Test builds
Change-Id: I8524ebc124270feb2e6e69e17ba0e0c6301bce18
2016-01-26 12:17:24 -08:00
Sunny Goyal 3fc648d3b7 Preventing a Runtime widget crash from crashing the Launcher
Bug: 26750103
Change-Id: I31f120bb0c4d64b903b3dd5dae0ae46f95bcdf59
2016-01-25 17:30:25 -08:00
Sunny Goyal 8bf6f311e8 Removing unnecessary new object creation in dispatchDraw
dispatchDraw was calling getVisiblePages which in turn calls
getDescendantCoordRelativeToParent and created multiple new abjects

Change-Id: I401fec076183979d30dfdbbdc02a57bd79f3886d
2016-01-23 14:42:25 -08:00
Tony Wickham a5cfbe8075 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
2016-01-22 14:45:02 -08:00
Sunny Goyal b56090af35 Merge "Removing some obsolete files" into ub-launcher3-burnaby-polish 2016-01-19 20:54:00 +00:00
Sunny Goyal 2080603ca7 Removing some obsolete files
Change-Id: I45cc23afcecb67163da99a9b81ace0021f723c9b
2016-01-19 10:38:49 -08:00
Sunny Goyal c7a49f0574 Removign 'final' modifiers from FeatureFlags so that then can be overridden
Change-Id: I07265eaeed883301787eb0ffd838f516d7c63d26
2016-01-19 10:36:23 -08:00
Sunny Goyal d42903b4f0 Merge "Disabling icon normalization" into ub-launcher3-burnaby-polish 2016-01-13 18:04:19 +00:00
Sunny Goyal dde32e216c Disabling icon normalization
Bug: 26537769
Change-Id: Ia1d7127a7c01fe98127e34440d1c003b669eaf75
2016-01-13 09:48:17 -08:00
Sunny Goyal 5255c87c6f Merge "Fixing icon badging being done on scaled bitmap size" into ub-launcher3-burnaby-polish 2016-01-12 22:35:16 +00:00
Sunny Goyal ecdc24f6f6 Fixing custom content screen not aligned properly in landscape
Bug: 26413100
Change-Id: I1a111c9d2b0dfdfbc3cbd566e5784a1ed2bb6719
2016-01-12 10:35:55 -08:00
Sunny Goyal e1483fb1cd 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
2016-01-08 12:16:15 -08:00
Sunny Goyal e70fb6f8ef Accessibility delegate is already set in BubbleTextView constructor. Not need to set it again
Bug: 25948877
Change-Id: I1d301a6169404a78881fa29da6d6bdf2fec8f146
2016-01-07 13:51:09 -08:00
Sunny Goyal 5e9ef1344d Removing lib proto util
Change-Id: Iebe6341a60a5e62bde97b5cca68f8abb93b04d36
2016-01-06 15:31:09 -08:00
Sunny Goyal f82e547359 Fixing syntax error
Change-Id: I8fbcd34d891b1d020436e9aa430fd26372910a63
2016-01-06 15:09:22 -08:00
Hyunyoung Song e85138f662 [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"
2016-01-06 23:04:46 +00:00
Sunny Goyal f7a263c437 Merge "Adding support for negative x and y in layout xml. Fixing default configurations for some screen sizes." into ub-launcher3-burnaby-polish 2016-01-06 22:51:43 +00:00
Hyunyoung Song 8363faf9a8 [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 4ae00b1b8e.

Change-Id: I137756b79e2c12d36408073bdd6cddc773a4f168
2016-01-06 22:47:16 +00:00
Sunny Goyal a6164c5c9b Adding a .nano prefix in the proto package name
Change-Id: Ia513089f813567953ca146538f79d21ca5fd8ddf
2016-01-06 14:47:13 -08:00
Hyunyoung Song 56e6b478ff Fix broken make target launcher_protoutil_lib Bug:26406415
am: 4ae00b1b8e

* commit '4ae00b1b8e853f45770c833085179eb382220d78':
  Fix broken make target launcher_protoutil_lib Bug:26406415
2016-01-06 21:20:56 +00:00
Hyunyoung Song 4ae00b1b8e Fix broken make target launcher_protoutil_lib
Bug:26406415

Change-Id: If3895b384feb9f2a6294fd76c043420851a37f49
2016-01-06 13:12:45 -08:00
Ying Wang baa5589f6d Remove unnecessary use of ../.
Change-Id: Ie747c305cbf1a6bf42f6c04c5c4d5ec3c6dad990
2016-01-04 12:19:01 -08:00
Sunny Goyal 96a0963c4a 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
2015-12-18 17:17:08 -08:00
Sunny Goyal ffa1237698 Merge "Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread" into ub-launcher3-burnaby-polish 2015-12-18 22:38:52 +00:00
Sunny Goyal 60acb943c6 Merge "Preventing launcher crashes due to low disk space." into ub-launcher3-burnaby-polish 2015-12-18 22:29:47 +00:00
Tony Wickham ca656e3c69 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
2015-12-18 13:13:48 -08:00
Sunny Goyal b740f59c7d Fixing some invalid checks and cleaning some redundant conditions
Change-Id: I770ce2cc2eccbee105958634e81bbc9bc2e4cc48
2015-12-18 11:00:14 -08:00
Sunny Goyal 6f70936f7f 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
2015-12-18 10:20:52 -08:00
Sunny Goyal d804398755 Using SharedPrefenrece.apply instead of commit to prevent disk IO on main thread
Bug: 25903149
Change-Id: Ib1ee3fd27cca14f147f704aec768a330c4f03b33
2015-12-17 22:24:51 -08:00
Sunny Goyal d896ee43cd Protecting Icon normalization behind a feature flag
Change-Id: I91b7126765049372a3ffec3ad6f661715dc83bab
2015-12-17 11:24:46 -08:00
Sunny Goyal 2b84b652b3 Reverting the cache version change, so that users on release version do not get the cache reset
Change-Id: I61b06ca001e6ae47693e8d6f467565314d66f1b4
2015-12-15 17:12:22 -08:00
Sunny Goyal a50a419b82 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
2015-12-11 10:55:20 -08:00
Sunny Goyal 49750ce75e Merge "Fixing All apps not respecting scaled icon size" into ub-launcher3-burnaby-polish 2015-12-11 01:49:02 +00:00
Sunny Goyal e5ef3d2e9b Merge "Clearing DB instead of deleting the DB file." into ub-launcher3-burnaby-polish 2015-12-11 01:37:56 +00:00
Sunny Goyal 383e0a29ec Fixing All apps not respecting scaled icon size
Change-Id: I3d05c713939fd69d04f5896cdc5db91480b0d4d1
2015-12-10 13:02:01 -08:00
Sunny Goyal 06538a7784 Merge "Verifying the install shortcut intent before casting the extras to various object types" into ub-launcher3-burnaby-polish 2015-12-08 21:43:10 +00:00
Sunny Goyal 655daaed3e Recreating QSB when the widget host gets reset
Bug: 25073414
Change-Id: Ibdaa2b330ef7989cb7c93d64a05c8f6e5b26594a
2015-12-08 09:29:03 -08:00
Tony Wickham d42f97ee07 Merge "Added an instrumentation test case for quickly adding a widget." into ub-launcher3-burnaby-polish 2015-12-08 02:36:54 +00:00
Sunny Goyal f3b13b55df Merge "Adding FeatureFlags.java file to aggregate various feature definitions" into ub-launcher3-burnaby-polish 2015-12-08 01:44:40 +00:00
Sunny Goyal bdcabf0515 Adding FeatureFlags.java file to aggregate various feature definitions
Change-Id: I52d04ab979329d1afd42fd74ec0a533dd819fd23
2015-12-07 15:04:13 -08:00
Sunny Goyal 7606a412c5 Verifying the install shortcut intent before casting the extras to various object types
Bug: 26043109
Change-Id: I95f127d62a6a508a850e11d6728afc7509fb07d1
2015-12-07 14:52:07 -08:00
Tony Wickham 8db5d7ca60 Merge "Add appropriate (tiny) offset to widget drops so they land correctly." into ub-launcher3-burnaby-polish 2015-12-04 22:14:36 +00:00
Tony 2f04430fa4 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
2015-12-04 12:06:13 -08:00
Tony Wickham bcec69525d Merge "Increase spacing between icons in All Apps on tablets." into ub-launcher3-burnaby-polish 2015-12-04 18:30:09 +00:00
Sunny Goyal 39b700fcc5 Merge "Normalizing app icons based on the standard icon guidelines" into ub-launcher3-burnaby-polish 2015-12-04 17:56:04 +00:00
Tony Wickham b88d0bccbe Merge "Cleanup keyboard code." into ub-launcher3-burnaby-polish 2015-12-04 17:55:33 +00:00
Tony Wickham 329d8bfa04 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
2015-12-04 09:48:17 -08:00