Sunny Goyal
f862a26347
Extending the grid migration logic to handle density changes
...
For hotseat migratino, we simply drop the items with least weight
If the workspace row/column decreases by 2 or more, we clear the whole workspace
Bug: 25958224
Change-Id: I7131b955023d185ed10955f593184b9238546dc8
2016-01-06 10:16:44 -08:00
Sunny Goyal
d7d5bd878a
resolve merge conflicts of ffa1237698 to ub-launcher3-master.
...
Change-Id: I65beecb5bbbfe9c4b33d6ca639118cb615c4120a
2015-12-18 15:04:13 -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
d3b53c3fa4
Merge "Preventing launcher crashes due to low disk space." into ub-launcher3-burnaby-polish
...
am: 60acb943c6
* commit '60acb943c68e2f949fc8ad4703c9156549263897':
Preventing launcher crashes due to low disk space.
2015-12-18 22:32:36 +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
aff1a1df8a
resolve merge conflicts of ca656e3c69 to ub-launcher3-master.
...
Change-Id: Idbbf8caa041b2498b3a0a9d1a8f23bf163181972
2015-12-18 14:10:34 -08: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
13f682f74e
Fixing some invalid checks and cleaning some redundant conditions
...
am: b740f59c7d
* commit 'b740f59c7d572d54402e3a74fb2a23c0f1b1af48':
Fixing some invalid checks and cleaning some redundant conditions
2015-12-18 11:20:41 -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
619c21e87b
resolve merge conflicts of d896ee43cd to ub-launcher3-master.
...
Change-Id: If09db8d99e7065c08fcb81b8d97a68a2557d53d7
2015-12-17 12:32:54 -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
6ef0f76939
Reverting the cache version change, so that users on release version do not get the cache reset
...
am: 2b84b652b3
* commit '2b84b652b33977d82e0af4ab9fdc7a97cb8d5a33':
Reverting the cache version change, so that users on release version do not get the cache reset
2015-12-16 01:30:07 +00: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
4a0380d17d
Merge "Preserving the open folder state across rotation" into ub-launcher3-master
2015-12-14 22:56:51 +00:00
Sunny Goyal
38e7f28d3f
resolve merge conflicts of a50a419b82 to ub-launcher3-master.
...
Change-Id: Ie0e233e22284b8ddd2dbb86204e042651b6dfae2
2015-12-11 14:18:16 -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
258797318a
Merge "Fixing All apps not respecting scaled icon size" into ub-launcher3-burnaby-polish
...
am: 49750ce75e
* commit '49750ce75e7413ad3c4fe4be31a2e1d73312794b':
Fixing All apps not respecting scaled icon size
2015-12-10 17:52:01 -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
aefc0c4dd0
resolve merge conflicts of e5ef3d2e9b to ub-launcher3-master.
...
Change-Id: I37cbbe4f51cc0a8de8071434020ec1553241da85
2015-12-10 17:46:12 -08: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
08442b84a2
Preserving the open folder state across rotation
...
Bug: 24900496
Change-Id: Ie1318b82b497957b99603b11ec338dd50d51b962
2015-12-08 14:14:26 -08:00
Sunny Goyal
385b6e2c49
Merge "Moving DB creation to background thread" into ub-launcher3-master
2015-12-08 21:52:39 +00:00
Sunny Goyal
edc7f46ae8
Merge "Verifying the install shortcut intent before casting the extras to various object types" into ub-launcher3-burnaby-polish
...
am: 06538a7784
* commit '06538a778485e920a651bf662a90c6a5dc3b0218':
Verifying the install shortcut intent before casting the extras to various object types
2015-12-08 21:47:09 +00: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
d3849d191b
Moving DB creation to background thread
...
Change-Id: I5404edd8df7160108c230d245f34bf8e24173619
2015-12-08 13:38:28 -08:00
Sunny Goyal
5ad0cd5e89
Recreating QSB when the widget host gets reset
...
am: 655daaed3e
* commit '655daaed3ef8a68deaae5f72acbc1fc444cc54d6':
Recreating QSB when the widget host gets reset
2015-12-08 20:56:53 +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
Sunny Goyal
8142082389
Merge "Adding FeatureFlags.java file to aggregate various feature definitions" into ub-launcher3-burnaby-polish
...
am: f3b13b55df
* commit 'f3b13b55df44ff23fdb184cd467dfd2b6d89074f':
Adding FeatureFlags.java file to aggregate various feature definitions
2015-12-08 01:48:59 +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
0f97b7874f
Added config_springLoadWorkspace to enable/disable spring-loaded workspace.
...
- Added side hints back
- Only scale down icons if spring-loaded
- Only show App Info drop target if spring-loaded
Change-Id: I4b0dddccbe0e80b7ceb6b7266fc527f757744148
2015-12-04 14:56:54 -08:00
Tony Wickham
11c45f1141
Merge "Add appropriate (tiny) offset to widget drops so they land correctly." into ub-launcher3-burnaby-polish
...
am: 8db5d7ca60
* commit '8db5d7ca60e79f007bfce7952c15c74d0ee44bc0':
Add appropriate (tiny) offset to widget drops so they land correctly.
2015-12-04 14:21:19 -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
Sunny Goyal
2d2b42ba3c
resolve merge conflicts of 39b700fcc5 to ub-launcher3-master.
...
Change-Id: I394258be0c75289cab2f5141c0fb765504527420
2015-12-04 10:04:54 -08:00
Tony Wickham
9ec6d402fa
Merge "Cleanup keyboard code." into ub-launcher3-burnaby-polish
...
am: b88d0bccbe
* commit 'b88d0bccbe997e5c45c930698e37f52865bd9210':
Cleanup keyboard code.
2015-12-04 18:01:51 +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
Tony Wickham
0593f348b9
Hide the focus indicator view when going to a fullscreen page.
...
am: 62b9b6054e
* commit '62b9b6054e46074f57ccf156a8663b4392cd82d9':
Hide the focus indicator view when going to a fullscreen page.
2015-12-03 22:52:03 +00:00
Tony Wickham
62b9b6054e
Hide the focus indicator view when going to a fullscreen page.
...
Bug: 25649853
Change-Id: I9f2f221020548b48d816924a1803a1a70d11c412
2015-12-03 14:47:52 -08:00
Tony Wickham
580ff475e0
Fullscreen pages (e.g. Now) are focusable via keyboard.
...
am: 0fa5ada226
* commit '0fa5ada2261a29ad9be7195c8cdb8cb50bdd0742':
Fullscreen pages (e.g. Now) are focusable via keyboard.
2015-12-03 22:34:43 +00:00
Tony Wickham
0fa5ada226
Fullscreen pages (e.g. Now) are focusable via keyboard.
...
Change-Id: I962551651aeb9ac7b57bb51b195adc3140db30d8
2015-12-03 14:27:55 -08:00
Tony Wickham
b90a9761ae
Make sure pages are always accessible via left/right arrow keys.
...
am: af78b59af1
* commit 'af78b59af19264105b8ce856defa5342d6fd584a':
Make sure pages are always accessible via left/right arrow keys.
2015-12-03 22:23:11 +00:00
Tony Wickham
af78b59af1
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
2015-12-03 14:18:06 -08:00
Tony Wickham
800550d63f
Merge "Add special column for All Apps button in FocusLogic\'s sparse matrix." into ub-launcher3-burnaby-polish
...
am: b879abd274
* commit 'b879abd2747c1c1473c8d2b9d9c97707da8218f3':
Add special column for All Apps button in FocusLogic's sparse matrix.
2015-12-03 20:45:25 +00:00
Tony Wickham
b879abd274
Merge "Add special column for All Apps button in FocusLogic's sparse matrix." into ub-launcher3-burnaby-polish
2015-12-03 20:41:28 +00:00