Settings: Adapt edge-to-edge enforcement

Android 15 enables edge-to-edge by default. WI-FI info should do the
adaptation, or not some UIs may be obscured by system bars.

Apply window insets for WifiConfigInfo and WifiStatusTest activity
content layout.

Bug: 340713923
Test: Manaul

Change-Id: Iecaadfa1be55544809b240df9c2097e3b4d053f9
This commit is contained in:
Qiang Chen
2024-06-28 10:35:04 +05:30
parent d78409d41f
commit 9507c61155
3 changed files with 39 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ public class WifiConfigInfo extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WifiUtils.setupEdgeToEdge(this);
mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
setContentView(R.layout.wifi_config_info);