mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Move findViewById() out of callback
This commit is contained in:
committed by
Torsten Grote
parent
946c79d918
commit
301085c685
@@ -81,10 +81,9 @@ public class ConfirmAvatarDialogFragment extends DialogFragment {
|
||||
imageView.setImageResource(R.drawable.contact_connected);
|
||||
imageView.setImageURI(uri);
|
||||
|
||||
settingsViewModel.getOwnIdentityInfo().observe(activity, us -> {
|
||||
TextView textViewUserName = view.findViewById(R.id.username);
|
||||
textViewUserName.setText(us.getLocalAuthor().getName());
|
||||
});
|
||||
TextView textViewUserName = view.findViewById(R.id.username);
|
||||
settingsViewModel.getOwnIdentityInfo().observe(activity,
|
||||
us -> textViewUserName.setText(us.getLocalAuthor().getName()));
|
||||
|
||||
return builder.create();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user