Skip to content

Commit

Permalink
Add logging of webpage. Specify settings page more specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerElite committed Nov 25, 2023
1 parent e03d622 commit e1c62f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion QuestAppVersionSwitcher/Properties/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.14.1" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="119">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.14.2" package="com.ComputerElite.questappversionswitcher" android:installLocation="preferExternal" android:versionCode="120">
<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="32" />
<uses-permission android:name="oculus.permission.handtracking" />
<uses-permission android:name="com.oculus.permission.HAND_TRACKING" />
Expand Down
4 changes: 2 additions & 2 deletions QuestAppVersionSwitcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
// Minor Version
// Build Number
// Revision
[assembly: AssemblyVersion("1.14.1.0")]
[assembly: AssemblyFileVersion("1.14.1.0")]
[assembly: AssemblyVersion("1.14.2.0")]
[assembly: AssemblyFileVersion("1.14.2.0")]
5 changes: 3 additions & 2 deletions QuestAppVersionSwitcher/QAVSWebViewClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.IO;
using Android.Webkit;
using ComputerUtils.Android;
using ComputerUtils.Android.Logging;
using QuestAppVersionSwitcher.Core;

namespace QuestAppVersionSwitcher
Expand All @@ -13,10 +14,10 @@ public class QAVSWebViewClient : WebViewClient

public string injectedJs = "";
private bool isLoggingOut = false;

// Grab token
public override void OnPageFinished(WebView view, string url)
{
Logger.Log("WebView on page finished: " + url.Split('?')[0]);
CookieManager.Instance.Flush();
if(!url.ToLower().Contains("localhost") && !url.ToLower().StartsWith("https://auth.meta.com") && !url.ToLower().Contains("http://127.0.0.1"))
{
Expand Down Expand Up @@ -71,7 +72,7 @@ public override void OnPageFinished(WebView view, string url)
if (url.ToLower().StartsWith("https://auth.meta.com/language"))
{
// redirect to oculus page
view.LoadUrl("https://auth.meta.com/settings");
view.LoadUrl("https://auth.meta.com/settings/account/");
}
}

Expand Down

0 comments on commit e1c62f5

Please sign in to comment.