Permalink
Browse files

hide full control bar instead of just seekbar

  • Loading branch information...
1 parent d0ffc93 commit db9c2240bff546eb62e36c49aca4a288bc7ff2c7 @vitriolix vitriolix committed Apr 3, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 app/src/info/guardianproject/mrapp/OrderClipsFragment.java
@@ -9,6 +9,7 @@
import java.io.IOException;
import org.ffmpeg.android.MediaDesc;
+import org.holoeverywhere.widget.LinearLayout;
import org.holoeverywhere.widget.SeekBar;
import org.holoeverywhere.widget.SeekBar.OnSeekBarChangeListener;
import org.json.JSONException;
@@ -50,6 +51,7 @@
Button mPlayButton, mButtonAddNarration, mButtonPlayNarration;
private ImageView mImageViewMedia;
private PreviewVideoView mPreviewVideoView = null;
+ private LinearLayout mLLControlBar = null;
private SeekBar mSeekBar = null;
RangeSeekBar<Integer> mRangeSeekBar = null;
ViewGroup mRangeSeekBarContainer = null;
@@ -101,6 +103,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
mPreviewVideoView = (PreviewVideoView) view.findViewById(R.id.previewVideoView);
+ mLLControlBar = (LinearLayout) view.findViewById(R.id.llControlBar);
+
mSeekBar = (SeekBar) view.findViewById(R.id.seekBar1);
mSeekBar.setOnSeekBarChangeListener(new OnSeekBarChangeListener(){
@@ -520,11 +524,11 @@ private void renderPreview ()
public void enableTrim(boolean enable) {
if (enable) {
- mSeekBar.setVisibility(View.GONE);
+ mLLControlBar.setVisibility(View.GONE);
mRangeSeekBarContainer.setVisibility(View.VISIBLE);
mTrimMode = true;
} else {
- mSeekBar.setVisibility(View.VISIBLE);
+ mLLControlBar.setVisibility(View.VISIBLE);
mRangeSeekBarContainer.setVisibility(View.GONE);
mTrimMode = false;
}

0 comments on commit db9c224

Please sign in to comment.