I already said where I was calling it - in an overridden showDialog method
in the subclass of DialogPreference. This is the code:
protected void showDialog(Bundle b) {
super.showDialog(b);
if(onLaunch != null) {
onLaunch.run();
}
}
In particular, it's being called after super.showDialog is called. What I
don't understand is why the second dialog (which is launched by the
runnable) is still appearing under the first dialog.
On Saturday, November 2, 2013 6:59:42 PM UTC-4, TreKing wrote:
>
>
> On Sat, Nov 2, 2013 at 5:28 PM, Michael Palmer
> <[email protected]<javascript:>
> > wrote:
>
>> When onCreateDialogView is called, the Runnable is assigned a value.
>> This Runnable object is actually created in a method call in the custom
>> view subclass itself. This class stores a dialog variable. The Runnable
>> will show the dialog if it is both not null and not showing. This
>> condition happens after a call to onRestoreInstanceState with data
>> indicating that the dialog was open - it will create a new dialog and
>> assign it to this variable, but not show it.
>>
>
> I mean, how are you actually putting this Runnable to use? When and how do
> you call it? What method (not referring java function) are you using it
> execute it? Code snip if you have it.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
--
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
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.