So why does the Drawable fail to repeat? Looks like the problem lies in restoring the dialog before whole layout is initialized.. which is quite weird. Is there a way to retrieve the list of opened dialogs associated to current Activity?
On 20 Sie, 12:11, Kostya Vasilyev <[email protected]> wrote: > The actual dialog objects get destroyed, and re-created around the time > of onRestoreInstanceState in the new activity instance (causing > onCreateDialog / onPrepareDialog to be called). > > http://www.google.com/codesearch#uX1GffpyOZk/core/java/android/app/Ac... > <http://www.google.com/codesearch#uX1GffpyOZk/core/java/android/app/Ac...> > > -- Kostya > > 20.08.2011 14:04, Snowak пишет: > > > Sorry for double posting, but there's one more thing that bothers me > > regarding this problem. Dialog requires to pass Activity as a context, > > but when changing screen orientation that activity is destroyed. How > > can it use the cached dialog with invalid context? Is it setting it to > > the new one? > > -- > Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

