Skip to content

Commit cbdf7e5

Browse files
ComputerEliteComputerElite
authored andcommitted
Remove open settings cause that also doesn'T work lol
1 parent 4bdc2e8 commit cbdf7e5

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

QuestAppVersionSwitcher/Assets/html/index.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,6 @@ <h2>You can download mods and cosmetics from the following sites. Only QMods are
208208
<div class="button" id="checkUpdate">Check for QuestAppVersionSwitcher updates</div>
209209
<div class="buttonLabel">Checks if updates for QuestAppVersionSwitcher exist</div>
210210
</div>
211-
<div class="buttonContainer">
212-
<div class="button" id="openSettings">Open Android settings</div>
213-
<div class="buttonLabel">Opens the settings activity of Android</div>
214-
</div>
215211
<div id="updateTextBox" class="textBox"></div>
216212

217213
<div class="space">

QuestAppVersionSwitcher/Assets/html/script.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -786,18 +786,6 @@ document.getElementById("grantAccess").onclick = () => {
786786
})
787787
}
788788

789-
document.getElementById("openSettings").onclick = () => {
790-
fetch("opensettings").then(res => {
791-
res.text().then(t => {
792-
if(res.status == 200) {
793-
TextBoxGood("updateTextBox", t)
794-
} else {
795-
TextBoxError("updateTextBox", t)
796-
}
797-
})
798-
});
799-
}
800-
801789
document.getElementById("grantAccess2").onclick = () => {
802790
fetch("grantaccess?package=" + config.currentApp).then(res => {
803791
res.text().then(text => {

QuestAppVersionSwitcher/WebServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public void Start()
279279
}));
280280
server.AddRoute("GET", "/opensettings", new Func<ServerRequest, bool>(request =>
281281
{
282-
AndroidCore.context.StartActivity(AndroidCore.context.PackageManager.GetLaunchIntentForPackage("com.android.settings"));
282+
AndroidService.LaunchApp("com.android.settings");
283283
request.SendString("Alright", "application/json");
284284
return true;
285285
}));

0 commit comments

Comments
 (0)