Removed unused permissions as TrackRecordingService is now only reachable from within the app.

This commit is contained in:
Dennis Guse
2019-07-21 22:05:38 +02:00
parent 86a42f3c7c
commit 88c7e6ce1b
86 changed files with 201 additions and 223 deletions
@@ -1037,9 +1037,6 @@ public class TrackRecordingService extends Service {
Intent intent = new Intent().setAction(getString(actionId))
.putExtra(getString(R.string.track_id_broadcast_extra), trackId);
sendBroadcast(intent, getString(R.string.permission_notification_value));
if (PreferencesUtils.getBoolean(this, R.string.allow_access_key, PreferencesUtils.ALLOW_ACCESS_DEFAULT)) {
sendBroadcast(intent, getString(R.string.broadcast_notifications_permission));
}
}
/**
@@ -35,8 +35,6 @@ public class PreferencesUtils {
* Preferences values. The defaults need to match the defaults in the xml
* files.
*/
@Deprecated //TODO: to be removed.
public static final boolean ALLOW_ACCESS_DEFAULT = false;
public static final int AUTO_RESUME_TRACK_CURRENT_RETRY_DEFAULT = 0;
// Values for auto_resume_track_timeout_key