Update action button on UI thread
This commit is contained in:
@@ -324,7 +324,8 @@ class AppDetailsFragment : BaseFragment(R.layout.fragment_details) {
|
|||||||
R.color.colorOrange
|
R.color.colorOrange
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
text = "${report.trackers.size} ${getString(R.string.exodus_substring)} ${report.version}"
|
text =
|
||||||
|
"${report.trackers.size} ${getString(R.string.exodus_substring)} ${report.version}"
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.layoutDetailsPrivacy.headerPrivacy.addClickListener {
|
binding.layoutDetailsPrivacy.headerPrivacy.addClickListener {
|
||||||
@@ -662,6 +663,7 @@ class AppDetailsFragment : BaseFragment(R.layout.fragment_details) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun expandBottomSheet(message: String?) {
|
private fun expandBottomSheet(message: String?) {
|
||||||
|
runOnUiThread {
|
||||||
bottomSheetBehavior.isHideable = false
|
bottomSheetBehavior.isHideable = false
|
||||||
bottomSheetBehavior.state = BottomSheetBehavior.STATE_EXPANDED
|
bottomSheetBehavior.state = BottomSheetBehavior.STATE_EXPANDED
|
||||||
|
|
||||||
@@ -674,8 +676,10 @@ class AppDetailsFragment : BaseFragment(R.layout.fragment_details) {
|
|||||||
btnDownload.setText(app.price)
|
btnDownload.setText(app.price)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun checkAndSetupInstall() {
|
private fun checkAndSetupInstall() {
|
||||||
|
runOnUiThread {
|
||||||
isInstalled = PackageUtil.isInstalled(requireContext(), app.packageName)
|
isInstalled = PackageUtil.isInstalled(requireContext(), app.packageName)
|
||||||
|
|
||||||
binding.layoutDetailsInstall.btnDownload.let { btn ->
|
binding.layoutDetailsInstall.btnDownload.let { btn ->
|
||||||
@@ -723,6 +727,7 @@ class AppDetailsFragment : BaseFragment(R.layout.fragment_details) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Synchronized
|
@Synchronized
|
||||||
private fun flip(nextView: Int) {
|
private fun flip(nextView: Int) {
|
||||||
|
|||||||
Reference in New Issue
Block a user