Skip to content

Commit

Permalink
Update MainActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek-chaubey authored Feb 5, 2025
1 parent 8626f0c commit fa0a429
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,12 @@ public void onReceive(Context context, Intent intent) {
}
};


if (Build.VERSION.SDK_INT >= 34 && getApplicationInfo().targetSdkVersion >= 34) {
registerReceiver(broadcastReceiver, new IntentFilter("TRACKS_TRACKS"),RECEIVER_EXPORTED);

}
else{
registerReceiver(broadcastReceiver, new IntentFilter("TRACKS_TRACKS"));
}
}

@Override
Expand Down

0 comments on commit fa0a429

Please sign in to comment.