This commit is contained in:
An Bui 2024-11-02 11:35:45 +07:00
parent 372c418067
commit 270ccfcc09
6 changed files with 16 additions and 9 deletions

View file

@ -1025,14 +1025,16 @@ public class CustomRomActivity extends AppCompatActivity {
title.setText(jObj.getString("title"));
icon.setText(AppConfig.maindirpath
+ "roms/" + _filename.replace(".cvbi", "") + "/" + jObj.getString("icon"));
drive.setText(AppConfig.maindirpath
+ "roms/" + _filename.replace(".cvbi", "") + "/" + jObj.getString("drive"));
if (!jObj.getString("drive").isEmpty()) {
drive.setText(AppConfig.maindirpath
+ "roms/" + _filename.replace(".cvbi", "") + "/" + jObj.getString("drive"));
}
qemu.setText(jObj.getString("qemu"));
ImageView ivIcon = findViewById(R.id.ivIcon);
Bitmap bmImg = BitmapFactory.decodeFile(AppConfig.maindirpath
+ "roms/" + _filename.replace(".cvbi", "") + "/" + jObj.getString("icon"));
ivIcon.setImageBitmap(bmImg);
UIUtils.UIAlert(activity, getResources().getString(R.string.from) + ": " + jObj.getString("author") + "\n\n" + Html.fromHtml(jObj.getString("desc")), getResources().getString(R.string.description) + ":");
UIUtils.UIAlert(activity, getResources().getString(R.string.from) + ": " + jObj.getString("author"), getResources().getString(R.string.description) + ":\n\n" + Html.fromHtml(jObj.getString("desc")));
} catch (JSONException e) {
throw new RuntimeException(e);
}