xamarin/mobile-samples

AndroidMultiThreading leaks progress dialog

HeathHopkins opened this issue · 0 comments

In the MultiThreading project, the Android MainScreen.cs file tries to close the progress dialog in the task's ContinueWith. If you rotate the screen while the progress dialog is visible, the application complains that you've leaked a window. Is there any way to use parallel tasks that's safe for activity restarts?

Here's the error:

Activity androidmultithreading.screens.MainScreen has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40536a00