am 43f99202: Merge change 26896 into eclair
Merge commit '43f9920271848c0ec84a958bfa06542c8fb7e4fa' into eclair-plus-aosp * commit '43f9920271848c0ec84a958bfa06542c8fb7e4fa': ResultTransport needs a default value. If the thread is
This commit is contained in:
@@ -116,6 +116,10 @@ class CallbackProxy extends Handler {
|
|||||||
// Private result object
|
// Private result object
|
||||||
private E mResult;
|
private E mResult;
|
||||||
|
|
||||||
|
public ResultTransport(E defaultResult) {
|
||||||
|
mResult = defaultResult;
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized void setResult(E result) {
|
public synchronized void setResult(E result) {
|
||||||
mResult = result;
|
mResult = result;
|
||||||
}
|
}
|
||||||
@@ -819,7 +823,7 @@ class CallbackProxy extends Handler {
|
|||||||
public boolean shouldOverrideUrlLoading(String url) {
|
public boolean shouldOverrideUrlLoading(String url) {
|
||||||
// We have a default behavior if no client exists so always send the
|
// We have a default behavior if no client exists so always send the
|
||||||
// message.
|
// message.
|
||||||
ResultTransport<Boolean> res = new ResultTransport<Boolean>();
|
ResultTransport<Boolean> res = new ResultTransport<Boolean>(false);
|
||||||
Message msg = obtainMessage(OVERRIDE_URL);
|
Message msg = obtainMessage(OVERRIDE_URL);
|
||||||
msg.getData().putString("url", url);
|
msg.getData().putString("url", url);
|
||||||
msg.obj = res;
|
msg.obj = res;
|
||||||
|
|||||||
Reference in New Issue
Block a user