From 3decfd9d0d043c710f48cc145027a7b6bd45df8f Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Fri, 12 Feb 2021 11:00:47 +0100 Subject: Renaming and adding some functions for the home buttons. --- app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt | 11 ++++++++++- app/src/main/java/xyz/adjutor/aniki/MainActivity.kt | 6 ++---- app/src/main/java/xyz/adjutor/aniki/SecondFragment.kt | 3 ++- 3 files changed, 14 insertions(+), 6 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt b/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt index 05e5673..e2fa6eb 100644 --- a/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt +++ b/app/src/main/java/xyz/adjutor/aniki/FirstFragment.kt @@ -7,6 +7,7 @@ import android.view.View import android.view.ViewGroup import android.widget.Button import androidx.navigation.fragment.findNavController +import com.google.android.material.snackbar.Snackbar /** * A simple [Fragment] subclass as the default destination in the navigation. @@ -24,8 +25,16 @@ class FirstFragment : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { super.onViewCreated(view, savedInstanceState) - view.findViewById