Merge "Fix exception when filtering the APPs which can CHANGE_WIFI_STATE" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
d3946b5479
@@ -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;
|
||||
|
Reference in New Issue
Block a user