Improve messaging when user disables location

At present, if the user disables location services, Wi-Fi Direct
printing will stop working without notification.

With this change, if a user has previously added a Wi-Fi Direct
printer, turns off location, then attempts a print, a notification
appears allowing them to either fix this problem, or disable
Wi-Fi Direct printing features.

This notification is integrated with the existing notification
flow for users who disable location permissions for the app.

Test: Turn off location services, attempt Wi-Fi direct print
Change-Id: I2f060cbbcd73d2a50a87b8d60b120c031fa347aa
Signed-off-by: Glade Diviney <>
4 files changed