forked from upstream-mirrors/OpenTracks
Protects MyTracks notifications based on the settings bit.
Only sends broadcast notifications if allowed by the settings bit. Introduces a permission for internal MyTracks communication. Thus the MyTracks app widget can use this permission to always receive broadcast notifications when a track starts and stops.
This commit is contained in:
@@ -53,4 +53,8 @@ limitations under the License.
|
||||
<string name="start_new_track_action">com.google.android.apps.mytracks.START_NEW_TRACK</string>
|
||||
<string name="end_current_track_action">com.google.android.apps.mytracks.END_CURRENT_TRACK
|
||||
</string>
|
||||
|
||||
<!-- Permissions -->
|
||||
<!-- Permission for MyTracks notifications. -->
|
||||
<string name="mytracks_notifications_permission">com.google.android.apps.mytracks.MYTRACKS_NOTIFICATIONS</string>
|
||||
</resources>
|
||||
|
||||
@@ -524,11 +524,14 @@ limitations under the License.
|
||||
|
||||
<!-- Manifest description (not seen inside the app) -->
|
||||
<string name="notification_permission_label">receive MyTracks notifications</string>
|
||||
<string name="mytracks_notifications_permission_label">receive MyTracks notifications</string>
|
||||
<string name="read_tracks_permission_label">read MyTracks data</string>
|
||||
<string name="write_tracks_permission_label">write data to MyTracks and start/stop MyTracks
|
||||
recording</string>
|
||||
<string name="notification_permission_description">Allows the application to receive notifications
|
||||
when MyTracks starts or stops a recording.</string>
|
||||
<string name="mytracks_notifications_permission_description">receive MyTracks notifications
|
||||
</string>
|
||||
<string name="read_tracks_permission_description">Allows the application to read MyTracks data.
|
||||
</string>
|
||||
<string name="write_tracks_permission_description">Allows the application to write data to
|
||||
|
||||
Reference in New Issue
Block a user