Merge "Allow non-persistent manual network selection." into mnc-dr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
896f738cdd
@@ -3571,11 +3571,12 @@ public class TelephonyManager {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public boolean setNetworkSelectionModeManual(int subId, OperatorInfo operator) {
|
public boolean setNetworkSelectionModeManual(int subId, OperatorInfo operator,
|
||||||
|
boolean persistSelection) {
|
||||||
try {
|
try {
|
||||||
ITelephony telephony = getITelephony();
|
ITelephony telephony = getITelephony();
|
||||||
if (telephony != null)
|
if (telephony != null)
|
||||||
return telephony.setNetworkSelectionModeManual(subId, operator);
|
return telephony.setNetworkSelectionModeManual(subId, operator, persistSelection);
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
Rlog.e(TAG, "setNetworkSelectionModeManual RemoteException", ex);
|
Rlog.e(TAG, "setNetworkSelectionModeManual RemoteException", ex);
|
||||||
} catch (NullPointerException ex) {
|
} catch (NullPointerException ex) {
|
||||||
|
|||||||
@@ -707,9 +707,13 @@ interface ITelephony {
|
|||||||
*
|
*
|
||||||
* @param subId the id of the subscription.
|
* @param subId the id of the subscription.
|
||||||
* @param operatorInfo the operator to attach to.
|
* @param operatorInfo the operator to attach to.
|
||||||
|
* @param persistSelection should the selection persist till reboot or its
|
||||||
|
* turned off? Will also result in notification being not shown to
|
||||||
|
* the user if the signal is lost.
|
||||||
* @return true if the request suceeded.
|
* @return true if the request suceeded.
|
||||||
*/
|
*/
|
||||||
boolean setNetworkSelectionModeManual(int subId, in OperatorInfo operator);
|
boolean setNetworkSelectionModeManual(int subId, in OperatorInfo operator,
|
||||||
|
boolean persistSelection);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the preferred network type.
|
* Set the preferred network type.
|
||||||
|
|||||||
Reference in New Issue
Block a user