use of co.krypt.krypton.pairing.Pairing in project krypton-android by kryptco.
the class ApprovalsFragment method onCreateView.
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.approvals_list, container, false);
RecyclerView approvedRequestTypes = v.findViewById(R.id.approvedRequestTypes);
approvedRequestTypes.setAdapter(approvedRequestTypesAdapter);
approvedRequestTypes.setLayoutManager(new LinearLayoutManager(getContext(), RecyclerView.VERTICAL, false));
approvedRequestTypesContainer = v.findViewById(R.id.requestTypesContainer);
RecyclerView approvedSSHHosts = v.findViewById(R.id.approvedSSHHosts);
approvedSSHHosts.setAdapter(approvedSSHHostsAdapter);
approvedSSHHosts.setLayoutManager(new LinearLayoutManager(getContext(), RecyclerView.VERTICAL, false));
approvedSSHHostsContainer = v.findViewById(R.id.sshHostsContainer);
TextView workstationName = v.findViewById(R.id.workstationName);
Pairing pairing = Silo.shared(getContext()).pairings().getPairing(pairingUUID);
if (pairing != null) {
workstationName.setText(pairing.workstationName);
} else {
workstationName.setText("");
}
refreshAdapters();
return v;
}
Aggregations