Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
avazirna committed Mar 18, 2024
1 parent 7ba0f74 commit dd9f9e9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/src/org/commcare/views/media/CommCareMediaController.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,8 @@ public void hide() {
public void setAnchorView(View view) {
super.setAnchorView(view);

CommCareVideoView videoView;
if (fullscreenMode) {
videoView = view.findViewById(R.id.fullscreen_video_view);
} else {
videoView = view.findViewById(R.id.inline_video_view);
}
int videoViewId = fullscreenMode ? R.id.fullscreen_video_view : R.id.inline_video_view;
CommCareVideoView videoView = view.findViewById(videoViewId);

if (videoView != null) {
addFullscreenButton(videoView);
Expand Down

0 comments on commit dd9f9e9

Please sign in to comment.