diff --git a/app/src/main/java/com/example/tasklist/ChangePass.kt b/app/src/main/java/com/example/tasklist/ChangePass.kt index 5216eba..87769a1 100644 --- a/app/src/main/java/com/example/tasklist/ChangePass.kt +++ b/app/src/main/java/com/example/tasklist/ChangePass.kt @@ -34,10 +34,6 @@ class ChangePass : Fragment(){ override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - val sharedPreference = - requireActivity().getSharedPreferences("sharedPref", Context.MODE_PRIVATE) - val savedString = sharedPreference.getString("STRING_KEY", null) - Toast.makeText(requireActivity(),savedString,Toast.LENGTH_SHORT).show() } override fun onCreateView( @@ -49,7 +45,6 @@ class ChangePass : Fragment(){ inflater, R.layout.fragment_change_pass, container, false ) - binding.change = this@ChangePass return binding.root } diff --git a/app/src/main/java/com/example/tasklist/LoginPage.kt b/app/src/main/java/com/example/tasklist/LoginPage.kt index 49af8d2..decb2d5 100644 --- a/app/src/main/java/com/example/tasklist/LoginPage.kt +++ b/app/src/main/java/com/example/tasklist/LoginPage.kt @@ -31,11 +31,6 @@ class LoginPage : Fragment(){ override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) - val sharedPreference = - requireActivity().getSharedPreferences("sharedPref", Context.MODE_PRIVATE) - val savedString = sharedPreference.getString("STRING_KEY", null) - Toast.makeText(requireActivity(),savedString,Toast.LENGTH_SHORT).show() - } override fun onCreateView( diff --git a/app/src/main/java/com/example/tasklist/SetPass.kt b/app/src/main/java/com/example/tasklist/SetPass.kt index 286ad4b..1fc1d07 100644 --- a/app/src/main/java/com/example/tasklist/SetPass.kt +++ b/app/src/main/java/com/example/tasklist/SetPass.kt @@ -40,7 +40,6 @@ class SetPass : Fragment() { inflater, R.layout.fragment_set_pass, container, false ) - binding.setpass = this@SetPass return binding.root } @@ -75,5 +74,4 @@ class SetPass : Fragment() { return BigInteger(1, md.digest(input.toByteArray())).toString(16).padStart(32, '0') } - }