Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e41e6000 authored by Ethan Chen's avatar Ethan Chen Committed by Gerrit Code Review
Browse files

Telephony: Convert subscription ID to int from long

Change-Id: Ib7c3a64042d3111fb23f3ffda6258479e3f77b0d
parent 9f997db3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -930,10 +930,10 @@ public class TelecomManager {
     * Returns current active subscription.
     * @hide
     */
    public long getActiveSubscription() {
    public int getActiveSubscription() {
        try {
            if (isServiceConnected()) {
                return getTelecomService().getActiveSubscription();
                return (int)getTelecomService().getActiveSubscription();
            }
        } catch (RemoteException e) {
            Log.e(TAG, "RemoteException attempting to get the active subsription.", e);
@@ -945,7 +945,7 @@ public class TelecomManager {
     * switches to other active subscription.
     * @hide
     */
    public void switchToOtherActiveSub(long subId) {
    public void switchToOtherActiveSub(int subId) {
        try {
            if (isServiceConnected()) {
                getTelecomService().switchToOtherActiveSub(subId);
+2 −2
Original line number Diff line number Diff line
@@ -212,10 +212,10 @@ interface ITelecomService {
    /**
     * @see TelecommManager#getActiveSubscription
     */
    long getActiveSubscription();
    int getActiveSubscription();

    /**
     * @see TelecommManager#switchToOtherActiveSub
     */
    void switchToOtherActiveSub(long subId);
    void switchToOtherActiveSub(int subId);
}