|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package fr.iut.cinecool.fragments
|
|
|
|
|
|
|
|
|
|
import android.content.Context.LOCATION_SERVICE
|
|
|
|
|
import android.location.LocationManager
|
|
|
|
|
import android.os.Bundle
|
|
|
|
|
import androidx.fragment.app.Fragment
|
|
|
|
|
import android.view.LayoutInflater
|
|
|
|
@ -7,13 +9,14 @@ import android.view.View
|
|
|
|
|
import android.view.ViewGroup
|
|
|
|
|
import android.widget.EditText
|
|
|
|
|
import android.widget.ImageView
|
|
|
|
|
import androidx.core.content.ContextCompat.getSystemService
|
|
|
|
|
import androidx.navigation.fragment.findNavController
|
|
|
|
|
import fr.iut.cinecool.R
|
|
|
|
|
import fr.iut.cinecool.databinding.FragmentLoginBinding
|
|
|
|
|
import fr.iut.cinecool.databinding.FragmentMoviesBinding
|
|
|
|
|
|
|
|
|
|
class LoginFragment : Fragment() {
|
|
|
|
|
|
|
|
|
|
private var locationManager : LocationManager? = null
|
|
|
|
|
private var _binding: FragmentLoginBinding? = null
|
|
|
|
|
private val binding get() = _binding!!
|
|
|
|
|
override fun onCreateView(
|
|
|
|
@ -25,6 +28,8 @@ class LoginFragment : Fragment() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
|
|
|
|
//locationManager = this.context?.let { getSystemService(it,LOCATION_SERVICE) } as LocationManager?
|
|
|
|
|
|
|
|
|
|
super.onViewCreated(view, savedInstanceState)
|
|
|
|
|
val loginButton = view.findViewById<ImageView>(R.id.loginButton)
|
|
|
|
|
loginButton.setOnClickListener(){
|
|
|
|
|