startTethering with silent entitlement in systemui
During R development cycle, default entitlement check is changed from
silent to showUI(start activity) in TetheringRequest. So start hotspot
by systemui is changed from silent to trigger UI. Expcility set
entitlement back to silent check in systemui for better user experience.
Fix: 182724427
Fix: 169493230
Test: atest HotspotControllerImplTest
atest CtsTetheringTest
on/off hotspot by systemui
Change-Id: Ida1964e28a7b2d0f1a1394e5de2ec437e0bc420a
This commit is contained in:
@@ -193,7 +193,8 @@ public class HotspotControllerImpl implements HotspotController, WifiManager.Sof
|
||||
if (enabled) {
|
||||
mWaitingForTerminalState = true;
|
||||
if (DEBUG) Log.d(TAG, "Starting tethering");
|
||||
mTetheringManager.startTethering(new TetheringRequest.Builder(TETHERING_WIFI).build(),
|
||||
mTetheringManager.startTethering(new TetheringRequest.Builder(
|
||||
TETHERING_WIFI).setShouldShowEntitlementUi(false).build(),
|
||||
ConcurrentUtils.DIRECT_EXECUTOR,
|
||||
new TetheringManager.StartTetheringCallback() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user