Commit Graph

69 Commits

Author SHA1 Message Date
Amos Bianchi 20cc7a3b5b Update proguard flags.
Fully R8 optimized variants may crash with:
java.lang.AbstractMethodError exception.

Test: build, manual test on device.
Change-Id: I18a7b011ddd3536e3d33b991954a52e5fc5c7d56
2020-02-24 15:35:49 -08:00
Vadim Caen b6465b2118 Use activity rotation to compute delta
When computing applying the rotation matrix to the TaskView thumnail,
use the rotation of the window configuration instead of the displays.

The forced rotation (ag/10176951) does not yet provide overrided values
for the display orientation when the requesting app is being forced
rotated, which is the case of the launcher. So
getDisplay().getRotation() would return the true rotation of the display
and not the rotation of the activity.

Test: with "adb shell settings put global forced_rotation 1"
and ag/10176951 and parents applied
 1. Open landscape application
 2. Display recents view
 3. Check that the thumnail is in the same rotation as the opened
 application

+ tests from I060a5dfcbcbb2ac21624d2ac778f76562bd60f40
Bug: 143053092
Bug: 143892437

Change-Id: Iee250459050b3c75dc3b79deed0682f809c7168b
2020-02-12 11:40:48 -08:00
Sunny Goyal 94fa76fbeb Updating feature flags subclassing
> Preventing debug flags to get change listener on release device

Bug: 147913781
Change-Id: I2bd0456918c5d3224c714b153c4565b1ef41d7c0
2020-01-21 14:22:58 -08:00
Pinyao Ting 8b4ed23ef7 keep androidx fragment through proguard optimization
Bug: 146432215
Test: on android master, apply the proguard config, build and flash and
verifies crash no longer occurs

Change-Id: Ie967bcbd33bfbc1b8ec088c55829760145f7b597
2019-12-17 15:54:32 -08:00
Winson Chung b2f9c1f0c1 Fixing proguard to not warn about missing class in graphics package.
Change-Id: I894c092beed0e0c8dab4036ab12877fbaf282457
2018-11-15 13:38:35 -08:00
Sunny Goyal 65ce2cc990 Fixing androidx preference fragments not being preserved by proguard
Bug: 119122391
Change-Id: Ib41010d4ac5f79a14a2b132ed723ad92580bc405
2018-11-07 10:08:47 -08:00
Sunny Goyal 55bdeed7bb Removing various reflection based animations, to allow for better proguarding
Change-Id: If9df24ea4170e8a3d336057d1c3dc800934fc1ac
2018-09-21 18:21:04 +00:00
Sunny Goyal d230307a95 Migrating to android-x
Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
2018-08-14 15:22:12 -07:00
Sunny Goyal 7f920b8d5e Cleaning up build rules to simplify customizing derivative projects
> Using {packageName} instead of hardcoding com.android.launcher3 in AndroidManifest.xml
  for strings which are dependent on packageName
> Adding proguard rule to prevent obfuscating any overridable class
> Making it easier to extend SettingsActivity by overriding the fragment class

Change-Id: I5668c3f33b4cf20ad01d7f54b3d79cc0d268d391
2018-07-02 11:16:04 -07:00
Sunny Goyal d0f43ceba7 Some launcher3 fixes so that it compiles with different configurations
Bug: 79996542
Change-Id: I4267aeb8f5b0714415970c63453049ff41466644
2018-05-30 18:15:21 -07:00
Sunny Goyal 0bd0244a73 Reset the vertical progress when the discovery bounce is closed
Since discovery bounce runs on absolute values, it can sometime leave the vertical progress
at an old value, if it is closed after the state change.
Also simplifying discovery bounce animation to use xml everytime.

Bug: 80099242
Change-Id: Iebc249dd02f474cbed85b695eeeb8c2bf60b935d
2018-05-22 11:40:58 -07:00
Sunny Goyal 926ba83726 Elevate GPU priority of Launcher3Quickstep
Bug: 75985430
Change-Id: I4ac70c76db98b4ab666b0559f3185392142be045
2018-04-09 09:23:28 -07:00
Adam Cohen c9a2fac84a Fix proguard flag
-> widget resize frame animations are broken

Change-Id: I138b29d7d99f80462985f9e2445048b3ab690e18
2018-03-19 20:51:26 -07:00
Sunny Goyal 61e084601e Adding implementation of InstantAppResolver for quickstep
> Badging instant apps properly in recents
> Routing drawable creation using Drawable factory

Bug: 31282621
Change-Id: Ice1cdd3e9b821bebdebebbdc5cba4a907ffc21f8
2018-03-07 15:36:10 -08:00
Jon Miranda 54441f5df9 Refactor LauncherAppTransitionManager & polish for new app transitions.
* Add start delay when launcher resumes from all apps or landscape.
* Track the last app transition animator and cancel it before beginning a new one,
  otherwise the animators can conflict with each other.
  ie. Opening an app from all apps and then immediately pressing back to return to
      all apps.
* Use class overrride instead of UiFactory.

Bug: 70220260
Change-Id: I4755d45d820f9d551e443d6c4a148e8789c5bc57
2018-01-25 14:32:47 -08:00
Søren Gjesse 45e89c76bb Surpress missing classes warnings from R8
Bug: 70852369
Test: m -j NexusLauncherRelease

Change-Id: If6056388be67c65d84d696940171f7918d203efc
2017-12-19 22:19:19 +01:00
Sunny Goyal 6316d98a2c Build fix due to prograud changes
Change-Id: I161020ecb2a1786fc9184d024208cac4efc4052f
2017-09-27 12:35:02 -07:00
Hyunyoung Song 508c8f3ac8 When building Launcher3 target, LauncherDumpProto class should not be proguarded b/36904684 am: 2d4d1c532d
Change-Id: I50b2c2e0502ca70fe0a42edb2eb2fb7ffefd5d9d
2017-05-17 20:19:41 +00:00
Hyunyoung Song 2d4d1c532d When building Launcher3 target, LauncherDumpProto class should not be proguarded
b/36904684

Change-Id: I0fd0e1c63d54d83db428a04067a37f582e4d23f1
2017-05-17 13:18:54 -07:00
Sunny Goyal da1dfa32d0 Creating a custom drawable to customize shadow.
> Fixing DrapTargetBar set to visible (with alpha = 0) in the start
causing unnecessary draw

Bug: 37616877
Change-Id: Iaaff96099910f504f6e2f81c9376ddacde50ff6a
2017-04-27 05:35:28 -07:00
Sunny Goyal 6c46a6d324 Using java_style enum generation for proto
This makes it easier to track various method parameters and simplifies
debug logging

Change-Id: Ib7c3d52590d0c36b2c8460c889ee3bead3454569
2016-12-15 09:30:35 -08:00
Hyunyoung Song 9117e94e4c Reduce the scope of proguard rule to fix the broken build.
Change-Id: I27506dc26875d320a61d5d016f72bb2d221ca4d1
2016-11-09 19:30:06 -08:00
Hyunyoung Song ee7c1c1950 Fix broken build
Change-Id: I51af52c9ddcae1675d15eb37a2f48fd0b3cd09c3
2016-11-09 18:03:56 -08:00
Hyunyoung Song 4d11a2a2a0 Fix all apps auto scroll issue on talkback mode
b/30769215

Change-Id: Idd0bbe1ac15c02d42eb28731955b80bab61ba6cc
2016-11-09 12:08:56 -08:00
Hyunyoung Song 7ccc4625e3 Responsive caret drawable
Change-Id: I9d40052d001c80d99db511af6134227f8e4e4239
2016-07-28 13:06:21 -07:00
Kenny Guy 44cba69638 Grey out suspended applications.
Grey out application shortcuts and all apps entries
for packages that are suspended.

Bug: 22776761
Change-Id: I1b63da1816aca1de52b9f9bee62d1b162d0cdf4d
2016-01-25 11:28:06 +00:00
Winson 0b90814f86 am c0880491: Highlighting sectioned apps on fast-scroll.
* commit 'c088049113c261331b5685e64050d14a31cd72df':
  Highlighting sectioned apps on fast-scroll.
2015-09-29 17:09:03 +00:00
Winson c088049113 Highlighting sectioned apps on fast-scroll.
- This CL fixes an old assumption we had about the height
  of rows in AllApps, and ensures that we account for the
  difference in height between the predictive icons and the
  normal icons.
- In addition, we refactor FastBitmapDrawable to have multiple
  states, which it manages in drawing itself, including the
  press state and fast scroll focus states.  And we also refactor
  some of the fast scroll logic in the all apps recycler view
  out to its own class.

Change-Id: I1988159b2767df733bbbfc7dc601859cde6c9943
2015-09-28 17:32:19 -07:00
Winson Chung 3eefff8d77 am 0947f5c2: Merge "Adding graphic for all apps empty search screen." into ub-launcher3-burnaby
* commit '0947f5c26804bc74b8f1242d856c1f703544c3de':
  Adding graphic for all apps empty search screen.
2015-08-28 21:20:28 +00:00
Winson fee206f241 Adding graphic for all apps empty search screen.
Change-Id: I976a327a5984790c458b0f36d33c0b1ac16ec59c
2015-08-28 12:34:55 -07:00
Winson 17fa39222d am 6779595b: Updating the scrollbar to make the fastscroller more visible.
* commit '6779595bec64fa4503c22f75c8e245a449fe665d':
  Updating the scrollbar to make the fastscroller more visible.
2015-08-20 19:59:40 +00:00
Winson 6779595bec Updating the scrollbar to make the fastscroller more visible.
Bug: 20035978
Change-Id: I56a865262cd07e6af11b4374a7e6354710116dcd
2015-08-20 19:51:08 +00:00
Winson Chung 7b7d6d09ee am a67cce2c: Merge "Tweaking fast scroller to follow touch closer." into ub-launcher3-burnaby
* commit 'a67cce2cb3b7d6fcf53ce1390238130194c393e5':
  Tweaking fast scroller to follow touch closer.
2015-08-20 19:31:53 +00:00
Winson d2eb49e4c3 Tweaking fast scroller to follow touch closer.
- Issue: The fast scroller currently does not follow the touch input
  because fundamentally, the fixed scrollbar height and the mapping
  of the scroll space to the scrollbar space is fundamentally incompatible.
- This CL changes the fast scroller to allow it to detach when the user
  fast-scrolls, then re-attaches after the user scrolls the screen and
  the current scroll position for the scrollbar picks up the thumb position.
- Since the scroll position and the fast scroller thumb is now detached,
  we can change the distribution of the fast scroll letters to make it
  independent of the rows for each section and instead uniformly distribute
  it along the scrollbar, which allows for more stability.
- There are edge cases where this fails, especially when there are few
  apps, which we can investigate further.
  
Bug: 20035978

Change-Id: I8322f862107e6f330deff692885233706564bffd
2015-08-20 19:25:48 +00:00
Vadim Tryshev fedca43d39 Moving drag-drop related code into a separate package.
This is per an earlier CR comment "we should probably move all this code to its own package (launcher3.dragndrop) in a separate cl".

I'm not moving DragSource because it's referred from gsa code.

Bug: 22609426
Change-Id: Ia7204dab99c0c395c66b77143a2d60411153f5f3
2015-08-20 07:45:57 -07:00
Adam Cohen ce77f36aff Don't obfuscate Launcher3
Change-Id: I86ac745602c0d3c09842ed9553f7589c232f5d23
2015-07-24 16:26:33 -07:00
Winson Chung b1777447d9 Refactoring fast scroller.
- Fixing issue with fast scroller not fitting name width.
- Refactoring fast scrolling/scroll bar code out of base recycler view
- Adding animations to fast scroller to match design
- Smooth scrolling when jumping between app rows
- Fixing issue with fast scroller jumping when you first pick it up
- Fixing issue with wrong background paddings being used

Bug: 21874346
Bug: 22031923
Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
2015-06-23 14:24:15 -07:00
Winson Chung fd98e3e3fc Fixing proguard stripping animation method. 2015-06-12 12:20:34 -07:00
Sunny Goyal 0573977143 Removing some unused functionalities
> Removing obsolete progrard rules
> Removing BackgroundAlphaMultiplier from CellLayout, which is always 1
> Removign otiline animation from workspace. This animation never runs,
as it is called during startReordeing which always happens when
overview mode (workspaceInModalState() is true)

Change-Id: I43219e41ea188771bc818988c1bcbd523f28cba6
2015-05-19 20:03:06 -07:00
Sunny Goyal fe0d1f2458 Animating dragview color change when dragging over ButtonDropTarget
Change-Id: I642438be681769812302dba0b6deca38f89f7a16
2015-04-29 11:25:16 -07:00
Sunny Goyal 546bbf2f8d Removing market icon
Change-Id: I7837cd8083cf2c07444b509fcfb7447151ba76b5
2015-04-17 12:51:24 -07:00
Winson Chung 9cbea78b19 Ensuring that our animation callbacks are not stripped by pro guard.
Bug 20296035
2015-04-16 21:18:34 -07:00
Sunny Goyal be7939c960 Proguard changing methods required for click feedback aniamtion
Bug: 18323452
Change-Id: Iac6d75a3c46c3a4c2a74af43bd1fca738235c2d5
2014-11-10 16:02:38 -08:00
Sunny Goyal 3484638cad Adding a circular progress bar for preloader icons
Change-Id: I1b5ba61c01a16a8cb5d3f9e31f827f8c99a1ffc9
2014-07-16 13:37:56 -07:00
Winson Chung a694524047 Adding migration Clings. (Bug 11973614)
- Refactoring Launcher cling code out to LauncherClings.

Change-Id: Iff4f84f5b8bfeb69b1be0b4802022c3eb20b6f2c
2014-01-10 22:28:16 +00:00
Winson Chung af40f205d7 Initial changes to restore clings.
Change-Id: Ie23e6e9f39679e8d35955a4a7db804d03f8b4d3f
2013-09-20 17:22:05 -07:00
Michael Jurka e0300694d6 Remove unused proguard flags
Change-Id: Iae52eb3a5dd27e636aa1fb86a52a1025c3fcf416
2013-09-12 20:41:21 +02:00
Daniel Sandler a127b7ad15 New icon to dump heap information and share it.
Alternatively,
  $ adb shell am start -n <pkg>/com.android.launcher3.MemoryDumpActivity

Change-Id: I8c615ec3abffaf6ad693c93bdf569550d8f97298
2013-06-17 15:29:22 -04:00
Daniel Sandler 325dc23624 Launcher2 is now Launcher3.
Changes include
  - moving from com.android.launcher{,2} to
    com.android.launcher3
  - removing wallpapers
  - new temporary icon

Change-Id: I1eabd06059e94a8f3bdf6b620777bd1d2b7c212b
2013-06-05 23:30:20 -04:00
Winson Chung fba22b172d Fixing proguard issues with last change.
Change-Id: Ic6990330a4831f86ace987ab3c975fd69dac7c4d
2011-08-22 22:44:08 -07:00