renamed gallery to settings
This commit is contained in:
parent
987116e877
commit
67f8e89598
@ -51,7 +51,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
val text: TextView = findViewById<TextView>(R.id.testData)
|
val text: TextView = findViewById<TextView>(R.id.testData)
|
||||||
|
|
||||||
lifecycleScope.launchWhenResumed {
|
lifecycleScope.launchWhenResumed {
|
||||||
val response = apolloClient.query(GetUsersQuery()).execute()
|
val response = apolloClient.query(GetGroupChatsQuery("7bea8833b6d64a37ae0949619e06b692", "1234567890")).execute()
|
||||||
|
|
||||||
//Log.d("LaunchList", "Success ${response.data}")
|
//Log.d("LaunchList", "Success ${response.data}")
|
||||||
text.text = response.data.toString()
|
text.text = response.data.toString()
|
||||||
|
@ -10,12 +10,12 @@ import androidx.lifecycle.ViewModelProvider
|
|||||||
import androidx.lifecycle.lifecycleScope
|
import androidx.lifecycle.lifecycleScope
|
||||||
import org.ddnss.sfs.git.wdg.noise.GetUsersQuery
|
import org.ddnss.sfs.git.wdg.noise.GetUsersQuery
|
||||||
import org.ddnss.sfs.git.wdg.noise.apolloClient
|
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() {
|
class GalleryFragment : Fragment() {
|
||||||
|
|
||||||
private lateinit var galleryViewModel: GalleryViewModel
|
private lateinit var galleryViewModel: GalleryViewModel
|
||||||
private var _binding: FragmentGalleryBinding? = null
|
private var _binding: FragmentSettingsBinding? = null
|
||||||
|
|
||||||
// This property is only valid between onCreateView and
|
// This property is only valid between onCreateView and
|
||||||
// onDestroyView.
|
// onDestroyView.
|
||||||
@ -31,7 +31,7 @@ class GalleryFragment : Fragment() {
|
|||||||
galleryViewModel =
|
galleryViewModel =
|
||||||
ViewModelProvider(this).get(GalleryViewModel::class.java)
|
ViewModelProvider(this).get(GalleryViewModel::class.java)
|
||||||
|
|
||||||
_binding = FragmentGalleryBinding.inflate(inflater, container, false)
|
_binding = FragmentSettingsBinding.inflate(inflater, container, false)
|
||||||
val root: View = binding.root
|
val root: View = binding.root
|
||||||
|
|
||||||
return root
|
return root
|
||||||
|
@ -15,5 +15,5 @@
|
|||||||
android:id="@+id/nav_gallery"
|
android:id="@+id/nav_gallery"
|
||||||
android:name="org.ddnss.sfs.git.wdg.noise.ui.gallery.GalleryFragment"
|
android:name="org.ddnss.sfs.git.wdg.noise.ui.gallery.GalleryFragment"
|
||||||
android:label="@string/menu_settings"
|
android:label="@string/menu_settings"
|
||||||
tools:layout="@layout/fragment_gallery" />
|
tools:layout="@layout/fragment_settings" />
|
||||||
</navigation>
|
</navigation>
|
Loading…
Reference in New Issue
Block a user