mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 15:29:51 +00:00
13H18D11M12Y2024
This commit is contained in:
parent
f481aa2d68
commit
64b5bf2185
9 changed files with 167 additions and 123 deletions
|
|
@ -508,6 +508,22 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
drive.setText(AppConfig.vmFolder + vmID + "/" + getIntent().getStringExtra("romfilename"));
|
||||
}
|
||||
}
|
||||
|
||||
} else if (getIntent().hasExtra("importcvbinow")) {
|
||||
title.setText("New VM");
|
||||
setDefault();
|
||||
|
||||
Intent intent = new Intent(ACTION_OPEN_DOCUMENT);
|
||||
intent.addCategory(Intent.CATEGORY_OPENABLE);
|
||||
intent.setType("*/*");
|
||||
|
||||
// Optionally, specify a URI for the file that should appear in the
|
||||
// system file picker when it loads.
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, Environment.DIRECTORY_DOWNLOADS);
|
||||
}
|
||||
|
||||
startActivityForResult(intent, 0);
|
||||
} else {
|
||||
title.setText("New VM");
|
||||
setDefault();
|
||||
|
|
@ -908,6 +924,7 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
|
||||
if (getIntent().hasExtra("addromnow")) {
|
||||
RomsManagerActivity.isFinishNow = true;
|
||||
RomInfo.isFinishNow = true;
|
||||
}
|
||||
|
||||
modify = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue