[Android] Storages adapter: Do not clear job too soon
Geoffrey Métais
git at videolan.org
Thu Feb 13 12:17:13 CET 2020
vlc-android | branch: 3.2.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 13 12:15:44 2020 +0100| [11e581688c1db290574eb09c9058dddb7ae2bbb8] | committer: Geoffrey Métais
Storages adapter: Do not clear job too soon
> https://code.videolan.org/videolan/vlc-android/commit/11e581688c1db290574eb09c9058dddb7ae2bbb8
---
vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt
index 0bafc890c..3bf988b81 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.kt
@@ -67,8 +67,7 @@ internal class StorageBrowserAdapter(fragment: StorageBrowserFragment) : BaseBro
hasDiscoveredChildren(storagePath) -> vh.binding.browserCheckbox.state = ThreeStatesCheckbox.STATE_PARTIAL
else -> vh.binding.browserCheckbox.state = ThreeStatesCheckbox.STATE_UNCHECKED
}
- vh.binding.checkEnabled = !(fragment as StorageBrowserFragment).scannedDirectory
- vh.job = null
+ vh.binding.checkEnabled = !fragment.scannedDirectory
}
}
More information about the Android
mailing list