Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df76919f authored by Arowa Suliman's avatar Arowa Suliman Committed by Android (Google) Code Review
Browse files

Merge "SystemServiceRegistry: Avoid WTF if WifiAware is unsupported" into main

parents 1ffe4a73 4174a508
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -2049,6 +2049,11 @@ public final class SystemServiceRegistry {
                        return null;
                        return null;
                    }
                    }
                    break;
                    break;
                case Context.WIFI_AWARE_SERVICE:
                    if (!hasSystemFeatureOpportunistic(ctx, PackageManager.FEATURE_WIFI_AWARE)) {
                        return null;
                    }
                    break;
            }
            }
            // TODO (b/404593897): make it a case of the switch statement above when the flag is
            // TODO (b/404593897): make it a case of the switch statement above when the flag is
            //  removed.
            //  removed.