Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd26c64d authored by Vadim Tryshev's avatar Vadim Tryshev
Browse files

Revert "Enable new ripple"

Revert "Temporarily force test on a device"

Revert submission 13921422-enable_next_ripple

Reason for revert:
The revert fixes the leak b/183950010.
Proof:
* Running last good build + the CL we are reverting results in the leak.

* The revert was tested on Bonito. The result without the revert is failing: https://android-build.googleplex.com/builds/tests/view?invocationId=I95600008189690647&redirect=https%3A%2F%2Fsponge2.corp.google.com%2Fceb67817-a049-41f8-b127-719a8b4fec50&testPackage=com.android.launcher3.ui

The result of TOT + revert (https://android-build.googleplex.com/builds/branch-dashboard/git_master?build_id=P21324441) is passing:
https://android-build.googleplex.com/builds/forrest/run/L11500000848549427

Reverted Changes:
I928ba73c9:Enable new ripple
I17393431a:Temporarily force test on a device

Change-Id: I865e05c2c569202f6e8ab545936c1b74db6a18f7
Bug: 183950010
Test: presubmit, forrest
parent 49a06ae9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ import android.graphics.RecordingCanvas;
import android.graphics.Rect;
import android.graphics.Shader;
import android.os.Build;
import android.os.SystemProperties;
import android.util.AttributeSet;
import android.view.animation.LinearInterpolator;

@@ -151,7 +152,8 @@ public class RippleDrawable extends LayerDrawable {
    private static final int MAX_RIPPLES = 10;
    private static final LinearInterpolator LINEAR_INTERPOLATOR = new LinearInterpolator();
    /** Temporary flag for teamfood. **/
    private static final boolean FORCE_PATTERNED_STYLE = true;
    private static final boolean FORCE_PATTERNED_STYLE =
            SystemProperties.getBoolean("persist.material.patternedripple", false);

    private final Rect mTempRect = new Rect();