-
Notifications
You must be signed in to change notification settings - Fork 12
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
Web link is opened in general browser intent #53
Comments
@unix14 What’s the benefit? Do you know if the custom web view is available back to Android 15? Thanks! |
@unix14 Sorry, it's been a long time since I worked with this code. Perhaps you can add code to show me. FWIW, this is what we typically have in our apps to use this library. Not sure this helps to be honest, but I see it's a different override on public void initAboutBox() {
final AboutConfig aboutConfig = AboutConfig.getInstance();
aboutConfig.appName = getString(R.string.app_name);
aboutConfig.appIcon = R.mipmap.ic_launcher;
aboutConfig.version = BuildConfig.VERSION_NAME + " (" + BuildConfig.VERSION_CODE + ")";
aboutConfig.aboutLabelTitle = getString(R.string.about_egghead_games);
aboutConfig.packageName = getApplicationContext().getPackageName();
aboutConfig.buildType = "google".equalsIgnoreCase(BuildConfig.FLAVOR_appstore)
? AboutConfig.BuildType.GOOGLE : AboutConfig.BuildType.AMAZON;
aboutConfig.logUiEventName = LOG_UI_EVENT_NAME;
aboutConfig.facebookUserName = FACEBOOK_USER_NAME;
aboutConfig.twitterUserName = TWITTER_USER_NAME;
aboutConfig.webHomePage = WEB_HOME_PAGE;
aboutConfig.appPublisher = APP_PUBLISHER;
aboutConfig.guideHtmlPath = GUIDE_HTML_PATH;
aboutConfig.companyHtmlPath = COMPANY_HTML_PATH;
aboutConfig.privacyHtmlPath = PRIVACY_HTML_PATH;
aboutConfig.acknowledgmentHtmlPath = ACKNOWLEDGMENT_HTML_PATH;
aboutConfig.emailAddress = EMAIL_ADDRESS;
aboutConfig.emailSubject = getResources().getString(R.string.app_name) + " Question";
aboutConfig.emailBody = "";
aboutConfig.shareMessage = getString(R.string.share_message);
aboutConfig.sharingTitle = getString(R.string.sharing_title);
aboutConfig.dialog = new IDialog() {
@Override
public void open(AppCompatActivity appCompatActivity, String url, String tag) {
GuideDialog guideDialog = GuideDialog.createDialog(url, tag, true);
guideDialog.show(appCompatActivity.getSupportFragmentManager(), tag);
}
};
} Our |
So it works ok PrivacyPolicy but not for an external web page? Interesting. Perhaps because of the CustomTabs need? Yes, perhaps provide a PR that demonstrates what you need (code is often easier than English!), and if it's general enough we can add it. FWIW, the relevant code is this (from here, though I suspect you know that: public static void openHTMLPage(Activity context, String htmlPath) {
context.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(htmlPath)));
} That same code is used in both the PrivacyPolicy and view web page scenarios, so I'm a bit confused. Sorry! |
Thanks! Ok, we’ll chat about this and think about fixes. |
BTW - I'd recommend to use LeakCanary to detect leaks in this library, because I've found it to leak without even starting the AboutActivity... |
Web link is opened in general browser intent instead of opening the custom web view implementation.
if not clear enough, i can add code
The text was updated successfully, but these errors were encountered: