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
api-impl: misc stubs for WhatsApp
This commit is contained in:
@@ -15,6 +15,7 @@ import android.graphics.Rect;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Binder;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.os.Looper;
|
||||
@@ -2112,4 +2113,10 @@ public class View implements Drawable.Callback {
|
||||
public float getTransitionAlpha() {
|
||||
return 1.0f;
|
||||
}
|
||||
|
||||
public void onWindowFocusChanged(boolean hasFocus) {}
|
||||
|
||||
public void setAnimation(Animation animation) {}
|
||||
|
||||
public boolean performAccessibilityAction(int action, Bundle arguments) { return false; }
|
||||
}
|
||||
|
||||
@@ -422,6 +422,8 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
// FIXME
|
||||
}
|
||||
|
||||
public boolean getClipToPadding() { return false; }
|
||||
|
||||
public static class LayoutParams {
|
||||
public static final int FILL_PARENT = -1;
|
||||
public static final int MATCH_PARENT = -1;
|
||||
|
||||
@@ -2,6 +2,7 @@ package android.view;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.transition.Transition;
|
||||
import android.view.SurfaceHolder;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
@@ -135,4 +136,22 @@ public class Window {
|
||||
public void setTitle(CharSequence title) {
|
||||
set_title(native_window, title != null ? title.toString() : context.getPackageName());
|
||||
}
|
||||
|
||||
public Transition getSharedElementEnterTransition() {
|
||||
return new Transition();
|
||||
}
|
||||
|
||||
public void setSharedElementExitTransition(Transition transition) {}
|
||||
|
||||
public void setSharedElementReenterTransition(Transition transition) {}
|
||||
|
||||
public void setSharedElementReturnTransition(Transition transition) {}
|
||||
|
||||
public Transition getSharedElementExitTransition() {
|
||||
return new Transition();
|
||||
}
|
||||
|
||||
public Transition getSharedElementReenterTransition() {
|
||||
return new Transition();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,4 +34,6 @@ public class Animation {
|
||||
public void setRepeatCount(int count) {}
|
||||
|
||||
public void reset() {}
|
||||
|
||||
public void start() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user