Merge "Fix exception when filtering the APPs which can CHANGE_WIFI_STATE" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-03-04 10:40:39 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 1 deletions

View File

@@ -83,7 +83,8 @@ public class AppStateChangeWifiStateBridge extends AppStateAppOpsBridge {
@Override
public boolean filterApp(AppEntry info) {
if (info == null || info.extraInfo == null) {
if (info == null || info.extraInfo == null
|| !(info.extraInfo instanceof WifiSettingsState)) {
return false;
}
WifiSettingsState wifiSettingsState = (WifiSettingsState) info.extraInfo;