Skip to content

Commit

Permalink
Remove aspect ratio fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexodessa committed Dec 17, 2024
1 parent 879e513 commit 84048f5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/src/main/java/com/openipc/pixelpilot/VideoActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,6 @@ public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
constraintSet.setMargin(R.id.surfaceViewLeft, ConstraintSet.START, margin);
constraintSet.setMargin(R.id.surfaceViewRight, ConstraintSet.END, margin);
constraintSet.applyTo(constraintLayout);
updateViewRatio(R.id.surfaceViewLeft, lastVideoW, lastVideoH);
updateViewRatio(R.id.surfaceViewRight, lastVideoW, lastVideoH);

// Save progress value
SharedPreferences sharedPreferences = getSharedPreferences("SeekBarPrefs", MODE_PRIVATE);
Expand All @@ -343,8 +341,7 @@ public void onProgressChanged(SeekBar distanceSeekBar, int progressD, boolean fr
constraintSet.setMargin(R.id.surfaceViewLeft, ConstraintSet.END, size);
constraintSet.setMargin(R.id.surfaceViewRight, ConstraintSet.START, size);
constraintSet.applyTo(constraintLayout);
updateViewRatio(R.id.surfaceViewLeft, lastVideoW, lastVideoH);
updateViewRatio(R.id.surfaceViewRight, lastVideoW, lastVideoH);

// Save progress value
SharedPreferences sharedPreferencesd = getSharedPreferences("SeekBarPrefsD", MODE_PRIVATE);
SharedPreferences.Editor editor = sharedPreferencesd.edit();
Expand Down

0 comments on commit 84048f5

Please sign in to comment.