mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Bug 1833728 - Remove redundant 'android:shortcutLongLabel' strings. r=android-reviewers,gl
https://developer.android.com/guide/app-actions/action-schema says `android:shortcutLongLabel` is optional and we were setting `shortcutLongLabel` and `shortcutShortLabel` to the same string, so we can remove `shortcutLongLabel` and use `shortcutShortLabel` for both the shortcut name in the app's shortcut menu and on the home screen. Differential Revision: https://phabricator.services.mozilla.com/D206981
This commit is contained in:
parent
80a3e841d0
commit
e265c0ddb9
@ -155,28 +155,6 @@
|
||||
column="9"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedAttribute"
|
||||
message="Attribute `shortcutLongLabel` is only used in API level 25 and higher (current min is 21)"
|
||||
errorLine1=" android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2">"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/debug/res/xml/shortcuts.xml"
|
||||
line="12"
|
||||
column="9"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedAttribute"
|
||||
message="Attribute `shortcutLongLabel` is only used in API level 25 and higher (current min is 21)"
|
||||
errorLine1=" android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2">"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/res/xml/shortcuts.xml"
|
||||
line="12"
|
||||
column="9"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedAttribute"
|
||||
message="Attribute `shortcutId` is only used in API level 25 and higher (current min is 21)"
|
||||
@ -221,28 +199,6 @@
|
||||
column="9"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedAttribute"
|
||||
message="Attribute `shortcutLongLabel` is only used in API level 25 and higher (current min is 21)"
|
||||
errorLine1=" android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2">"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/debug/res/xml/shortcuts.xml"
|
||||
line="23"
|
||||
column="9"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedAttribute"
|
||||
message="Attribute `shortcutLongLabel` is only used in API level 25 and higher (current min is 21)"
|
||||
errorLine1=" android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2">"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="src/main/res/xml/shortcuts.xml"
|
||||
line="23"
|
||||
column="9"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="UnusedAttribute"
|
||||
message="Attribute `android:foreground` has no effect on API levels lower than 23 (current min is 21)"
|
||||
|
@ -8,8 +8,7 @@
|
||||
android:shortcutId="password_manager"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_password_shortcut"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_passwords">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PASSWORD_MANAGER"
|
||||
android:targetPackage="org.mozilla.firefox_beta"
|
||||
@ -19,8 +18,7 @@
|
||||
android:shortcutId="open_new_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_TAB"
|
||||
android:targetPackage="org.mozilla.firefox_beta"
|
||||
@ -30,8 +28,7 @@
|
||||
android:shortcutId="open_new_private_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_private_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PRIVATE_TAB"
|
||||
android:targetPackage="org.mozilla.firefox_beta"
|
||||
|
@ -8,8 +8,7 @@
|
||||
android:shortcutId="password_manager"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_password_shortcut"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_passwords">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PASSWORD_MANAGER"
|
||||
android:targetPackage="org.mozilla.fenix.debug"
|
||||
@ -19,8 +18,7 @@
|
||||
android:shortcutId="open_new_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_TAB"
|
||||
android:targetPackage="org.mozilla.fenix.debug"
|
||||
@ -30,8 +28,7 @@
|
||||
android:shortcutId="open_new_private_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_private_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PRIVATE_TAB"
|
||||
android:targetPackage="org.mozilla.fenix.debug"
|
||||
|
@ -8,8 +8,7 @@
|
||||
android:shortcutId="password_manager"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_password_shortcut"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_passwords">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PASSWORD_MANAGER"
|
||||
android:targetPackage="org.mozilla.fenix"
|
||||
@ -19,8 +18,7 @@
|
||||
android:shortcutId="open_new_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_TAB"
|
||||
android:targetPackage="org.mozilla.fenix"
|
||||
@ -30,8 +28,7 @@
|
||||
android:shortcutId="open_new_private_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_private_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PRIVATE_TAB"
|
||||
android:targetPackage="org.mozilla.fenix"
|
||||
|
@ -8,8 +8,7 @@
|
||||
android:shortcutId="password_manager"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_password_shortcut"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_passwords">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PASSWORD_MANAGER"
|
||||
android:targetPackage="org.mozilla.fenix"
|
||||
@ -19,8 +18,7 @@
|
||||
android:shortcutId="open_new_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_TAB"
|
||||
android:targetPackage="org.mozilla.fenix"
|
||||
@ -30,8 +28,7 @@
|
||||
android:shortcutId="open_new_private_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_private_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PRIVATE_TAB"
|
||||
android:targetPackage="org.mozilla.fenix"
|
||||
|
@ -8,8 +8,7 @@
|
||||
android:shortcutId="password_manager"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_password_shortcut"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_passwords">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_passwords">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PASSWORD_MANAGER"
|
||||
android:targetPackage="org.mozilla.firefox"
|
||||
@ -19,8 +18,7 @@
|
||||
android:shortcutId="open_new_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_TAB"
|
||||
android:targetPackage="org.mozilla.firefox"
|
||||
@ -30,8 +28,7 @@
|
||||
android:shortcutId="open_new_private_tab"
|
||||
android:enabled="true"
|
||||
android:icon="@drawable/ic_static_shortcut_private_tab"
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2"
|
||||
android:shortcutLongLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
android:shortcutShortLabel="@string/home_screen_shortcut_open_new_private_tab_2">
|
||||
<intent
|
||||
android:action="org.mozilla.fenix.OPEN_PRIVATE_TAB"
|
||||
android:targetPackage="org.mozilla.firefox"
|
||||
|
Loading…
x
Reference in New Issue
Block a user