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

Commit bf0cb884 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix permissions for internal links." am: 24f45fbd am: e194aa42 am:...

Merge "Fix permissions for internal links." am: 24f45fbd am: e194aa42 am: 2aa8cd1d am: 62fa667b

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2182455



Change-Id: If86acd9982d50238c1ed31f78735ef805857bc9f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 79bdae65 62fa667b
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");