Merge "More concisely export whether we have a "tetherable configuration"" am: 1f2437c65a
am: b0949a3ede
Change-Id: Ic67b2d4589f586c67109216330f68cb1fc08c55a
This commit is contained in:
@@ -3108,10 +3108,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
|
||||
|
||||
Reference in New Issue
Block a user