Merge "More concisely export whether we have a "tetherable configuration"" am: edea114308 am: 9d02ee9030
am: fa0b8e4cee
Change-Id: Iba07ae91906fa2f0763dae831f56b4841572e1f1
This commit is contained in:
commit
52e97fcb8a
1 changed files with 1 additions and 4 deletions
|
|
@ -3130,10 +3130,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||||
Settings.Global.TETHER_SUPPORTED, defaultVal) != 0)
|
Settings.Global.TETHER_SUPPORTED, defaultVal) != 0)
|
||||||
&& !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING);
|
&& !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING);
|
||||||
return tetherEnabledInSettings && mUserManager.isAdminUser() &&
|
return tetherEnabledInSettings && mUserManager.isAdminUser() &&
|
||||||
((mTethering.getTetherableUsbRegexs().length != 0 ||
|
mTethering.hasTetherableConfiguration();
|
||||||
mTethering.getTetherableWifiRegexs().length != 0 ||
|
|
||||||
mTethering.getTetherableBluetoothRegexs().length != 0) &&
|
|
||||||
mTethering.getUpstreamIfaceTypes().length != 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue