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: stubs and fixes for Breezy Weather
This commit is contained in:
14
src/api-impl/android/view/OrientationEventListener.java
Normal file
14
src/api-impl/android/view/OrientationEventListener.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package android.view;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class OrientationEventListener {
|
||||
|
||||
public OrientationEventListener(Context context) {}
|
||||
|
||||
public boolean canDetectOrientation() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void disable() {}
|
||||
}
|
||||
@@ -2219,4 +2219,6 @@ public class View implements Drawable.Callback {
|
||||
public void setAccessibilityHeading(boolean heading) {}
|
||||
|
||||
public WindowInsets computeSystemWindowInsets(WindowInsets insets, Rect contentInsets) { return insets; }
|
||||
|
||||
public boolean isDuplicateParentStateEnabled() { return false; }
|
||||
}
|
||||
|
||||
@@ -160,4 +160,6 @@ public class Window {
|
||||
public void setReturnTransition(Transition transition) {}
|
||||
|
||||
public void setEnterTransition(Transition transition) {}
|
||||
|
||||
public void setGravity(int gravity) {}
|
||||
}
|
||||
|
||||
@@ -25,4 +25,12 @@ public class AccessibilityManager {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean removeAccessibilityStateChangeListener(AccessibilityStateChangeListener listener) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean removeTouchExplorationStateChangeListener(TouchExplorationStateChangeListener listener) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user