mirror of
https://github.com/androidx/media.git
synced 2025-05-04 06:00:37 +08:00
SimpleExoPlayerView: Remove a bit of dead code
These variables are never read, since the underlying control view reads them directly from the attrs. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138528246
This commit is contained in:
parent
7b0effc2d0
commit
d5cbb101ed
@ -189,8 +189,6 @@ public final class SimpleExoPlayerView extends FrameLayout {
|
|||||||
boolean useController = true;
|
boolean useController = true;
|
||||||
int surfaceType = SURFACE_TYPE_SURFACE_VIEW;
|
int surfaceType = SURFACE_TYPE_SURFACE_VIEW;
|
||||||
int resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT;
|
int resizeMode = AspectRatioFrameLayout.RESIZE_MODE_FIT;
|
||||||
int rewindMs = PlaybackControlView.DEFAULT_REWIND_MS;
|
|
||||||
int fastForwardMs = PlaybackControlView.DEFAULT_FAST_FORWARD_MS;
|
|
||||||
int controllerShowTimeoutMs = PlaybackControlView.DEFAULT_SHOW_TIMEOUT_MS;
|
int controllerShowTimeoutMs = PlaybackControlView.DEFAULT_SHOW_TIMEOUT_MS;
|
||||||
if (attrs != null) {
|
if (attrs != null) {
|
||||||
TypedArray a = context.getTheme().obtainStyledAttributes(attrs,
|
TypedArray a = context.getTheme().obtainStyledAttributes(attrs,
|
||||||
@ -202,9 +200,6 @@ public final class SimpleExoPlayerView extends FrameLayout {
|
|||||||
useController = a.getBoolean(R.styleable.SimpleExoPlayerView_use_controller, useController);
|
useController = a.getBoolean(R.styleable.SimpleExoPlayerView_use_controller, useController);
|
||||||
surfaceType = a.getInt(R.styleable.SimpleExoPlayerView_surface_type, surfaceType);
|
surfaceType = a.getInt(R.styleable.SimpleExoPlayerView_surface_type, surfaceType);
|
||||||
resizeMode = a.getInt(R.styleable.SimpleExoPlayerView_resize_mode, resizeMode);
|
resizeMode = a.getInt(R.styleable.SimpleExoPlayerView_resize_mode, resizeMode);
|
||||||
rewindMs = a.getInt(R.styleable.SimpleExoPlayerView_rewind_increment, rewindMs);
|
|
||||||
fastForwardMs = a.getInt(R.styleable.SimpleExoPlayerView_fastforward_increment,
|
|
||||||
fastForwardMs);
|
|
||||||
controllerShowTimeoutMs = a.getInt(R.styleable.SimpleExoPlayerView_show_timeout,
|
controllerShowTimeoutMs = a.getInt(R.styleable.SimpleExoPlayerView_show_timeout,
|
||||||
controllerShowTimeoutMs);
|
controllerShowTimeoutMs);
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user