@@ -66,14 +66,7 @@ class home : Fragment() {
6666 var  progd: ProgressDialog ? = null 
6767
6868
69-  override  fun  onCreate (savedInstanceState :  Bundle ? ) {
70-  super .onCreate(savedInstanceState)
71-  arguments?.let  {
72-  param1 =  it.getString(ARG_PARAM1 )
73-  param2 =  it.getString(ARG_PARAM2 )
7469
75-  }
76-  }
7770
7871 override  fun  onCreateView (inflater :  LayoutInflater , container :  ViewGroup ? ,
7972 savedInstanceState :  Bundle ? ): View ?  {
@@ -91,62 +84,17 @@ class home : Fragment() {
9184 return  mView
9285 }
9386
94-  //  TODO: Rename method, update argument and hook method into UI event
95-  fun  onButtonPressed (uri :  Uri ) {
96-  listener?.onFragmentInteraction(uri)
97-  }
9887
99-  override  fun  onAttach (context :  Context ) {
100-  super .onAttach(context)
101-  if  (context is  OnFragmentInteractionListener ) {
102-  listener =  context
103-  } else  {
10488
105-  }
106-  }
10789
108-  override  fun  onDetach () {
109-  super .onDetach()
11090
111-  listener =  null 
112-  }
11391
114-  /* *
115-  * This interface must be implemented by activities that contain this 
116-  * fragment to allow an interaction in this fragment to be communicated 
117-  * to the activity and potentially other fragments contained in that 
118-  * activity. 
119-  * 
120-  * 
121-  * See the Android Training lesson [Communicating with Other Fragments] 
122-  * (http://developer.android.com/training/basics/fragments/communicating.html) 
123-  * for more information. 
124-  */  
12592 interface  OnFragmentInteractionListener  {
12693 //  TODO: Update argument type and name
12794 fun  onFragmentInteraction (uri :  Uri )
12895 }
12996
130-  companion  object  {
131-  /* *
132-  * Use this factory method to create a new instance of 
133-  * this fragment using the provided parameters. 
134-  * 
135-  * @param param1 Parameter 1. 
136-  * @param param2 Parameter 2. 
137-  * @return A new instance of fragment home. 
138-  */  
139-  //  TODO: Rename and change types and number of parameters
140-  @JvmStatic
141-  fun  newInstance (param1 :  String , param2 :  String ) = 
142-  home().apply  {
143-  arguments =  Bundle ().apply  {
144-  putString(ARG_PARAM1 , param1)
145-  putString(ARG_PARAM2 , param2)
146-  }
147-  }
148-  }
149- 
97+  
15098
15199
152100 fun  gethelc (){
0 commit comments