Files
lawnchair/proguard.flags
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

53 lines
1.6 KiB
Plaintext

-keep,allowshrinking,allowoptimization class com.android.launcher3.** {
*;
}
-keep class com.android.launcher3.graphics.ShadowDrawable {
public <init>(...);
}
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
# Proguard will strip methods required for talkback to properly scroll to
# next row when focus is on the last item of last row when using a RecyclerView
# Keep optimized and shrunk proguard to prevent issues like this when using
# support jar.
-keep class androidx.recyclerview.widget.RecyclerView { *; }
# Fragments
-keep class ** extends androidx.fragment.app.Fragment {
public <init>(...);
}
-keep class ** extends android.app.Fragment {
public <init>(...);
}
## Prevent obfuscating various overridable objects
-keep class ** implements com.android.launcher3.util.ResourceBasedOverride {
public <init>(...);
}
-keep interface com.android.launcher3.userevent.nano.LauncherLogProto.** {
*;
}
-keep interface com.android.launcher3.model.nano.LauncherDumpProto.** {
*;
}
# Discovery bounce animation
-keep class com.android.launcher3.allapps.DiscoveryBounce$VerticalProgressWrapper {
public void setProgress(float);
public float getProgress();
}
# BUG(70852369): Surpress additional warnings after changing from Proguard to R8
-dontwarn android.app.**
-dontwarn android.view.**
-dontwarn android.os.**
-dontwarn android.graphics.**
# Ignore warnings for hidden utility classes referenced from the shared lib
-dontwarn com.android.internal.util.**