mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-30 23:39:54 +00:00
Update SetupQemuActivity.java
This commit is contained in:
parent
a545510893
commit
93a6462f7c
1 changed files with 2 additions and 4 deletions
|
|
@ -65,7 +65,7 @@ public class SetupQemuActivity extends AppCompatActivity implements View.OnClick
|
|||
public void onClick(View v) {
|
||||
int id = v.getId();
|
||||
if (id == R.id.btnDownload) {
|
||||
String qe = AppConfig.vectrasPkg;
|
||||
String qe = AppConfig.getSetupFiles();
|
||||
Intent q = new Intent(Intent.ACTION_VIEW);
|
||||
q.setData(Uri.parse(qe));
|
||||
startActivity(q);
|
||||
|
|
@ -94,8 +94,6 @@ public class SetupQemuActivity extends AppCompatActivity implements View.OnClick
|
|||
|
||||
String setupFilesUrl = AppConfig.getSetupFiles();
|
||||
|
||||
tvSelectedPath.setText(setupFilesUrl);
|
||||
|
||||
String filesDir = activity.getFilesDir().getAbsolutePath();
|
||||
if (!com.vectras.vm.utils.FileUtils.readFromFile(activity, new File(filesDir + "/distro/etc/apk/repositories")).contains("http://dl-cdn.alpinelinux.org/alpine/edge/testing"))
|
||||
executeShellCommand("echo \"http://dl-cdn.alpinelinux.org/alpine/edge/testing\" >> /etc/apk/repositories");
|
||||
|
|
@ -308,4 +306,4 @@ public class SetupQemuActivity extends AppCompatActivity implements View.OnClick
|
|||
}
|
||||
}).start(); // Execute the command in a separate thread to prevent blocking the UI thread
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue