am 2f835a61: Merge "Make copies of NetworkInfo to give out." into honeycomb-LTE
* commit '2f835a6193c14e27cf761d85ac3ea4c9bd9296f8': Make copies of NetworkInfo to give out.
This commit is contained in:
@@ -138,6 +138,23 @@ public class NetworkInfo implements Parcelable {
|
|||||||
mIsRoaming = false;
|
mIsRoaming = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** {@hide} */
|
||||||
|
public NetworkInfo(NetworkInfo source) {
|
||||||
|
if (source != null) {
|
||||||
|
mNetworkType = source.mNetworkType;
|
||||||
|
mSubtype = source.mSubtype;
|
||||||
|
mTypeName = source.mTypeName;
|
||||||
|
mSubtypeName = source.mSubtypeName;
|
||||||
|
mState = source.mState;
|
||||||
|
mDetailedState = source.mDetailedState;
|
||||||
|
mReason = source.mReason;
|
||||||
|
mExtraInfo = source.mExtraInfo;
|
||||||
|
mIsFailover = source.mIsFailover;
|
||||||
|
mIsRoaming = source.mIsRoaming;
|
||||||
|
mIsAvailable = source.mIsAvailable;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reports the type of network (currently mobile or Wi-Fi) to which the
|
* Reports the type of network (currently mobile or Wi-Fi) to which the
|
||||||
* info in this object pertains.
|
* info in this object pertains.
|
||||||
|
|||||||
Reference in New Issue
Block a user