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

Commit 5f8afa79 authored by Roman Birg's avatar Roman Birg
Browse files

Dialer: stop asking for granted loc permission



Change-Id: I3bc954bb354213d33e8ca7cc99e8761746485876
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 3edb6490
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -58,10 +58,13 @@ public class RegularSearchFragment extends SearchFragment

        if (LookupSettings.isForwardLookupEnabled(getActivity())
                || LookupSettings.isPeopleLookupEnabled(getActivity())) {
            if (getActivity().checkSelfPermission(ACCESS_FINE_LOCATION)
                    != PackageManager.PERMISSION_GRANTED) {
                requestPermissions(new String[]{ACCESS_FINE_LOCATION},
                        ACCESS_FINE_LOCATION_PERMISSION_REQUEST_CODE);
            }
        }
    }

    public void configureDirectorySearch() {
        setDirectorySearchEnabled(true);