Commit Graph

21454 Commits

Author SHA1 Message Date
paphonb
514b28bf20 Update README regarding building 2019-10-09 08:45:44 +07:00
paphonb
4303102acd Style undo snackbar with correct fonts 2019-10-09 08:40:03 +07:00
Tony
b512426948 When undoing a removal, always return to the page it came from
We were already returning to the current page, but this wasn't
always right, e.g. when removing the last item on the last page.
So now we mark the page the item was removed from, and bind that
page first when undo is clicked.

This also addresses an issue where we incorrectly returned to the
first page if currentPage = INVALID_RESTORE_PAGE, which happens if
there are no items on the first page.

Bug: 118846684
Change-Id: I4ec1f64b24ba1cc308ce08bfb3111b5981fae99b
2019-10-09 08:40:03 +07:00
Tony Wickham
5659343d4a Update undo snackbar visuals
- Use accent color for action
- Update font-family to use TextTitle style
- Reduce elevation to 3dp
- Inset snackbar left/right margins more, unless we need to increase the
  width to fit the text
- For largest display/font size, fallback to 2 lines and smaller font if
  necessary to not cut off the label
- Remove top/bottom padding on action (b/114084048)
- Allow up to 20 char for the action (b/114317987)

Change-Id: I833c102aaac3ba3db2283997c142926c3830336d
2019-10-09 08:40:03 +07:00
Tony Wickham
516b0f573d Add undo snackbar for deleting items
- Add methods to ModelWriter to prepareForUndoDelete, then
  enqueueDeleteRunnable, followed by commitDelete or abortDelete.
- Add Snackbar floating view
- Show Undo snackbar when dropping or flinging to delete target; if the
  undo action is clicked, we abort the delete, otherwise we commit it.

Bug: 24238108
Change-Id: I9997235e1f8525cbb8b1fa2338099609e7358426
2019-10-09 08:40:03 +07:00
paphonb
bc85a8edf5 Revert "Allow user to undo icon deletions"
This reverts commit d1471157c4.
2019-10-09 08:40:03 +07:00
paphonb
8c266057cd Merge pull request #1769 from paphonb/smartspace-update
Update smartspace style
2019-10-09 08:22:26 +07:00
paphonb
ba88310bcd Update smartspace style 2019-10-09 07:56:18 +07:00
Till Kottmann
445e8e4d66 Dont't force create bitmap for icon masks
Signed-off-by: Till Kottmann <me@deletescape.ch>
2019-09-14 18:31:24 +02:00
Till Kottmann
074f4bdc20 Fix crash when Launching an app through Lawnchair via KWGT
Co-authored-by: paphonb <me@paphonb.xyz>
Signed-off-by: Till Kottmann <me@deletescape.ch>
2019-09-14 18:12:32 +02:00
paphonb
81ba1b1782 Hide recents before pausing swipe 2019-09-07 14:07:22 +07:00
paphonb
a85bdb15ed Tune app closing animation 2019-09-07 14:07:22 +07:00
paphonb
9ad12d585b Add icon animation for swipe up gesture 2019-09-07 14:07:22 +07:00
paphonb
4b7eb0eaae Add Launcher3 IconShape implementation 2019-09-07 14:07:22 +07:00
paphonb
f91c1cf756 Add swipe up to home animation 2019-09-07 14:07:22 +07:00
paphonb
3bdc7f3ab4 Move params for ClipAnimationHelper#applyTransform into TransformParams 2019-09-07 14:07:22 +07:00
paphonb
d957a73d1b Swipe up to go home 2019-09-07 14:07:22 +07:00
paphonb
163e5b2055 Add swipe up to go home from drawer 2019-09-07 14:07:22 +07:00
paphonb
07002a55b9 Fix migration crash 2019-09-07 14:07:22 +07:00
Till Kottmann
9bb5ecc0d9 Don't crash if Zen mode setting doesn't exist
Signed-off-by: Till Kottmann <me@deletescape.ch>
2019-09-06 17:12:48 +02:00
Till Kottmann
d533e2886d Migration: Reset icon shape to system default when migrating from v1
Signed-off-by: Till Kottmann <me@deletescape.ch>
2019-09-06 17:09:57 +02:00
paphonb
a002165713 Send beta builds to internal channel 2019-09-06 16:09:56 +07:00
Wang Han
559ad0d284 AbstractStateChangeTouchController: Do NULL check in updateProgress() 2019-09-06 10:31:38 +02:00
Duolingo Bird
073c2f98c1 Import translations 2019-09-06 10:29:01 +02:00
paphonb
8dac5ccbdd Fix restoring settings from a different build variant 2019-09-06 15:13:30 +07:00
Till Kottmann
f58c58b0a9 Build: Compile x86_64 as well to make Google Play Store happy
Signed-off-by: Till Kottmann <me@deletescape.ch>
2019-09-05 22:23:47 +02:00
Till Kottmann
1f3335030b Build: Prepare for manual beta deployments
[skip ci]

Signed-off-by: Till Kottmann <me@deletescape.ch>
2019-09-05 21:12:42 +02:00
paphonb
4458f2466e Fix hide clock crash 2019-08-17 21:51:46 +07:00
paphonb
1b9a9cc611 Uri icon crash fix 2019-08-17 20:34:28 +07:00
paphonb
77f98aee4d OnePlus weather crash fix 2019-08-17 19:54:11 +07:00
paphonb
7033ba2a28 Merge remote-tracking branch 'origin/harsh' into dev 2019-08-17 19:38:48 +07:00
paphonb
4095bfcb7d Merge remote-tracking branch 'origin/anas' into dev 2019-08-17 19:37:46 +07:00
paphonb
36e15078bc Reduce drawer effects when low performance mode is enabled 2019-08-16 22:33:25 +07:00
paphonb
099d2220ea Allow using translucent background for drawer search bar 2019-08-16 22:30:02 +07:00
Harsh Shandilya
665f39c76f ColorEngine: Synchronize colorListeners modification
Candidate for fixing https://del.dog/saziderira.sql

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-08-13 22:44:18 +05:30
Anas Karbila
f080ebe6a7 Lawnchair: fix quick actions not turning off without launcher restart 2019-08-13 00:23:58 +02:00
Anas Karbila
713c78bb8e Lawnchair: implement "don't show" for quick actions 2019-08-13 00:19:16 +02:00
paphonb
6be7d18c38 Fix wrong icon shape default value 2019-08-12 21:25:18 +07:00
Till Kottmann
9fa539a7b6 App search: require slighly higher score, fix sorting 2019-08-12 14:32:16 +02:00
Till Kottmann
56f0601b39 Make Lawnchair app search fuzzy and sorted by score 2019-08-12 13:20:34 +02:00
paphonb
d2ac56164d Improve smartspace providers setup flow 2019-08-11 22:26:17 +07:00
paphonb
8a5b1c2d07 Add option to hide statusbar clock when smartspace time is visible 2019-08-08 22:23:58 +07:00
paphonb
1886d48356 Adjust smartspace large clock layout 2019-08-08 20:32:51 +07:00
paphonb
0413b684eb Allow setting custom icon to a mask 2019-08-06 07:29:00 +07:00
paphonb
a211671683 Add some space between hotseat and navbar 2019-08-06 06:52:10 +07:00
paphonb
98b137153e Fix deploy 2019-08-05 19:52:39 +07:00
paphonb
9ab27ba4d1 Fix dock scale when label is enabled 2019-08-05 19:52:39 +07:00
Harsh Shandilya
2e1db3edd1 CustomBottomSheet: Add package version to component names setting
Substratum themers often need exact versions.

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-08-05 19:30:34 +07:00
Harsh Shandilya
7018424a2d Build with ToT R8
Moar optimizations!!!

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-08-01 12:57:26 +05:30
Harsh Shandilya
313bc340d4 PersonalityProvider: Expand night-time into the early hours
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-08-01 12:57:26 +05:30