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

Commit cda29099 authored by erfanian's avatar erfanian Committed by Copybara-Service
Browse files

Use context only after it is available.

Bug: 88003605
Test: Not possible; robo does not support a widget and the test suite is disabled.
PiperOrigin-RevId: 201587545
Change-Id: I3683cb5649f9384c63e2156c67a38b3ff31675d7
parent c451dd56
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -275,7 +275,8 @@ public final class NewSearchFragment extends Fragment
      return false;
    }

    if (PermissionsUtil.hasLocationPermissions(getContext())
    if (getContext() == null
        || PermissionsUtil.hasLocationPermissions(getContext())
        || hasBeenDismissed()
        || !isRegularSearch()) {
      adapter.hideLocationPermissionRequest();