blob: 3697bb4144d6e14ba74d7e7fb882ca4349f8a2c3 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- This is valid -->
<shortcut
android:shortcutId="ms1"
android:shortcutShortLabel="@string/shortcut_title1"
>
<intent android:action="action1" />
</shortcut>
<!-- Invalid: no intent -->
<shortcut
android:shortcutId="ms_ignored1"
android:shortcutShortLabel="@string/shortcut_title1"
/>
<!-- Valid: more than one intent; first one will be picked. -->
<shortcut
android:shortcutId="ms2"
android:shortcutShortLabel="@string/shortcut_title1"
>
<intent android:action="action2_1" />
<intent android:action="action2_2" />
</shortcut>
<!-- Valid: disabled shortcut doesn't need an intent -->
<shortcut
android:shortcutId="ms3"
android:enabled="false"
android:shortcutShortLabel="@string/shortcut_title1"
/>
<!-- Valid, but disabled shortcut's intent will be ignored. -->
<shortcut
android:shortcutId="ms4"
android:enabled="false"
android:shortcutShortLabel="@string/shortcut_title1"
>
<intent android:action="action4" />
</shortcut>
<!-- Invalid, no intent action -->
<shortcut
android:shortcutId="ms_ignored2"
android:shortcutShortLabel="@string/shortcut_title1"
>
<intent android:data="x"/>
</shortcut>
</shortcuts>