From 67f8e89598923b7cf862a5d34b40a08e9eafc7ed Mon Sep 17 00:00:00 2001 From: peet Date: Sun, 16 Jan 2022 17:50:54 +0100 Subject: [PATCH] renamed gallery to settings --- .../main/java/org/ddnss/sfs/git/wdg/noise/MainActivity.kt | 2 +- .../ddnss/sfs/git/wdg/noise/ui/gallery/GalleryFragment.kt | 6 +++--- .../layout/{fragment_gallery.xml => fragment_settings.xml} | 0 app/src/main/res/navigation/mobile_navigation.xml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename app/src/main/res/layout/{fragment_gallery.xml => fragment_settings.xml} (100%) diff --git a/app/src/main/java/org/ddnss/sfs/git/wdg/noise/MainActivity.kt b/app/src/main/java/org/ddnss/sfs/git/wdg/noise/MainActivity.kt index d1070ab..8c2c10c 100644 --- a/app/src/main/java/org/ddnss/sfs/git/wdg/noise/MainActivity.kt +++ b/app/src/main/java/org/ddnss/sfs/git/wdg/noise/MainActivity.kt @@ -51,7 +51,7 @@ class MainActivity : AppCompatActivity() { val text: TextView = findViewById(R.id.testData) lifecycleScope.launchWhenResumed { - val response = apolloClient.query(GetUsersQuery()).execute() + val response = apolloClient.query(GetGroupChatsQuery("7bea8833b6d64a37ae0949619e06b692", "1234567890")).execute() //Log.d("LaunchList", "Success ${response.data}") text.text = response.data.toString() diff --git a/app/src/main/java/org/ddnss/sfs/git/wdg/noise/ui/gallery/GalleryFragment.kt b/app/src/main/java/org/ddnss/sfs/git/wdg/noise/ui/gallery/GalleryFragment.kt index ed6b85f..487483a 100644 --- a/app/src/main/java/org/ddnss/sfs/git/wdg/noise/ui/gallery/GalleryFragment.kt +++ b/app/src/main/java/org/ddnss/sfs/git/wdg/noise/ui/gallery/GalleryFragment.kt @@ -10,12 +10,12 @@ import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.lifecycleScope import org.ddnss.sfs.git.wdg.noise.GetUsersQuery import org.ddnss.sfs.git.wdg.noise.apolloClient -import org.ddnss.sfs.git.wdg.noise.databinding.FragmentGalleryBinding +import org.ddnss.sfs.git.wdg.noise.databinding.FragmentSettingsBinding class GalleryFragment : Fragment() { private lateinit var galleryViewModel: GalleryViewModel - private var _binding: FragmentGalleryBinding? = null + private var _binding: FragmentSettingsBinding? = null // This property is only valid between onCreateView and // onDestroyView. @@ -31,7 +31,7 @@ class GalleryFragment : Fragment() { galleryViewModel = ViewModelProvider(this).get(GalleryViewModel::class.java) - _binding = FragmentGalleryBinding.inflate(inflater, container, false) + _binding = FragmentSettingsBinding.inflate(inflater, container, false) val root: View = binding.root return root diff --git a/app/src/main/res/layout/fragment_gallery.xml b/app/src/main/res/layout/fragment_settings.xml similarity index 100% rename from app/src/main/res/layout/fragment_gallery.xml rename to app/src/main/res/layout/fragment_settings.xml diff --git a/app/src/main/res/navigation/mobile_navigation.xml b/app/src/main/res/navigation/mobile_navigation.xml index 24014af..618b620 100644 --- a/app/src/main/res/navigation/mobile_navigation.xml +++ b/app/src/main/res/navigation/mobile_navigation.xml @@ -15,5 +15,5 @@ android:id="@+id/nav_gallery" android:name="org.ddnss.sfs.git.wdg.noise.ui.gallery.GalleryFragment" android:label="@string/menu_settings" - tools:layout="@layout/fragment_gallery" /> + tools:layout="@layout/fragment_settings" /> \ No newline at end of file