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
}

View File

@@ -42,19 +42,6 @@
android:text="@string/action_update" />
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.google.android.material.button.MaterialButton
android:id="@+id/btnQueued"
style="@style/Widget.Material3.Button.TonalButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:enabled="false"
android:text="@string/download_queued" />
</RelativeLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">