Search in sources :

Example 11 with Pairing

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;
}
Also used : RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView) View(android.view.View) Pairing(co.krypt.krypton.pairing.Pairing) Nullable(android.support.annotation.Nullable)

Aggregations

Pairing (co.krypt.krypton.pairing.Pairing)11 View (android.view.View)3 TextView (android.widget.TextView)3 Analytics (co.krypt.krypton.analytics.Analytics)3 GitSignRequest (co.krypt.krypton.protocol.GitSignRequest)3 HostsRequest (co.krypt.krypton.protocol.HostsRequest)3 LogDecryptionRequest (co.krypt.krypton.protocol.LogDecryptionRequest)3 MeRequest (co.krypt.krypton.protocol.MeRequest)3 ReadTeamRequest (co.krypt.krypton.protocol.ReadTeamRequest)3 Request (co.krypt.krypton.protocol.Request)3 SignRequest (co.krypt.krypton.protocol.SignRequest)3 TeamOperationRequest (co.krypt.krypton.protocol.TeamOperationRequest)3 UnpairRequest (co.krypt.krypton.protocol.UnpairRequest)3 SQLException (java.sql.SQLException)3 Test (org.junit.Test)3 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)2 RecyclerView (android.support.v7.widget.RecyclerView)2 NetworkMessage (co.krypt.krypton.protocol.NetworkMessage)2 RequestBody (co.krypt.krypton.protocol.RequestBody)2 SQSPoller (co.krypt.krypton.transport.SQSPoller)2