[Wi-Fi] Fix NetworkRequestErrorDialogFragment exception when rotation
When rotating an androidx fragment, it uses default constructor to instantiate the new fragment instance. Every androidx fragment should not set private scope to it's default constructor. Bug: 153824549 Test: make RunSettingsRoboTests ROBOTEST_FILTER=NetworkRequestErrorDialogFragmentTest Change-Id: Ie1be0e033aa85d37cb4d85193b05beab72d4d8e7
This commit is contained in:
@@ -25,6 +25,7 @@ import android.os.Bundle;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.core.instrumentation.InstrumentedDialogFragment;
|
||||
|
||||
@@ -44,10 +45,6 @@ public class NetworkRequestErrorDialogFragment extends InstrumentedDialogFragmen
|
||||
return new NetworkRequestErrorDialogFragment();
|
||||
}
|
||||
|
||||
private NetworkRequestErrorDialogFragment() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCancel(@NonNull DialogInterface dialog) {
|
||||
super.onCancel(dialog);
|
||||
|
Reference in New Issue
Block a user