Skip to content

Commit

Permalink
Fix: remove no update available textview
Browse files Browse the repository at this point in the history
  • Loading branch information
therajanmaurya committed Nov 26, 2020
1 parent 5dee451 commit 9840f7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ class SweetPlayAppUpdaterBottomSheet(
binding.llUpdateDownloadProgress.visibility = View.VISIBLE
}
InstallStatus.INSTALLED -> {
binding.tvUpdateInstallState.text = getString(R.string.update_installed)
binding.llNoUpdateAvailable.visibility = View.VISIBLE
}
InstallStatus.UNKNOWN -> {
Expand All @@ -207,6 +206,7 @@ class SweetPlayAppUpdaterBottomSheet(
}

private fun noUpdateAvailable() {
binding.tvUpdateAvailable.text = getString(R.string.no_update_available)
binding.llUpdateAction.visibility = View.GONE
binding.llCheckingUpdate.visibility = View.GONE
binding.llUpdateDownloadProgress.visibility = View.GONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,6 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/llCheckingUpdate">

<TextView
android:id="@+id/tvUpdateInstallState"
style="@style/SweetButtonStyle.Bordered"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"
android:text="@string/no_update_available" />

<com.google.android.material.button.MaterialButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 9840f7f

Please sign in to comment.