mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
adding a crashfix
This commit is contained in:
@ -267,6 +267,10 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
|||||||
fun searchQueryChanged(text: String) {
|
fun searchQueryChanged(text: String) {
|
||||||
val searchText = text.trim()
|
val searchText = text.trim()
|
||||||
Thread {
|
Thread {
|
||||||
|
if (context == null) {
|
||||||
|
return@Thread
|
||||||
|
}
|
||||||
|
|
||||||
when {
|
when {
|
||||||
searchText.isEmpty() -> activity?.runOnUiThread {
|
searchText.isEmpty() -> activity?.runOnUiThread {
|
||||||
mView.apply {
|
mView.apply {
|
||||||
|
Reference in New Issue
Block a user