diff options
| author | 2024-04-22 18:08:21 +0800 | |
|---|---|---|
| committer | 2024-05-29 08:42:18 +0000 | |
| commit | d50976b3b17dba6f7d0a997d9c0a38ea07ca083d (patch) | |
| tree | b673add80eb29b8293c2ea3f9b2903d73dbd9f34 | |
| parent | ac3aebea22c2a5bd18f494c026b358a39388acd3 (diff) | |
Fix transition from Internet Tile to Share Wifi
Bug: 329396380
Test: manual
atest -c SystemUITests:InternetDialogControllerTest
Flag: NA
Merged-In: I521f550a16798705bd6e82ab95132515793589fa
Change-Id: I521f550a16798705bd6e82ab95132515793589fa
(cherry picked from commit 66beac5bfc513f93cf4e3937eda20a3b18abdbe1)
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java | 7 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegate.java | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java index 42d424869b42..dc826b53d351 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogController.java @@ -1370,15 +1370,12 @@ public class InternetDialogController implements AccessPointController.AccessPoi mDefaultDataSubId = defaultDataSubId; } - boolean mayLaunchShareWifiSettings(WifiEntry wifiEntry) { + boolean mayLaunchShareWifiSettings(WifiEntry wifiEntry, View view) { Intent intent = getConfiguratorQrCodeGeneratorIntentOrNull(wifiEntry); if (intent == null) { return false; } - if (mCallback != null) { - mCallback.dismissDialog(); - } - mActivityStarter.startActivity(intent, false /* dismissShade */); + startActivity(intent, view); return true; } diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegate.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegate.java index 1d14a8fd906c..39d2b98df273 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegate.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/InternetDialogDelegate.java @@ -400,7 +400,7 @@ public class InternetDialogDelegate implements }); mDoneButton.setOnClickListener(v -> dialog.dismiss()); mShareWifiButton.setOnClickListener(v -> { - if (mInternetDialogController.mayLaunchShareWifiSettings(mConnectedWifiEntry)) { + if (mInternetDialogController.mayLaunchShareWifiSettings(mConnectedWifiEntry, v)) { mUiEventLogger.log(InternetDialogEvent.SHARE_WIFI_QS_BUTTON_CLICKED); } }); |