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 Jun 25, 2024
1 parent 2aa09d8 commit 52d30e0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public class MainActivity extends Activity {
private String title = "";
private String subtitle = "";
private long duration;
boolean isPlaying = false;
private boolean isPlaying = false;
private boolean dL=false;


@Override
Expand All @@ -37,7 +38,7 @@ protected void onCreate(Bundle savedInstanceState) {
load(false);
}
public void load(boolean dl) {
boolean dL=dl;
dL=dl;
if (Build.VERSION.SDK_INT > 22 && Build.VERSION.SDK_INT < 28 && checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_DENIED) {
Toast.makeText(getApplicationContext(), getString(R.string.grant_storage), Toast.LENGTH_SHORT).show();
requestPermissions(new String[] {Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
Expand Down

0 comments on commit 52d30e0

Please sign in to comment.