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

Commit a21fbfa6 authored by Weng Su's avatar Weng Su
Browse files

Refine WifiDetailsSettingsActivity

- Use the parameter's intent to avoid re-creating it in getIntent()

Bug: 349180072
Flag: EXEMPT bugfix
Test: Manual testing
Change-Id: Ia3549eccf22e30c4fd1ae011c51cf7840c76b1e5
parent f94d3761
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ public class Settings extends SettingsActivity {
    public static class WifiDetailsSettingsActivity extends SettingsActivity {
        @Override
        protected void createUiFromIntent(@Nullable Bundle savedState, Intent intent) {
            Bundle bundle = getIntent().getBundleExtra(EXTRA_SHOW_FRAGMENT_ARGUMENTS);
            Bundle bundle = intent.getBundleExtra(EXTRA_SHOW_FRAGMENT_ARGUMENTS);
            if (TextUtils.isEmpty(bundle.getString(WifiUtils.KEY_CHOSEN_WIFIENTRY_KEY))) {
                Log.e(getLocalClassName(), "The key of WifiEntry is empty!");
                finishAndRemoveTask();