Skip to content

Commit

Permalink
refactor: refactor var
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeCrp committed Dec 1, 2018
1 parent 7f9f424 commit 5e2ee6c
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ public class TravelFragment extends Fragment {
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View rootview = inflater.inflate(R.layout.fragment_travel, container, false);
title = rootview.findViewById(R.id.title);
sam = rootview.findViewById(R.id.sam);
logo_sam = rootview.findViewById(R.id.logo_sam);
passengers_names = rootview.findViewById(R.id.passengers_names);
nbplaces = rootview.findViewById(R.id.nb_places);
depart_place = rootview.findViewById(R.id.depart_place);
depart_time = rootview.findViewById(R.id.depart_time);
return_place = rootview.findViewById(R.id.return_place);
return_time = rootview.findViewById(R.id.return_time);
yourname = rootview.findViewById(R.id.your_name);
addButton = rootview.findViewById(R.id.add);
View rootView = inflater.inflate(R.layout.fragment_travel, container, false);
title = rootView.findViewById(R.id.title);
sam = rootView.findViewById(R.id.sam);
logo_sam = rootView.findViewById(R.id.logo_sam);
passengers_names = rootView.findViewById(R.id.passengers_names);
nbplaces = rootView.findViewById(R.id.nb_places);
depart_place = rootView.findViewById(R.id.depart_place);
depart_time = rootView.findViewById(R.id.depart_time);
return_place = rootView.findViewById(R.id.return_place);
return_time = rootView.findViewById(R.id.return_time);
yourname = rootView.findViewById(R.id.your_name);
addButton = rootView.findViewById(R.id.add);

Bundle bundle = getArguments();
travel = (Travel) bundle.getSerializable("TRAVEL");
Expand Down Expand Up @@ -109,7 +109,7 @@ public void onClick(View v) {
});


return rootview;
return rootView;
}

public void onAttach(Context context) {
Expand Down

0 comments on commit 5e2ee6c

Please sign in to comment.