Skip to content

Commit

Permalink
chore: spotless
Browse files Browse the repository at this point in the history
Signed-off-by: VishnuSanal <[email protected]>
  • Loading branch information
VishnuSanal committed Apr 21, 2024
1 parent fc6054b commit c875391
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ public void onCreate(@Nullable Bundle savedInstanceState) {

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)
registerReceiver(killReceiver, new IntentFilter(KILL_APP_KEY), RECEIVER_NOT_EXPORTED);
else
registerReceiver(killReceiver, new IntentFilter(KILL_APP_KEY));
else registerReceiver(killReceiver, new IntentFilter(KILL_APP_KEY));

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
if (checkSelfPermission(Manifest.permission.READ_MEDIA_AUDIO)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,36 +139,41 @@ public void onPlayFromUri(Uri uri, Bundle extras) {
notificationFilter.addAction(ACTION_REWIND);
notificationFilter.addAction(ACTION_SEEK);

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
if (Build.VERSION.SDK_INT
>= Build.VERSION_CODES.TIRAMISU) {

registerReceiver(
becomingNoisyReceiver,
new IntentFilter(
AudioManager
.ACTION_AUDIO_BECOMING_NOISY),
becomingNoisyReceiver,
new IntentFilter(
AudioManager
.ACTION_AUDIO_BECOMING_NOISY),
RECEIVER_NOT_EXPORTED);

registerReceiver(
mediaButtonActionReceiver,
new IntentFilter(Intent.ACTION_MEDIA_BUTTON),
new IntentFilter(
Intent.ACTION_MEDIA_BUTTON),
RECEIVER_NOT_EXPORTED);

registerReceiver(
notificationReceiver, notificationFilter, RECEIVER_NOT_EXPORTED);
notificationReceiver,
notificationFilter,
RECEIVER_NOT_EXPORTED);
} else {

registerReceiver(
becomingNoisyReceiver,
new IntentFilter(
AudioManager
.ACTION_AUDIO_BECOMING_NOISY));
becomingNoisyReceiver,
new IntentFilter(
AudioManager
.ACTION_AUDIO_BECOMING_NOISY));

registerReceiver(
mediaButtonActionReceiver,
new IntentFilter(Intent.ACTION_MEDIA_BUTTON));
new IntentFilter(
Intent.ACTION_MEDIA_BUTTON));

registerReceiver(
notificationReceiver, notificationFilter);
notificationReceiver, notificationFilter);
}

audio =
Expand Down

0 comments on commit c875391

Please sign in to comment.