Skip to content

Commit 8017794

Browse files
author
Xia Wang
committed
Remove sleep from test acitivity to avoid ANR when key event is injected
bug#: 5737922 Change-Id: I7871713c5000d122e63127b30d0151b8f5a29bcf
1 parent 8f04ae3 commit 8017794

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ConnectivityManagerTestActivity.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,6 @@ protected void onCreate(Bundle savedInstanceState) {
249249
sleep(SHORT_TIMEOUT);
250250
removeConfiguredNetworksAndDisableWifi();
251251
mWifiRegexs = mCM.getTetherableWifiRegexs();
252-
// after wifi is shutdown, wait for 2 minute to enable wifi
253-
sleep(WIFI_STOP_START_INTERVAL);
254252
}
255253

256254
public List<WifiConfiguration> loadNetworkConfigurations() throws Exception {

0 commit comments

Comments
 (0)