1
0
Fork 0
mirror of https://github.com/ethauvin/android-about-box.git synced 2025-04-24 18:27:11 -07:00

Access internal file appropriately to avoid FileUriExposedException

This commit is contained in:
Michael Mee 2017-04-14 09:04:51 -07:00
parent 2686828222
commit 7f4336b5ec

View file

@ -68,7 +68,11 @@ public class AboutActivity extends MaterialAboutActivity {
new MaterialAboutItemOnClickListener() {
@Override
public void onClick(boolean b) {
openHTMLPage(config.guideHtmlPath);
if (config.dialog == null) {
openHTMLPage(config.guideHtmlPath);
} else {
config.dialog.open(AboutActivity.this, config.guideHtmlPath, getString(R.string.egab_guide));
}
logUIEventName(config.analytics, config.logUiEventName, getString(R.string.egab_guide));
}
})