Move cancelMissedCallsNotification to PhoneManager.

Change-Id: I2ce26e77ef1f0acc11552bf28efc039391e09766
This commit is contained in:
Santos Cordon
2014-07-02 13:20:40 -07:00
parent 53e3b38b09
commit 3c4ff9effc
5 changed files with 20 additions and 15 deletions

View File

@@ -62,6 +62,20 @@ public final class PhoneManager {
return false;
}
/**
* Removes the missed-call notification if one is present.
* <p>
* Requires that the caller be set at the system dialer app.
* </p>
*/
public void cancelMissedCallsNotification() {
try {
mService.cancelMissedCallsNotification();
} catch (RemoteException e) {
Log.e(TAG, "Error calling ITelecommService#cancelMissedCallNotification", e);
}
}
private ITelephony getITelephony() {
return ITelephony.Stub.asInterface(ServiceManager.getService(Context.TELEPHONY_SERVICE));
}