Skip to content
Snippets Groups Projects
Commit b31d69fc authored by Bastien T'jampens's avatar Bastien T'jampens
Browse files

Q3

parent a4762758
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
......@@ -40,6 +41,8 @@ public class VueGenerale extends Fragment {
view.findViewById(R.id.btnToListe).setOnClickListener(view1 -> {
// TODO Q3
NavHostFragment.findNavController(VueGenerale.this).navigate(R.id.generale_to_liste);
TextView tvLogin = (TextView) view.findViewById(R.id.tvLogin);
this.model.setUsername(tvLogin.getText().toString());
});
// TODO Q5.b
......
......@@ -32,7 +32,7 @@ public class VueListe extends Fragment /* TODO Q7 */ {
// TODO Q2c
model = new SuiviViewModel(getActivity().getApplication());
// TODO Q6.b
// TODO Q7
// TODO Q8
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment