Fix lint: NewApi issues in styles.xml

NEW
Unassigned

Status

()

P3
normal
2 years ago
10 months ago

People

(Reporter: tyu, Unassigned)

Tracking

(Blocks: 1 bug)

55 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
32 occurrences:

../../../../../../../mobile/android/base/resources/values/styles.xml:74: android:paddingStart requires API level 17 (current min is 15)

  71         <item name="android:textAppearance">?android:attr/textAppearanceLargeInverse</item>
  72         <item name="android:gravity">center_vertical</item>
  73         <item name="android:paddingLeft">12dip</item>
  74         <item name="android:paddingStart">12dip</item>
  75         <item name="android:paddingRight">7dip</item>
  76         <item name="android:paddingEnd">7dip</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:76: android:paddingEnd requires API level 17 (current min is 15)

  73         <item name="android:paddingLeft">12dip</item>
  74         <item name="android:paddingStart">12dip</item>
  75         <item name="android:paddingRight">7dip</item>
  76         <item name="android:paddingEnd">7dip</item>
  77         <item name="android:checkMark">?android:attr/listChoiceIndicatorMultiple</item>
  78         <item name="android:ellipsize">marquee</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:111: android:paddingStart requires API level 17 (current min is 15)

 108 
 109     <style name="Widget.MenuItemDefault">
 110         <item name="android:paddingLeft">15dip</item>
 111         <item name="android:paddingStart">15dip</item>
 112         <item name="android:paddingRight">10dip</item>
 113         <item name="android:paddingEnd">10dip</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:113: android:paddingEnd requires API level 17 (current min is 15)

 110         <item name="android:paddingLeft">15dip</item>
 111         <item name="android:paddingStart">15dip</item>
 112         <item name="android:paddingRight">10dip</item>
 113         <item name="android:paddingEnd">10dip</item>
 114         <item name="android:drawablePadding">6dip</item>
 115         <item name="android:gravity">center_vertical</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:164: android:paddingStart requires API level 17 (current min is 15)

 161         <item name="android:ellipsize">none</item>
 162         <item name="android:background">@color/about_page_header_grey</item>
 163         <item name="android:paddingLeft">20dp</item>
 164         <item name="android:paddingStart">20dp</item>
 165         <item name="android:paddingRight">0dp</item>
 166         <item name="android:paddingEnd">0dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:166: android:paddingEnd requires API level 17 (current min is 15)

 163         <item name="android:paddingLeft">20dp</item>
 164         <item name="android:paddingStart">20dp</item>
 165         <item name="android:paddingRight">0dp</item>
 166         <item name="android:paddingEnd">0dp</item>
 167         <item name="android:drawablePadding">20dp</item>
 168     </style>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:238: android:paddingStart requires API level 17 (current min is 15)

 235         <item name="android:focusable">false</item>
 236         <item name="android:gravity">center|left|start</item>
 237         <item name="android:paddingLeft">16dp</item>
 238         <item name="android:paddingStart">16dp</item>
 239         <item name="android:paddingRight">16dp</item>
 240         <item name="android:paddingEnd">16dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:240: android:paddingEnd requires API level 17 (current min is 15)

 237         <item name="android:paddingLeft">16dp</item>
 238         <item name="android:paddingStart">16dp</item>
 239         <item name="android:paddingRight">16dp</item>
 240         <item name="android:paddingEnd">16dp</item>
 241         <item name="android:paddingTop">11dp</item>
 242         <item name="android:paddingBottom">11dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:255: android:paddingStart requires API level 17 (current min is 15)

 252         <item name="android:focusable">true</item>
 253         <item name="android:gravity">center</item>
 254         <item name="android:paddingLeft">10dip</item>
 255         <item name="android:paddingStart">10dip</item>
 256         <item name="android:paddingRight">10dip</item>
 257         <item name="android:paddingEnd">10dip</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:257: android:paddingEnd requires API level 17 (current min is 15)

 254         <item name="android:paddingLeft">10dip</item>
 255         <item name="android:paddingStart">10dip</item>
 256         <item name="android:paddingRight">10dip</item>
 257         <item name="android:paddingEnd">10dip</item>
 258     </style>
 259 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:420: android:fontFamily requires API level 16 (current min is 15)

 417     </style>
 418 
 419     <style name="TextAppearance.DoorHanger.Medium.Bold">
 420         <item name="android:fontFamily">sans-serif-medium</item>
 421     </style>
 422 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:424: android:fontFamily requires API level 16 (current min is 15)

 421     </style>
 422 
 423     <style name="TextAppearance.DoorHanger.Medium.Light">
 424         <item name="android:fontFamily">sans-serif-light</item>
 425     </style>
 426 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:526: android:paddingStart requires API level 17 (current min is 15)

 523     <style name="FindBar">
 524         <item name="android:background">@color/text_and_tabs_tray_grey</item>
 525         <item name="android:paddingLeft">3dip</item>
 526         <item name="android:paddingStart">3dip</item>
 527         <item name="android:paddingRight">3dip</item>
 528         <item name="android:paddingEnd">3dip</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:528: android:paddingEnd requires API level 17 (current min is 15)

 525         <item name="android:paddingLeft">3dip</item>
 526         <item name="android:paddingStart">3dip</item>
 527         <item name="android:paddingRight">3dip</item>
 528         <item name="android:paddingEnd">3dip</item>
 529         <item name="android:paddingTop">6dip</item>
 530         <item name="android:paddingBottom">6dip</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:538: android:layout_marginStart requires API level 17 (current min is 15)

 535         <item name="android:layout_width">wrap_content</item>
 536         <item name="android:layout_height">wrap_content</item>
 537         <item name="android:layout_marginLeft">5dip</item>
 538         <item name="android:layout_marginStart">5dip</item>
 539         <item name="android:layout_marginRight">5dip</item>
 540         <item name="android:layout_marginEnd">5dip</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:540: android:layout_marginEnd requires API level 17 (current min is 15)

 537         <item name="android:layout_marginLeft">5dip</item>
 538         <item name="android:layout_marginStart">5dip</item>
 539         <item name="android:layout_marginRight">5dip</item>
 540         <item name="android:layout_marginEnd">5dip</item>
 541         <item name="android:scaleType">fitCenter</item>
 542         <item name="android:layout_centerVertical">true</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:566: android:layout_marginStart requires API level 17 (current min is 15)

 563 
 564     <style name="Toast" parent="ToastBase">
 565         <item name="android:layout_marginLeft">16dp</item>
 566         <item name="android:layout_marginStart">16dp</item>
 567         <item name="android:layout_marginRight">16dp</item>
 568         <item name="android:layout_marginEnd">16dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:568: android:layout_marginEnd requires API level 17 (current min is 15)

 565         <item name="android:layout_marginLeft">16dp</item>
 566         <item name="android:layout_marginStart">16dp</item>
 567         <item name="android:layout_marginRight">16dp</item>
 568         <item name="android:layout_marginEnd">16dp</item>
 569     </style>
 570 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:574: android:paddingStart requires API level 17 (current min is 15)

 571     <style name="ToastElementBase">
 572         <item name="android:background">@null</item>
 573         <item name="android:paddingLeft">12dp</item>
 574         <item name="android:paddingStart">12dp</item>
 575         <item name="android:paddingRight">12dp</item>
 576         <item name="android:paddingEnd">12dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:576: android:paddingEnd requires API level 17 (current min is 15)

 573         <item name="android:paddingLeft">12dp</item>
 574         <item name="android:paddingStart">12dp</item>
 575         <item name="android:paddingRight">12dp</item>
 576         <item name="android:paddingEnd">12dp</item>
 577         <item name="android:paddingTop">11dp</item>
 578         <item name="android:paddingBottom">11dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:649: android:paddingStart requires API level 17 (current min is 15)

 646         <item name="android:drawableLeft">@drawable/ab_done</item>
 647         <item name="android:drawableStart">@drawable/ab_done</item>
 648         <item name="android:paddingLeft">15dp</item>
 649         <item name="android:paddingStart">15dp</item>
 650         <item name="android:paddingRight">15dp</item>
 651         <item name="android:paddingEnd">15dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:651: android:paddingEnd requires API level 17 (current min is 15)

 648         <item name="android:paddingLeft">15dp</item>
 649         <item name="android:paddingStart">15dp</item>
 650         <item name="android:paddingRight">15dp</item>
 651         <item name="android:paddingEnd">15dp</item>
 652         <item name="android:contentDescription">@string/actionbar_done</item>
 653     </style>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:676: android:paddingStart requires API level 17 (current min is 15)

 673     <style name="ShareOverlayTitle">
 674         <item name="android:gravity">center_horizontal</item>
 675         <item name="android:paddingLeft">15dp</item>
 676         <item name="android:paddingStart">15dp</item>
 677         <item name="android:paddingRight">15dp</item>
 678         <item name="android:paddingEnd">15dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:678: android:paddingEnd requires API level 17 (current min is 15)

 675         <item name="android:paddingLeft">15dp</item>
 676         <item name="android:paddingStart">15dp</item>
 677         <item name="android:paddingRight">15dp</item>
 678         <item name="android:paddingEnd">15dp</item>
 679     </style>
 680 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:682: android:fontFamily requires API level 16 (current min is 15)

 679     </style>
 680 
 681     <style name="TextAppearance.ShareOverlay">
 682         <item name="android:fontFamily">sans-serif</item>
 683     </style>
 684 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:687: android:fontFamily requires API level 16 (current min is 15)

 684 
 685     <style name="TextAppearance.ShareOverlay.Header">
 686         <item name="android:textColor">@android:color/white</item>
 687         <item name="android:fontFamily">sans-serif-light</item>
 688         <item name="android:textStyle">normal</item>
 689     </style>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:733: android:paddingStart requires API level 17 (current min is 15)

 730     <!-- Remote Tabs home panel -->
 731     <style name="RemoteTabsPanelFrame">
 732         <item name="android:paddingLeft">32dp</item>
 733         <item name="android:paddingStart">32dp</item>
 734         <item name="android:paddingRight">32dp</item>
 735         <item name="android:paddingEnd">32dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:735: android:paddingEnd requires API level 17 (current min is 15)

 732         <item name="android:paddingLeft">32dp</item>
 733         <item name="android:paddingStart">32dp</item>
 734         <item name="android:paddingRight">32dp</item>
 735         <item name="android:paddingEnd">32dp</item>
 736         <item name="android:paddingTop">@dimen/home_remote_tabs_top_padding</item>
 737         <item name="android:orientation">vertical</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:755: android:layout_marginStart requires API level 17 (current min is 15)

 752         <item name="android:textSize">16sp</item>
 753         <item name="android:lineSpacingMultiplier">1.25</item>
 754         <item name="android:layout_marginLeft">8dp</item>
 755         <item name="android:layout_marginStart">8dp</item>
 756         <item name="android:layout_marginRight">8dp</item>
 757         <item name="android:layout_marginEnd">8dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:757: android:layout_marginEnd requires API level 17 (current min is 15)

 754         <item name="android:layout_marginLeft">8dp</item>
 755         <item name="android:layout_marginStart">8dp</item>
 756         <item name="android:layout_marginRight">8dp</item>
 757         <item name="android:layout_marginEnd">8dp</item>
 758     </style>
 759 

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:780: android:paddingStart requires API level 17 (current min is 15)

 777         <item name="android:paddingTop">16dp</item>
 778         <item name="android:paddingBottom">16dp</item>
 779         <item name="android:paddingLeft">8dp</item>
 780         <item name="android:paddingStart">8dp</item>
 781         <item name="android:paddingRight">8dp</item>
 782         <item name="android:paddingEnd">8dp</item>

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
../../../../../../../mobile/android/base/resources/values/styles.xml:782: android:paddingEnd requires API level 17 (current min is 15)

 779         <item name="android:paddingLeft">8dp</item>
 780         <item name="android:paddingStart">8dp</item>
 781         <item name="android:paddingRight">8dp</item>
 782         <item name="android:paddingEnd">8dp</item>
 783 
 784         <!-- AppCompat sets Button text to all caps so we override that here. -->

Applies to variants: localOldAustralisDebug, localOldAustralisRelease, localOldPhotonDebug, localOldPhotonRelease, officialAustralisDebug, officialAustralisRelease, officialPhotonDebug, officialPhotonRelease
Does not apply to variants: localAustralisDebug, localAustralisRelease, localPhotonDebug, localPhotonRelease
(Reporter)

Updated

2 years ago
Blocks: 1218477
[triage] Bulk edit from title: this is a non-critical issue or [meta] bug.
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.