aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragmentBindingAdapter.java
blob: 6132de789978866f37f86da27f11899f47b69751 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package ml.docilealligator.infinityforreddit.fragments;

import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.media3.ui.PlayerView;

import com.google.android.material.bottomappbar.BottomAppBar;
import com.google.android.material.button.MaterialButton;

import ml.docilealligator.infinityforreddit.R;
import ml.docilealligator.infinityforreddit.databinding.FragmentViewRedditGalleryVideoBinding;

class ViewRedditGalleryVideoFragmentBindingAdapter {
    private FragmentViewRedditGalleryVideoBinding binding;

    private ImageButton muteButton;
    private BottomAppBar bottomAppBar;
    private TextView titleTextView;
    private MaterialButton backButton;
    private MaterialButton downloadButton;
    private MaterialButton playbackSpeedButton;

    ViewRedditGalleryVideoFragmentBindingAdapter(FragmentViewRedditGalleryVideoBinding binding) {
        this.binding = binding;
        muteButton = binding.getRoot().findViewById(R.id.mute_exo_playback_control_view);
        bottomAppBar = binding.getRoot().findViewById(R.id.bottom_navigation_exo_playback_control_view);
        titleTextView = binding.getRoot().findViewById(R.id.title_text_view_exo_playback_control_view);
        backButton = binding.getRoot().findViewById(R.id.back_button_exo_playback_control_view);
        downloadButton = binding.getRoot().findViewById(R.id.download_image_view_exo_playback_control_view);
        playbackSpeedButton = binding.getRoot().findViewById(R.id.playback_speed_image_view_exo_playback_control_view);
    }

    RelativeLayout getRoot() {
        return binding.getRoot();
    }

    PlayerView getPlayerView() {
        return binding.playerViewViewRedditGalleryVideoFragment;
    }

    ImageButton getMuteButton() {
        return muteButton;
    }

    BottomAppBar getBottomAppBar() {
        return bottomAppBar;
    }

    TextView getTitleTextView() {
        return titleTextView;
    }

    MaterialButton getBackButton() {
        return backButton;
    }

    MaterialButton getDownloadButton() {
        return downloadButton;
    }

    MaterialButton getPlaybackSpeedButton() {
        return playbackSpeedButton;
    }
}