Skip to content

Unable to replace animator resources #2676

Closed Answered by stevenxxiu
stevenxxiu asked this question in Q&A
Discussion options

You must be logged in to vote

It turns out this wasn't what causes the animation. The cause is com.google.android.material.bottomsheet.BottomSheetBehavior animating by default. The animation duration is computed by androidx.customview.widget.ViewDragHelper.computeAxisDuration(). Patching this works.

Maybe LSPosed did replace the resource correctly then.

The solution is as follows:

package stevenxxiu.animation_remover;

import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.XC_MethodReplacement;
import de.robv.android.xposed.callbacks.XC_LoadPackage;

import static de.robv.android.xposed.XposedHelpers.findAndHookMethod;

public class AppAdAway implements IXposedHookLoadPackage {
    public v…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stevenxxiu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant