mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 01:45:45 -04:00
Android: Get storage permissions before populating game list
This commit is contained in:
@ -51,6 +51,9 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
fab.setOnClickListener(new View.OnClickListener() {
|
fab.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
if (!checkForExternalStoragePermissions())
|
||||||
|
return;
|
||||||
|
|
||||||
Intent i = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
|
Intent i = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
|
||||||
i.addCategory(Intent.CATEGORY_DEFAULT);
|
i.addCategory(Intent.CATEGORY_DEFAULT);
|
||||||
i.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
|
i.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
|
||||||
|
Reference in New Issue
Block a user