mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2025-04-07 19:22:06 +00:00
chore:code cleanup
This commit is contained in:
parent
e50239221d
commit
ec7522fcfa
1 changed files with 3 additions and 2 deletions
|
@ -56,12 +56,13 @@ class ProviderAdapter(
|
|||
holder.binding.provider = state.provider
|
||||
holder.binding.state = state
|
||||
if (state.provider.vehicleType == Provider.VehicleType.Inline) {
|
||||
holder.binding.endView.visibility = View.GONE
|
||||
holder.binding.elapsedView.visibility = View.GONE
|
||||
holder.binding.divider.visibility = View.GONE
|
||||
holder.binding.endView.visibility = View.GONE
|
||||
} else {
|
||||
holder.binding.endView.visibility = View.VISIBLE
|
||||
holder.binding.elapsedView.visibility = View.VISIBLE
|
||||
holder.binding.divider.visibility = View.VISIBLE
|
||||
holder.binding.endView.visibility = View.VISIBLE
|
||||
holder.binding.update = View.OnClickListener {
|
||||
state.updating = true
|
||||
requestUpdate(position, state.provider)
|
||||
|
|
Loading…
Add table
Reference in a new issue