Merge "Remove garbage spaces"
This commit is contained in:
@@ -46,7 +46,7 @@ public class Registrant
|
||||
{
|
||||
internalNotifyRegistrant (null, null);
|
||||
}
|
||||
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public void
|
||||
notifyResult(Object result)
|
||||
@@ -81,9 +81,7 @@ public class Registrant
|
||||
Message msg = Message.obtain();
|
||||
|
||||
msg.what = what;
|
||||
|
||||
msg.obj = new AsyncResult(userObj, result, exception);
|
||||
|
||||
h.sendMessage(msg);
|
||||
}
|
||||
}
|
||||
@@ -126,4 +124,3 @@ public class Registrant
|
||||
int what;
|
||||
Object userObj;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,9 +42,9 @@ public class RegistrantList
|
||||
{
|
||||
// if the handler is already in the registrant list, remove it
|
||||
remove(h);
|
||||
add(new Registrant(h, what, obj));
|
||||
add(new Registrant(h, what, obj));
|
||||
}
|
||||
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized void
|
||||
add(Registrant r)
|
||||
@@ -59,7 +59,7 @@ public class RegistrantList
|
||||
{
|
||||
for (int i = registrants.size() - 1; i >= 0 ; i--) {
|
||||
Registrant r = (Registrant) registrants.get(i);
|
||||
|
||||
|
||||
if (r.refH == null) {
|
||||
registrants.remove(i);
|
||||
}
|
||||
@@ -88,7 +88,7 @@ public class RegistrantList
|
||||
r.internalNotifyRegistrant(result, exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public /*synchronized*/ void
|
||||
notifyRegistrants()
|
||||
@@ -109,14 +109,14 @@ public class RegistrantList
|
||||
internalNotifyRegistrants (result, null);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public /*synchronized*/ void
|
||||
notifyRegistrants(AsyncResult ar)
|
||||
{
|
||||
internalNotifyRegistrants(ar.result, ar.exception);
|
||||
}
|
||||
|
||||
|
||||
@UnsupportedAppUsage
|
||||
public synchronized void
|
||||
remove(Handler h)
|
||||
|
||||
Reference in New Issue
Block a user