use of org.videolan.vlc.gui.helpers.OnRepeatListener in project vlc-android by GeoffreyMetais.
the class VideoPlayerActivity method showDelayControls.
public void showDelayControls() {
mTouchAction = TOUCH_NONE;
if (!mDisplayManager.isPrimary())
showOverlayTimeout(OVERLAY_INFINITE);
ViewStubCompat vsc = (ViewStubCompat) findViewById(R.id.player_overlay_settings_stub);
if (vsc != null) {
vsc.inflate();
mPlaybackSettingPlus = (ImageView) findViewById(R.id.player_delay_plus);
mPlaybackSettingMinus = (ImageView) findViewById(R.id.player_delay_minus);
}
mPlaybackSettingMinus.setOnClickListener(this);
mPlaybackSettingPlus.setOnClickListener(this);
mPlaybackSettingMinus.setOnTouchListener(new OnRepeatListener(this));
mPlaybackSettingPlus.setOnTouchListener(new OnRepeatListener(this));
mPlaybackSettingMinus.setVisibility(View.VISIBLE);
mPlaybackSettingPlus.setVisibility(View.VISIBLE);
mPlaybackSettingPlus.requestFocus();
initPlaybackSettingInfo();
}
Aggregations