From 976d9d53cc704d27f0a37c896bd8681279ce71f6 Mon Sep 17 00:00:00 2001 From: Prathamesh More Date: Wed, 24 Nov 2021 20:58:35 +0530 Subject: [PATCH] Code Cleanup --- .../retromusic/fragments/backup/BackupFragment.kt | 1 - app/src/main/res/layout/fragment_backup.xml | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/app/src/main/java/code/name/monkey/retromusic/fragments/backup/BackupFragment.kt b/app/src/main/java/code/name/monkey/retromusic/fragments/backup/BackupFragment.kt index 3b887056..11e8a7f0 100644 --- a/app/src/main/java/code/name/monkey/retromusic/fragments/backup/BackupFragment.kt +++ b/app/src/main/java/code/name/monkey/retromusic/fragments/backup/BackupFragment.kt @@ -71,7 +71,6 @@ class BackupFragment : Fragment(R.layout.fragment_backup), BackupAdapter.BackupC private fun checkIsEmpty() { val isEmpty = backupAdapter!!.itemCount == 0 - binding.emptyText.isVisible = isEmpty binding.backupTitle.isVisible = !isEmpty binding.backupRecyclerview.isVisible = !isEmpty } diff --git a/app/src/main/res/layout/fragment_backup.xml b/app/src/main/res/layout/fragment_backup.xml index 9e1a3c9f..fa22e3f2 100644 --- a/app/src/main/res/layout/fragment_backup.xml +++ b/app/src/main/res/layout/fragment_backup.xml @@ -1,7 +1,6 @@ @@ -59,18 +58,4 @@ app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/backup_title" /> - - - \ No newline at end of file