From 566ebfde2b3195ec5897a680c879241c46f33477 Mon Sep 17 00:00:00 2001 From: Tsuwei Chen Date: Thu, 25 Sep 2014 14:33:08 -0700 Subject: Fix an incorrect behavior that failed AT&T privacy test. Bug: 17278951 Change-Id: I8b8bf4ed19af8738e7cef3553c8a06f7e27c7264 --- location/java/com/android/internal/location/GpsNetInitiatedHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'location') diff --git a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java index f0a2072..e9e475c 100644 --- a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java +++ b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java @@ -289,7 +289,7 @@ public class GpsNetInitiatedHandler { + " mPopupImmediately: " + mPopupImmediately + " mInEmergency: " + getInEmergency()); - if (getLocationEnabled() && !getInEmergency()) { + if (!getLocationEnabled() && !getInEmergency()) { // Location is currently disabled, ignore all NI requests. try { mNetInitiatedListener.sendNiResponse(notif.notificationId, -- cgit v1.1