Skip to content

Commit

Permalink
Show empty view meanwhile recyclerview process is finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Ivan Fernandez Suarez committed May 5, 2023
1 parent e609cd5 commit 33875c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.omh.android.storage.sample.drive

import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.GridLayoutManager
Expand All @@ -21,14 +22,17 @@ class ActivityFilesAndFolders : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
prepareViewBindings()
//binding.rvEmptyView.root.visibility = View.VISIBLE
binding.rvEmptyView.root.visibility = View.VISIBLE
binding.tvSortByName.visibility = View.GONE
}

private fun prepareViewBindings() {
setContentView(binding.root)
/*
tvSortByName = binding.tvSortByName
rvFilesAndFolders = binding.rvFilesAndFolders
prepareViews()
*/
}

private fun prepareViews() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class ActivitySplash : AppCompatActivity() {
@Inject
lateinit var omhAuthClient: OmhAuthClient

@Inject
lateinit var omhStorageClient: OmhStorageClient
// @Inject lateinit var omhStorageClient: OmhStorageClient

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Expand All @@ -42,10 +41,11 @@ class ActivitySplash : AppCompatActivity() {
null -> return@launch
else -> error("Unsupported credential type")
}

/*
if (token != null) {
omhStorageClient.setupAccessToken(token)
}
*/
}

private fun navigateToFilesAndFolders() {
Expand Down

0 comments on commit 33875c5

Please sign in to comment.