Can this Runnable cause a memory leak, when app is closed?

Viewed 75

I have this piece of code in my onViewCreated to request focus on my EditText .

someEditText.apply { post { requestFocus() } }

Let's say that the app is closed before that Runnable completes.

Is it possible to create a memory leak in such scenario and if so, how should I solve it?

0 Answers
Related