mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-21 01:25:19 +01:00
Fixed Edge-to-Edge
This commit is contained in:
parent
ea4a54d404
commit
09ad243a14
6 changed files with 63 additions and 14 deletions
|
@ -108,7 +108,6 @@ abstract class AbsRecyclerViewFragment<A : RecyclerView.Adapter<*>, LM : Recycle
|
|||
}
|
||||
val appName = resources.getString(titleRes)
|
||||
binding.appBarLayout.title = appName
|
||||
//toolbarContainer.drawNextToNavbar()
|
||||
}
|
||||
|
||||
abstract val titleRes: Int
|
||||
|
|
|
@ -21,6 +21,7 @@ import android.view.MenuItem
|
|||
import android.view.View
|
||||
import androidx.core.view.ViewCompat
|
||||
import androidx.core.view.doOnPreDraw
|
||||
import androidx.core.view.isVisible
|
||||
import androidx.navigation.fragment.navArgs
|
||||
import androidx.recyclerview.widget.DefaultItemAnimator
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
|
@ -100,7 +101,7 @@ class GenreDetailsFragment : AbsMainActivityFragment(R.layout.fragment_playlist_
|
|||
private fun checkIsEmpty() {
|
||||
checkForPadding()
|
||||
binding.emptyEmoji.text = getEmojiByUnicode(0x1F631)
|
||||
binding.empty.visibility = if (songAdapter.itemCount == 0) View.VISIBLE else View.GONE
|
||||
binding.empty.isVisible = songAdapter.itemCount == 0
|
||||
}
|
||||
|
||||
private fun checkForPadding() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue