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

Commit 5fb1bcc7 authored by Ben Lin's avatar Ben Lin
Browse files

Allow Files-app to enable/disable handling VIEW_DOWNLOADS Intent.

Bug: 33332459
Change-Id: I6eddeb18543e08306553eadefbe25f5e3b0010bf
parent 551a2a1d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -90,11 +90,16 @@
                <category android:name="android.intent.category.DEFAULT" />
                <data android:mimeType="vnd.android.document/directory" />
            </intent-filter>
        </activity>

        <activity-alias android:name="ViewDownloadsActivity"
                        android:targetActivity=".files.FilesActivity"
                        android:enabled="@bool/handle_view_downloads_intent">
            <intent-filter>
                <action android:name="android.intent.action.VIEW_DOWNLOADS" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        </activity-alias>

        <activity
            android:name=".OpenExternalDirectoryActivity"
+4 −0
Original line number Diff line number Diff line
@@ -20,6 +20,10 @@

    <bool name="show_documents_root">false</bool>

    <!-- Indicates if DocumentsUI should handle VIEW_DOWNLOADS Intent.
    on ARC++ devices, there exists another handler which handles VIEW_DOWNLOADS Intent. -->
    <bool name="handle_view_downloads_intent">true</bool>

    <!-- Indicates if search view is taking the whole toolbar space. On larger
         layouts we reduce this to an input-box adjacent to menu actions. -->
    <bool name="full_bar_search_view">true</bool>