Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11411e18 authored by Bob Badour's avatar Bob Badour
Browse files

Fix permissions for internal links.

Test: m droid dist

Change-Id: If872d5e91a78d8f407e618a2c655c8cf4ac7d7fc
parent f37834c0
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -98,7 +98,9 @@ public class SettingsLicenseActivity extends FragmentActivity implements
        intent.setDataAndType(uri, "text/html");
        intent.putExtra(Intent.EXTRA_TITLE, getString(R.string.settings_license_activity_title));
        if (ContentResolver.SCHEME_CONTENT.equals(uri.getScheme())) {
            intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
            intent.addFlags(
                    Intent.FLAG_GRANT_READ_URI_PERMISSION
                            | Intent.FLAG_GRANT_PREFIX_URI_PERMISSION);
        }
        intent.addCategory(Intent.CATEGORY_DEFAULT);
        intent.setPackage("com.android.htmlviewer");
+2 −1
Original line number Diff line number Diff line
@@ -92,7 +92,8 @@ public class SettingsLicenseActivityTest {
                "text/html");
        intent.putExtra(Intent.EXTRA_TITLE, mActivity.getString(
                R.string.settings_license_activity_title));
        intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
        intent.addFlags(
                Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_PREFIX_URI_PERMISSION);
        intent.addCategory(Intent.CATEGORY_DEFAULT);
        intent.setPackage("com.android.htmlviewer");