UpdateButton: Drop unused view from viewflipper

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2024-11-04 15:00:30 +05:30
parent 7af3da5288
commit cef0a9d4f1
2 changed files with 1 additions and 14 deletions

View File

@@ -55,7 +55,7 @@ class UpdateButton : RelativeLayout {
fun updateState(downloadStatus: DownloadStatus) {
val displayChild = when (downloadStatus) {
DownloadStatus.QUEUED,
DownloadStatus.DOWNLOADING -> 2
DownloadStatus.DOWNLOADING -> 1
else -> 0
}