Commit dbc4a2f7 authored by Geoffrey Métais's avatar Geoffrey Métais

Avoid casting to MainActivity

Since Advanced options dialog can now be launched on SecondaryActivity too.
parent 02616147
......@@ -397,7 +397,9 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
((VideoPlayerActivity)getActivity()).switchToAudioMode(true);
break;
case R.id.opt_equalizer:
((MainActivity)getActivity()).showSecondaryFragment(SecondaryActivity.EQUALIZER);
Intent i = new Intent(getActivity(), SecondaryActivity.class);
i.putExtra("fragment", SecondaryActivity.EQUALIZER);
startActivity(i);
dismiss();
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment