Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c1bab3e3 authored by inthewaves's avatar inthewaves Committed by Michael Bestas
Browse files

Fix resultCodes from WifiPickerActivity

This fixes the Wifi Activity inside SetupWizard.

The android.net.wifi.PICK_WIFI_NETWORK intent is received by
WifiPickerActivity, and then WifiPickerActivity launches the
WifiSettings Fragment, and then WifiSettings launches WifiSettings2, and
then WifiSettings finishes itself. (This is assuming that the
SETTINGS_WIFITRACKER2 feature flag is enabled.)

Instead of relying on WifiSettings to launch WifiSettings2, we should
just launch WifiSettings2 directly. If we don't do this, WifiSettings
finishing itself will send a resultCode of RESULT_CANCELLED to the app
that launched an Intent with action android.net.wifi.PICK_WIFI_NETWORK.
This means that the resultCode from WifiSettings2 will never get
propagated.

Change-Id: Ia4171b72d6213f902a820163ecaf1fb4eae4e6e6
parent 17427d3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment