Search in sources :

Example 1 with FragmentMediaPlayerViewModel

use of net.iGap.viewmodel.FragmentMediaPlayerViewModel in project iGap-Android by KianIranian-STDG.

the class FragmentMediaPlayer method initDataBinding.

private void initDataBinding() {
    if (G.twoPaneMode) {
        fragmentMediaPlayerViewModel = new FragmentMediaPlayerViewModel(fragmentMediaPlayerBinding.getRoot());
        fragmentMediaPlayerBinding.setFragmentMediaPlayerViewModel(fragmentMediaPlayerViewModel);
    } else {
        if (G.context.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
            fragmentMediaPlayerViewModel = new FragmentMediaPlayerViewModel(activityMediaPlayerLandBinding.getRoot());
            activityMediaPlayerLandBinding.setFragmentMediaPlayerViewModel(fragmentMediaPlayerViewModel);
        } else {
            fragmentMediaPlayerViewModel = new FragmentMediaPlayerViewModel(fragmentMediaPlayerBinding.getRoot());
            fragmentMediaPlayerBinding.setFragmentMediaPlayerViewModel(fragmentMediaPlayerViewModel);
        }
    }
}
Also used : FragmentMediaPlayerViewModel(net.iGap.viewmodel.FragmentMediaPlayerViewModel)

Aggregations

FragmentMediaPlayerViewModel (net.iGap.viewmodel.FragmentMediaPlayerViewModel)1