| Chunk |
|---|
| Conflicting content |
|---|
}
private class MobileDataStateReceiver extends BroadcastReceiver {
<<<<<<< HEAD
IConnectivityManager mConnectivityManager;
=======
ConnectivityManager mConnectivityManager;
>>>>>>> 4600139173c80db4ebfb70e2417231e9678d37f9
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(TelephonyIntents.
ACTION_ANY_DATA_CONNECTION_STATE_CHANGED)) { |
| Solution content |
|---|
}
private class MobileDataStateReceiver extends BroadcastReceiver {
IConnectivityManager mConnectivityManager;
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(TelephonyIntents.
ACTION_ANY_DATA_CONNECTION_STATE_CHANGED)) { |
| File |
|---|
| MobileDataStateTracker.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Chunk |
|---|
| Conflicting content |
|---|
setTeardownRequested(false);
}
<<<<<<< HEAD
setDetailedState(DetailedState.DISCONNECTED, reason, apnName);
boolean doReset = true;
if (mIsDefaultOrHipri == true) {
// both default and hipri must go down before we reset
int typeToCheck = (Phone.APN_TYPE_DEFAULT.equals(mApnType) ?
ConnectivityManager.TYPE_MOBILE_HIPRI :
ConnectivityManager.TYPE_MOBILE);
if (mConnectivityManager == null) {
IBinder b = ServiceManager.getService(
mContext.CONNECTIVITY_SERVICE);
mConnectivityManager = IConnectivityManager.Stub.asInterface(b);
=======
setDetailedState(DetailedState.DISCONNECTED, reason, apnName);
boolean doReset = true;
if (mIsDefaultOrHipri == true) {
// both default and hipri must go down before we reset
int typeToCheck = (Phone.APN_TYPE_DEFAULT.equals(mApnType) ?
ConnectivityManager.TYPE_MOBILE_HIPRI :
ConnectivityManager.TYPE_MOBILE);
if (mConnectivityManager == null) {
mConnectivityManager =
(ConnectivityManager)context.getSystemService(
Context.CONNECTIVITY_SERVICE);
}
if (mConnectivityManager != null) {
NetworkInfo info = mConnectivityManager.getNetworkInfo(
typeToCheck);
if (info != null && info.isConnected() == true) {
doReset = false;
}
}
}
if (doReset && mInterfaceName != null) {
NetworkUtils.resetConnections(mInterfaceName);
>>>>>>> 4600139173c80db4ebfb70e2417231e9678d37f9
}
try {
if (mConnectivityManager != null) { |
| Solution content |
|---|
setTeardownRequested(false);
}
setDetailedState(DetailedState.DISCONNECTED, reason, apnName);
boolean doReset = true;
if (mIsDefaultOrHipri == true) {
// both default and hipri must go down before we reset
int typeToCheck = (Phone.APN_TYPE_DEFAULT.equals(mApnType) ?
ConnectivityManager.TYPE_MOBILE_HIPRI :
ConnectivityManager.TYPE_MOBILE);
if (mConnectivityManager == null) {
IBinder b = ServiceManager.getService(
mContext.CONNECTIVITY_SERVICE);
mConnectivityManager = IConnectivityManager.Stub.asInterface(b);
}
try {
if (mConnectivityManager != null) { |
| File |
|---|
| MobileDataStateTracker.java |
| Developer's decision |
|---|
| Version 1 |
| Kind of conflict |
|---|
| Attribute |
| Comment |
| If statement |
| Method invocation |
| Variable |