Merge "More concisely export whether we have a "tetherable configuration"" am: 1f2437c65a am: b0949a3ede

am: e7234fc716

Change-Id: Iba07ae91906fa2f0763dae831f56b4841572e1f1
This commit is contained in:
Erik Kline
2017-01-23 07:26:28 +00:00
committed by android-build-merger

View File

@@ -3130,10 +3130,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
Settings.Global.TETHER_SUPPORTED, defaultVal) != 0)
&& !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING);
return tetherEnabledInSettings && mUserManager.isAdminUser() &&
((mTethering.getTetherableUsbRegexs().length != 0 ||
mTethering.getTetherableWifiRegexs().length != 0 ||
mTethering.getTetherableBluetoothRegexs().length != 0) &&
mTethering.getUpstreamIfaceTypes().length != 0);
mTethering.hasTetherableConfiguration();
}
@Override