Skip to content

Commit

Permalink
Permission explanation dialog includes notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mendhak committed Oct 24, 2024
1 parent 5cf8c8c commit 2578850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ public void askUserForBasicPermissions() {
.title(getString(R.string.gpslogger_permissions_rationale_title))
.msgHtml(getString(R.string.gpslogger_permissions_rationale_message_basic)
+ "<br />" + getString(R.string.gpslogger_permissions_rationale_message_location)
+ (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU ? "<br />" + getString(R.string.gpslogger_permissions_rationale_message_notification) : "")
+ "<br />" + getString(R.string.gpslogger_permissions_rationale_message_storage)
+ "<br />" + getString(R.string.gpslogger_permissions_rationale_message_location_background)
+ "<br />" + getString(R.string.gpslogger_permissions_rationale_message_battery_optimization)
Expand Down
1 change: 1 addition & 0 deletions gpslogger/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@
<string name="gpslogger_permissions_rationale_title">Permissions required</string>
<string name="gpslogger_permissions_rationale_message_basic"><![CDATA[This app requires various permissions in order to function properly. You will now be prompted multiple times for various permissions (sorry). Here is an explanation of each permission. ]]></string>
<string name="gpslogger_permissions_rationale_message_location"><![CDATA[<b>Device location</b> - This permission allows reading location data from cell towers and the device GPS hardware.]]></string>
<string name="gpslogger_permissions_rationale_message_notification"><![CDATA[<b>Notifications</b> - Allow showing a notification, this helps with keeping the logging service alive. ]]></string>
<string name="gpslogger_permissions_rationale_message_storage"><![CDATA[<b>Photos, media, files</b> - This permission allows writing log files and test files to storage, and reading from a list of files for uploading or sharing. This app will not access your photos or media.]]></string>
<string name="gpslogger_permissions_rationale_message_location_background"><![CDATA[<b>Allow all the time</b> - Allow this app to receive location updates when running in the background. ]]></string>
<string name="gpslogger_permissions_rationale_message_battery_optimization"><![CDATA[<b>Ignore battery optimization</b> - Allow this app to run in the background by reducing battery optimization. ]]></string>
Expand Down

0 comments on commit 2578850

Please sign in to comment.