Android: Get storage permissions before populating game list

pull/22/head
Connor McLaughlin 5 years ago
parent 8c33163ef1
commit 737bec0e7d

@ -51,6 +51,9 @@ public class MainActivity extends AppCompatActivity {
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (!checkForExternalStoragePermissions())
return;
Intent i = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
i.addCategory(Intent.CATEGORY_DEFAULT);
i.putExtra(Intent.EXTRA_LOCAL_ONLY, true);

Loading…
Cancel
Save