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

Commit b25b978e authored by Ben Reich's avatar Ben Reich
Browse files

Introduce com.android.documentsui.flags.redirect_get_content

This flag will be used to guard a new activity that will decide
whether to redirect a GET_CONTENT request to Photopicker or not.

The flags_packages are required otherwise it fails with an error:

  error: attribute 'android:featureFlag' has flag
  'com.android.documentsui.flags.redirect_get_content'
  not found in flags from --feature_flags parameter

Bug: 377771195
Test: EXEMPT adding a flag
Flag: com.android.documentsui.flags.redirect_get_content
Change-Id: I4ab2100c8e1b9bd4cb237acec334cb0aff14cb19
parent 616e5b91
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -144,6 +144,7 @@ android_library {
    defaults: ["documentsui_defaults"],

    manifest: "AndroidManifest.xml",
    flags_packages: ["docsui-flags-aconfig"],

    resource_dirs: [],
    libs: ["DocumentsUI-lib"],
@@ -163,6 +164,8 @@ android_app {
    static_libs: ["DocumentsUI-lib"],
    resource_dirs: [],

    flags_packages: ["docsui-flags-aconfig"],

    licenses: [
        "Android-Apache-2.0",
        "packages_apps_DocumentsUI_res_drawable_pd_license",
+7 −0
Original line number Diff line number Diff line
@@ -37,3 +37,10 @@ flag {
    description: "Enables in-app progress display of file operations"
    bug: "378011512"
}

flag {
    name: "redirect_get_content"
    namespace: "documentsui"
    description: "Redirects GET_CONTENT requests to Photopicker when appropriate"
    bug: "377771195"
}