commit | 22830a896d2a0275bdb955f59dca28f9e41c0adc | [log] [tgz] |
---|---|---|
author | erfanian <erfanian@google.com> | Thu Jun 21 16:24:57 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Thu Jun 21 16:24:57 2018 -0700 |
tree | 4c9609c8da017443d1bebd4c6a5a82d447cbc30d | |
parent | c180acc21c90945ff77d4389d70652da27fd4b90 [diff] | |
parent | a623ed78c0bba1826f29d53167ad483325d66dca [diff] |
Merge "Use context only after it is available." am: 1432364e3e am: a623ed78c0 Change-Id: I09ae67d4ca12eb13f9f7ee46edb92248835f6b90
diff --git a/java/com/android/dialer/searchfragment/list/NewSearchFragment.java b/java/com/android/dialer/searchfragment/list/NewSearchFragment.java index 5417fcf..fd6db75 100644 --- a/java/com/android/dialer/searchfragment/list/NewSearchFragment.java +++ b/java/com/android/dialer/searchfragment/list/NewSearchFragment.java
@@ -275,7 +275,8 @@ return false; } - if (PermissionsUtil.hasLocationPermissions(getContext()) + if (getContext() == null + || PermissionsUtil.hasLocationPermissions(getContext()) || hasBeenDismissed() || !isRegularSearch()) { adapter.hideLocationPermissionRequest();