You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
apps may (ab)use AnimationDrawable.run and Animation.setAnimationListener to time transitions between states; even though we don't currently implement the animations, state transitions are still desirable (otherwise the app may lock up)
22 lines
379 B
Java
22 lines
379 B
Java
package android.graphics.drawable;
|
|
|
|
public class AnimationDrawable extends Drawable {
|
|
private int num_frames = 0;
|
|
|
|
public int getNumberOfFrames() {
|
|
return num_frames;
|
|
}
|
|
|
|
public void addFrame(Drawable drawable, int duration) {
|
|
num_frames++;
|
|
}
|
|
public void start() {
|
|
for(int i = 0; i < num_frames; i++) {
|
|
run();
|
|
}
|
|
}
|
|
public void stop() {}
|
|
|
|
public void run() {}
|
|
}
|