Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
kairusds committed Oct 17, 2024
1 parent 9893f5d commit d551c87
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class MainActivity extends AppCompatActivity {
private static final int FILE_ACCESS_REQUEST = 1;

private final Handler handler = new Handler(Looper.getMainLooper());
private final ExecutorService executor;
private ExecutorService executor;

private VLCVideoLayout videoLayout = null;

Expand Down Expand Up @@ -220,8 +220,8 @@ private void showFilePickerDialog(File dir){
return;
}

ArrayAdapter<String> adapter = new ArrayAdapter<>(getContext(), android.R.layout.select_dialog_item, fileList);
AlertDialog.Builder builder = new AlertDialog.Builder(getContext());
ArrayAdapter<String> adapter = new ArrayAdapter<>(MainActivty.this, android.R.layout.select_dialog_item, fileList);
AlertDialog.Builder builder = new AlertDialog.Builder(MainActivty.this);
builder.setTitle("Choose a file or directory");
builder.setAdapter(adapter, (dialog, which) -> {
if(which == 0){
Expand Down

0 comments on commit d551c87

Please sign in to comment.