[Settings] Avoid from Exception breaks the rule

When querying subscription(s) which not supported by telephony framework
could lead to exception. Which will lead to incorrect control in code
flow when filtering subscriptions which support WiFiCalling out of all
subscriptions available.

Bug: 149190278
Test: local
Change-Id: I3b8bcea6c724cad83559159ed9435f0710594b83
This commit is contained in:
Bonian Chen
2021-07-05 16:29:33 +08:00
parent d0748126b0
commit 05f29efe34

View File

@@ -251,7 +251,7 @@ public class WifiCallingSettings extends InstrumentedFragment implements HelpRes
if (queryImsState(subId).isWifiCallingProvisioned()) {
selectedList.add(subInfo);
}
} finally {}
} catch (Exception exception) {}
}
return selectedList;
}