Commit 2439df36 authored by Adrien Maglo's avatar Adrien Maglo
Browse files

Audio player: allow to open the equalizer from the advanced options menu

parent 5c1332c8
......@@ -35,7 +35,6 @@
android:layout_height="wrap_content" />
<View
android:id="@+id/add_subtitle_divider"
android:layout_width="match_parent"
android:layout_height="1px"
android:background="#8FFF"
......@@ -49,6 +48,15 @@
android:background="@drawable/background_item"
android:text="@string/subtitle_label"
android:textAppearance="?android:attr/textAppearanceMedium" />
<TextView
android:id="@+id/equalizer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:background="@drawable/background_item"
android:text="@string/equalizer"
android:textAppearance="?android:attr/textAppearanceMedium" />
</LinearLayout>
</ScrollView>
\ No newline at end of file
......@@ -112,8 +112,8 @@ public class CommonDialogs {
}
}
View add_subtitle_divider = view.findViewById(R.id.add_subtitle_divider);
TextView add_subtitle = (TextView)view.findViewById(R.id.add_subtitle);
TextView equalizer = (TextView)view.findViewById(R.id.equalizer);
if(t == MenuType.Video) {
add_subtitle.setOnClickListener(new View.OnClickListener() {
@Override
......@@ -150,9 +150,17 @@ public class CommonDialogs {
dialog.dismiss();
}
});
equalizer.setVisibility(View.GONE);
} else {
final MainActivity activity = (MainActivity)context;
equalizer.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
activity.showNewFragment("equalizer");
dialog.dismiss();
}
});
add_subtitle.setVisibility(View.GONE);
add_subtitle_divider.setVisibility(View.GONE);
}
// show dialog
......
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