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

Commit 2a41717b authored by George Chang's avatar George Chang
Browse files

Add intent filters for NfcTagAppsSettings

This is required by NfcAdapter.ACTION_CHANGE_TAG_INTENT_PREFERENCE
to expose shortcuts for tag apps.

Flag: android.nfc.nfc_check_tag_intent_preference
Test: adb shell am start -a android.nfc.action.CHANGE_TAG_INTENT_PREFERENCE
Bug: 335916336
Change-Id: Idee7ded0f8b07ea6ff38dd646c60798847abc31a
parent c0c95926
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -5372,6 +5372,23 @@
            </intent-filter>
        </receiver>

        <activity
            android:name="Settings$ChangeNfcTagAppsActivity"
            android:exported="true"
            android:label="@string/change_nfc_tag_apps_title">
            <intent-filter android:priority="1">
                <action android:name="android.nfc.action.CHANGE_TAG_INTENT_PREFERENCE" />
                <category android:name="android.intent.category.BROWSABLE" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
            <meta-data android:name="com.android.settings.FRAGMENT_CLASS"
                android:value="com.android.settings.applications.manageapplications.ManageApplications" />
            <meta-data android:name="com.android.settings.HIGHLIGHT_MENU_KEY"
                       android:value="@string/menu_key_apps"/>
            <meta-data android:name="com.android.settings.PRIMARY_PROFILE_CONTROLLED"
                       android:value="true" />
        </activity>

        <!-- This is the longest AndroidManifest.xml ever. -->
    </application>
</manifest>