NetworkRequestDialog: Exit the dialog on connect failure
Connection failure (similar to connection success) is the end of the processng of a request. We should dismiss the dialog on connection failure. Bug: 158844146 Bug: 158616070 Test: Manual tests - Simulate connection failure and ensure that the dialog vanishes with a toast. Change-Id: I625ca76298ed549dbed76d398aea0c957c9102fc Merged-In: I625ca76298ed549dbed76d398aea0c957c9102fc
This commit is contained in:
@@ -126,4 +126,13 @@ public class NetworkRequestDialogActivityTest {
|
||||
|
||||
verify(mActivity).finish();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void updateAccessPointList_onUserSelectionConnectFailure_shouldFinishActivity() {
|
||||
final WifiConfiguration config = new WifiConfiguration();
|
||||
config.SSID = "Test AP 3";
|
||||
mActivity.onUserSelectionConnectFailure(config);
|
||||
|
||||
verify(mActivity).finish();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user