Handle quote position task finishing after fragment detaches.
There's a chance that the AsyncTask that retrieves a quoted message's position could finish after the fragment is detached, which would cause a crash. I've changed it so if this case occurs, the result is ignored. Also, I noticed that when searching the message table, if a quote can't be found, we'd end up traversing the entire table. To prevent this from taking forever on large message tables, I've limited it to searchin only what is currently present in the adapter. Fixes #7756pull/1/head
parent
ca8fecea9c
commit
17dbdbd0a9
Loading…
Reference in New Issue