mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 15:29:51 +00:00
Bread
This commit is contained in:
parent
3381c503e4
commit
8ca54aa1f5
19 changed files with 455 additions and 143 deletions
|
|
@ -1084,6 +1084,15 @@ public class CustomRomActivity extends AppCompatActivity {
|
|||
} else {
|
||||
JSONObject jObj = new JSONObject(FileUtils.readFromFile(MainActivity.activity, new File(AppConfig.vmFolder + vmID + "/rom-data.json")));
|
||||
|
||||
if (jObj.has("vmID")) {
|
||||
if (!jObj.isNull("vmID")) {
|
||||
if (!jObj.getString("vmID").isEmpty()) {
|
||||
VectrasApp.moveAFile(AppConfig.vmFolder + vmID, AppConfig.vmFolder + jObj.getString("vmID"));
|
||||
vmID = jObj.getString("vmID");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (jObj.has("title") && !jObj.isNull("title")) {
|
||||
title.setText(jObj.getString("title"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue