Skip to content

Commit

Permalink
Remove dishonest return of lies and deceit
Browse files Browse the repository at this point in the history
  • Loading branch information
melonmanchan committed Apr 25, 2016
1 parent f9c0d31 commit 6969f71
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ public void onDecoderInitialized(String decoderName, long elapsedRealtimeMs, lon
public void onLayoutChange(View changedView, int left, int top, int right, int bottom,
int oldLeft, int oldTop, int oldRight, int oldBottom) {

// Not needed on API 21 and up
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT_WATCH) {
return;
}

if (rotationDegrees == -1 || view == null || changedView != view) {
return;
}
Expand Down

1 comment on commit 6969f71

@lnikkila
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that! 😂

Newer versions of ExoPlayer now return the unapplied rotation degrees in EventListener#onVideoSizeChanged. It’s not a perfect solution but it should be easier to use than this monstrosity I hacked together before there was any support for it.

Also I’m pretty happy that you’re still sticking with those film noir release names!

Please sign in to comment.