mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
ConversationSettingsFragemten: use lambdas in two places
This commit is contained in:
@@ -89,15 +89,12 @@ public class ConversationSettingsFragment extends BaseFragment {
|
|||||||
contentView.findViewById(R.id.switchDisappearingMessages);
|
contentView.findViewById(R.id.switchDisappearingMessages);
|
||||||
|
|
||||||
switchDisappearingMessages
|
switchDisappearingMessages
|
||||||
.setOnCheckedChangeListener((button, value) -> {
|
.setOnCheckedChangeListener((button, value) -> viewModel
|
||||||
viewModel.setAutoDeleteTimerEnabled(value);
|
.setAutoDeleteTimerEnabled(value));
|
||||||
});
|
|
||||||
|
|
||||||
TextView buttonLearnMore =
|
TextView buttonLearnMore =
|
||||||
contentView.findViewById(R.id.buttonLearnMore);
|
contentView.findViewById(R.id.buttonLearnMore);
|
||||||
buttonLearnMore.setOnClickListener(e -> {
|
buttonLearnMore.setOnClickListener(e -> showLearnMoreDialog());
|
||||||
showLearnMoreDialog();
|
|
||||||
});
|
|
||||||
|
|
||||||
viewModel = ViewModelProviders.of(requireActivity(), viewModelFactory)
|
viewModel = ViewModelProviders.of(requireActivity(), viewModelFactory)
|
||||||
.get(ConversationViewModel.class);
|
.get(ConversationViewModel.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user