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
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user