ANR observed under settings when trying to reset network settings

- Move reset network settings code to async task.

Test: manual, Robolectric
Fixes: 130772994
Change-Id: I59345f48ed840ecfd64c29c2c20ab8caf2679f63
Merged-In: I59345f48ed840ecfd64c29c2c20ab8caf2679f63
This commit is contained in:
Raff Tsai
2019-04-22 14:52:28 +08:00
parent 27e0c844ae
commit 1f0a1171b7
3 changed files with 112 additions and 88 deletions

View File

@@ -51,4 +51,9 @@ public class ShadowBluetoothAdapter extends org.robolectric.shadows.ShadowBlueto
public void setConnectionState(int state) {
mState = state;
}
@Implementation
protected boolean factoryReset() {
return true;
}
}