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
add more stubs to make exoplayer not crash
This commit is contained in:
@@ -17,6 +17,12 @@ public class SurfaceView extends View {
|
||||
mSurface.widget = this.widget;
|
||||
}
|
||||
|
||||
public SurfaceView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
|
||||
mSurface.widget = this.widget;
|
||||
}
|
||||
|
||||
private void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
|
||||
for (SurfaceHolder.Callback c : mCallbacks) {
|
||||
c.surfaceChanged(mSurfaceHolder, format, width, height);
|
||||
@@ -197,7 +203,7 @@ public class SurfaceView extends View {
|
||||
@Override
|
||||
public Rect getSurfaceFrame() {
|
||||
// return mSurfaceFrame;
|
||||
return null;
|
||||
return new Rect(0, 0, 400, 400);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user