Add unset and setOnIccRefresh.
A temporary hack as some binaries are using these methods. Bug: 4401309 Change-Id: I046f78f56c4a9300355e68488735da227991a773
This commit is contained in:
@@ -458,6 +458,9 @@ public abstract class BaseCommands implements CommandsInterface {
|
||||
Registrant r = new Registrant (h, what, obj);
|
||||
mIccRefreshRegistrants.add(r);
|
||||
}
|
||||
public void setOnIccRefresh(Handler h, int what, Object obj) {
|
||||
registerForIccRefresh(h, what, obj);
|
||||
}
|
||||
|
||||
public void setEmergencyCallbackMode(Handler h, int what, Object obj) {
|
||||
mEmergencyCallbackModeRegistrant = new Registrant (h, what, obj);
|
||||
@@ -466,6 +469,9 @@ public abstract class BaseCommands implements CommandsInterface {
|
||||
public void unregisterForIccRefresh(Handler h) {
|
||||
mIccRefreshRegistrants.remove(h);
|
||||
}
|
||||
public void unsetOnIccRefresh(Handler h) {
|
||||
unregisterForIccRefresh(h);
|
||||
}
|
||||
|
||||
public void setOnCallRing(Handler h, int what, Object obj) {
|
||||
mRingRegistrant = new Registrant (h, what, obj);
|
||||
|
||||
@@ -360,6 +360,9 @@ public interface CommandsInterface {
|
||||
void registerForIccRefresh(Handler h, int what, Object obj);
|
||||
void unregisterForIccRefresh(Handler h);
|
||||
|
||||
void setOnIccRefresh(Handler h, int what, Object obj);
|
||||
void unsetOnIccRefresh(Handler h);
|
||||
|
||||
/**
|
||||
* Sets the handler for RING notifications.
|
||||
* Unlike the register* methods, there's only one notification handler
|
||||
|
||||
Reference in New Issue
Block a user