Merge "[MEP] Handle downloadSubscription with switchAfterDownload is set to true" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c3bc12ad77
@@ -29,7 +29,6 @@ import android.content.Intent;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
import android.os.RemoteException;
|
import android.os.RemoteException;
|
||||||
import android.telephony.TelephonyManager;
|
|
||||||
import android.telephony.euicc.DownloadableSubscription;
|
import android.telephony.euicc.DownloadableSubscription;
|
||||||
import android.telephony.euicc.EuiccInfo;
|
import android.telephony.euicc.EuiccInfo;
|
||||||
import android.telephony.euicc.EuiccManager;
|
import android.telephony.euicc.EuiccManager;
|
||||||
@@ -744,18 +743,16 @@ public abstract class EuiccService extends Service {
|
|||||||
public void run() {
|
public void run() {
|
||||||
DownloadSubscriptionResult result;
|
DownloadSubscriptionResult result;
|
||||||
try {
|
try {
|
||||||
result =
|
result = EuiccService.this.onDownloadSubscription(
|
||||||
EuiccService.this.onDownloadSubscription(
|
slotId, portIndex, subscription, switchAfterDownload,
|
||||||
slotId, subscription, switchAfterDownload, forceDeactivateSim,
|
forceDeactivateSim, resolvedBundle);
|
||||||
resolvedBundle);
|
|
||||||
} catch (AbstractMethodError e) {
|
} catch (AbstractMethodError e) {
|
||||||
Log.w(TAG, "The new onDownloadSubscription(int, "
|
Log.w(TAG, "The new onDownloadSubscription(int, int, "
|
||||||
+ "DownloadableSubscription, boolean, boolean, Bundle) is not "
|
+ "DownloadableSubscription, boolean, boolean, Bundle) is not "
|
||||||
+ "implemented. Fall back to the old one.", e);
|
+ "implemented. Fall back to the old one.", e);
|
||||||
int resultCode = EuiccService.this.onDownloadSubscription(
|
result = EuiccService.this.onDownloadSubscription(
|
||||||
slotId, subscription, switchAfterDownload, forceDeactivateSim);
|
slotId, subscription, switchAfterDownload,
|
||||||
result = new DownloadSubscriptionResult(resultCode,
|
forceDeactivateSim, resolvedBundle);
|
||||||
0 /* resolvableErrors */, TelephonyManager.UNSUPPORTED_CARD_ID);
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
callback.onComplete(result);
|
callback.onComplete(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user