mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 23:39:54 +00:00
Android 14+ FIX
This commit is contained in:
parent
0bbbeb5445
commit
4ec46836e8
79 changed files with 638 additions and 119 deletions
|
|
@ -432,6 +432,7 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
title.setText(current.itemName);
|
||||
icon.setText(current.itemIcon);
|
||||
drive.setText(current.itemPath);
|
||||
|
||||
Pattern pattern = Pattern.compile("-drive index=1,media=cdrom,file='([^']*)'");
|
||||
Matcher matcher = pattern.matcher(current.itemExtra);
|
||||
|
||||
|
|
@ -439,7 +440,18 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
String cdromPath = matcher.group(1);
|
||||
cdrom.setText(cdromPath);
|
||||
}
|
||||
|
||||
qemu.setText(current.itemExtra);
|
||||
|
||||
File imgFile = new File(icon.getText().toString());
|
||||
|
||||
if(imgFile.exists()){
|
||||
Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
|
||||
|
||||
ImageView ivIcon = findViewById(R.id.ivIcon);
|
||||
|
||||
ivIcon.setImageBitmap(myBitmap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue