Add Instant hotspot preference
- Add Instant hotspot preference to Wi-Fi hotspot settings
- Wait onServiceConnected callback and then getSettingsState
- Use the PendingIntent provided by SharedConnectivitySettingsState to launch Instant hotspot settings
Bug: 268550769
Test: manual test
atest -c WifiTetherSettingsTest
atest -c WifiTetherViewModelTest \
SharedConnectivityRepositoryTest
Merged-In: I343599e6127d9b1cb4af661dcc80a8683589c7b8
Change-Id: I343599e6127d9b1cb4af661dcc80a8683589c7b8
This commit is contained in:
@@ -59,4 +59,10 @@
|
||||
android:summary="@string/summary_placeholder"
|
||||
android:fragment="com.android.settings.wifi.tether.WifiHotspotSpeedSettings"
|
||||
settings:isPreferenceVisible="@bool/config_show_wifi_hotspot_speed"/>
|
||||
|
||||
<Preference
|
||||
android:key="wifi_hotspot_instant"
|
||||
android:title="@string/wifi_hotspot_instant_title"
|
||||
android:summary="@string/summary_placeholder"
|
||||
settings:isPreferenceVisible="false"/>
|
||||
</PreferenceScreen>
|
||||
|
||||
Reference in New Issue
Block a user