|
|
@ -301,19 +301,20 @@ public class FragmentOAuth extends FragmentBase {
|
|
|
|
|
|
|
|
|
|
|
|
AppAuthConfiguration appAuthConfig = new AppAuthConfiguration.Builder()
|
|
|
|
AppAuthConfiguration appAuthConfig = new AppAuthConfiguration.Builder()
|
|
|
|
.setBrowserMatcher(new BrowserMatcher() {
|
|
|
|
.setBrowserMatcher(new BrowserMatcher() {
|
|
|
|
|
|
|
|
final BrowserMatcher SBROWSER = new VersionedBrowserMatcher(
|
|
|
|
|
|
|
|
Browsers.SBrowser.PACKAGE_NAME,
|
|
|
|
|
|
|
|
Browsers.SBrowser.SIGNATURE_SET,
|
|
|
|
|
|
|
|
true,
|
|
|
|
|
|
|
|
VersionRange.atMost("5.3"));
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean matches(@NonNull BrowserDescriptor descriptor) {
|
|
|
|
public boolean matches(@NonNull BrowserDescriptor descriptor) {
|
|
|
|
BrowserMatcher sbrowser = new VersionedBrowserMatcher(
|
|
|
|
boolean accept =
|
|
|
|
Browsers.SBrowser.PACKAGE_NAME,
|
|
|
|
(!SBROWSER.matches(descriptor) && !descriptor.useCustomTab);
|
|
|
|
Browsers.SBrowser.SIGNATURE_SET,
|
|
|
|
|
|
|
|
true,
|
|
|
|
|
|
|
|
VersionRange.atMost("5.3"));
|
|
|
|
|
|
|
|
boolean accept = (!sbrowser.matches(descriptor) &&
|
|
|
|
|
|
|
|
(!"gmail".equals(provider.id) || !descriptor.useCustomTab));
|
|
|
|
|
|
|
|
EntityLog.log(context,
|
|
|
|
EntityLog.log(context,
|
|
|
|
"Browser=" + descriptor.packageName +
|
|
|
|
"Browser=" + descriptor.packageName +
|
|
|
|
":" + descriptor.version +
|
|
|
|
":" + descriptor.version +
|
|
|
|
":" + descriptor.useCustomTab + "" +
|
|
|
|
" tabs=" + descriptor.useCustomTab + "" +
|
|
|
|
" accept=" + accept +
|
|
|
|
" accept=" + accept +
|
|
|
|
" provider=" + provider.id);
|
|
|
|
" provider=" + provider.id);
|
|
|
|
return accept;
|
|
|
|
return accept;
|
|
|
|