|
|
|
|
@ -202,14 +202,6 @@ public class SettingPlayerFragment extends BaseFragment implements UaCallback, B |
|
|
|
|
Setting.putDanmuLine(line); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void onDanmuSpeed(View view) { |
|
|
|
|
new MaterialAlertDialogBuilder(getActivity()).setTitle(R.string.player_danmu_speed).setNegativeButton(R.string.dialog_negative, null).setSingleChoiceItems(danmuSpeed, Setting.getDanmuSpeed(), (dialog, which) -> { |
|
|
|
|
mBinding.danmuSpeedText.setText(danmuSpeed[which]); |
|
|
|
|
Setting.putDanmuSpeed(which); |
|
|
|
|
dialog.dismiss(); |
|
|
|
|
}).show(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void onDanmuAlpha(View view) { |
|
|
|
|
DanmuAlphaDialog.create(this).show(); |
|
|
|
|
} |
|
|
|
|
@ -220,6 +212,14 @@ public class SettingPlayerFragment extends BaseFragment implements UaCallback, B |
|
|
|
|
Setting.putDanmuAlpha(alpha); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void onDanmuSpeed(View view) { |
|
|
|
|
new MaterialAlertDialogBuilder(getActivity()).setTitle(R.string.player_danmu_speed).setNegativeButton(R.string.dialog_negative, null).setSingleChoiceItems(danmuSpeed, Setting.getDanmuSpeed(), (dialog, which) -> { |
|
|
|
|
mBinding.danmuSpeedText.setText(danmuSpeed[which]); |
|
|
|
|
Setting.putDanmuSpeed(which); |
|
|
|
|
dialog.dismiss(); |
|
|
|
|
}).show(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void onBackground(View view) { |
|
|
|
|
new MaterialAlertDialogBuilder(getActivity()).setTitle(R.string.player_background).setNegativeButton(R.string.dialog_negative, null).setSingleChoiceItems(background, Setting.getBackground(), (dialog, which) -> { |
|
|
|
|
mBinding.backgroundText.setText(background[which]); |
|
|
|
|
|