mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Address first round of review feedback for mailbox pairing UI
This commit is contained in:
@@ -56,6 +56,7 @@ public class ErrorFragment extends FinalFragment {
|
||||
@Nullable ViewGroup container,
|
||||
@Nullable Bundle savedInstanceState) {
|
||||
View v = super.onCreateView(inflater, container, savedInstanceState);
|
||||
// Do not hijack back button events, but let the activity process them
|
||||
onBackPressedCallback.remove();
|
||||
buttonView.setText(R.string.try_again_button);
|
||||
buttonView.setOnClickListener(view -> {
|
||||
|
||||
@@ -61,7 +61,8 @@ public class MailboxStatusFragment extends Fragment {
|
||||
long lastSuccess = state.mailboxStatus.getTimeOfLastSuccess();
|
||||
String lastConnectionText;
|
||||
if (lastSuccess < 0) {
|
||||
lastConnectionText = getString(R.string.pref_lock_timeout_never);
|
||||
lastConnectionText =
|
||||
getString(R.string.mailbox_status_connected_never);
|
||||
} else {
|
||||
lastConnectionText = formatDate(requireContext(), lastSuccess);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user