-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended webview checks #389
Extended webview checks #389
Conversation
appPreferences.ignoreWebViewChecks = false | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debugging left-overs?
appPreferences.ignoreWebViewChecks = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes!
Maybe the "ignore" should be at the bottom? |
@@ -56,13 +59,20 @@ class MainActivity : AppCompatActivity() { | |||
bindService(Intent(this, RemotePlayerService::class.java), serviceConnection, Service.BIND_AUTO_CREATE) | |||
|
|||
// Check WebView support | |||
if (!isWebViewSupported()) { | |||
if (!appPreferences.ignoreWebViewChecks && !isWebViewSupported()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It already checks for ignore here, but there's no way to ignore from the "unsupported" dialog below.. seems like an oversight?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should definitely not work on the app when I'm half asleep 😅
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
898a910
to
0b9c558
Compare
You forgot to handle the note, also necessary for devices without gapps (or alternative store like Aurora Store || F-Droid).
|
0b9c558
to
455f21d
Compare
Thanks @CarlosOlivo, added an additional check to see if the intent can be resolved 👍 |
} | ||
|
||
// Only show button if the intent can be resolved | ||
if(marketIntent.resolveActivity(context.packageManager) != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(marketIntent.resolveActivity(context.packageManager) != null) { | |
if (marketIntent.resolveActivity(context.packageManager) != null) { |
455f21d
to
c482f83
Compare
Fixes #383
Adds an additional button to open the webview settings, it allows changing the used webview more easily. User needs to manually open the app again after changing it.
For the second alert (outdated webview) pressing on the background will cancel the dialog and never show it again. Adding an additional button was too much work because I'd need to make my own layout for it.
note: this one actually says "open settings" instead of "settings" but I was too lazy to re-capture