Methods Summary |
---|
public final void | cancel()Handle the result if the user cancelled the dialog.
mResult = false;
wakeUp();
|
public final void | confirm()Handle a confirmation response from the user.
mResult = true;
wakeUp();
|
final boolean | getResult()
return mResult;
|
void | handleDefault()
setReady();
mResult = mDefaultValue;
wakeUp();
|
final void | setReady()
mReady = true;
if (mTriedToNotifyBeforeReady) {
wakeUp();
}
|
protected final void | wakeUp()
if (mReady) {
synchronized (mProxy) {
mProxy.notify();
}
} else {
mTriedToNotifyBeforeReady = true;
}
|