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:
Jimmy Shih
2011-10-07 18:05:23 -07:00
parent 9e5204934f
commit 376d02cce2
5 changed files with 23 additions and 10 deletions
+4
View File
@@ -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>