Bug 1411654 - Part 5c: Work through ResourceUnused lint issues. r=mcomella

MozReview-Commit-ID: 82rgLEEMQzG

--HG--
extra : rebase_source : ecb798ff7cd6c9da1e55bfd21f223099141250d8
This commit is contained in:
Nick Alexander 2017-11-14 19:20:16 -08:00
Родитель 9925256f15
Коммит 8b73eafa94
8 изменённых файлов: 30 добавлений и 115 удалений

Просмотреть файл

@ -15,15 +15,6 @@
<item name="windowNoTitle">true</item>
</style>
<style name="GeckoDialogBase" parent="@android:style/Theme.Holo.Light.Dialog">
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
<style name="GeckoTitleDialogBase" parent="@android:style/Theme.Holo.Light.Dialog" />
<!--
Activity based themes for API 11+. This theme completely replaces
GeckoAppBase from res/values/themes.xml on API 11+ devices.

Просмотреть файл

@ -1,15 +0,0 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="@android:style/Theme.Holo.Light.NoActionBar">
<item name="android:windowBackground">@color/toolbar_grey</item>
<item name="android:colorBackground">@color/toolbar_grey</item>
</style>
<style name="SettingsTheme" parent="@android:style/Theme.Holo.Light"/>
</resources>

Просмотреть файл

@ -1,19 +0,0 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<resources>
<style name="TextAppearance.EmptyView.Title" parent="@android:style/TextAppearance.Small">
<item name="android:textColor">@color/text_and_tabs_tray_grey</item>
<item name="android:textSize">20sp</item>
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.EmptyView.Message" parent="@android:style/TextAppearance.Small">
<item name="android:textColor">@color/placeholder_grey</item>
<item name="android:textSize">16sp</item>
<item name="android:lineSpacingExtra">4sp</item>
</style>
</resources>

Просмотреть файл

@ -3,7 +3,8 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<resources>
<resources
xmlns:tools="http://schemas.android.com/tools">
<!--
Base application theme. This could be overridden by GeckoBaseTheme
@ -15,13 +16,6 @@
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="GeckoDialogBase" parent="@android:style/Theme.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="GeckoTitleDialogBase" parent="@android:style/Theme.Dialog" />
<style name="Gecko.Preferences">
<item name="windowActionBar">true</item>
<item name="windowNoTitle">false</item>
@ -73,10 +67,6 @@
<item name="actionBarTheme">@style/GeckoActionBar</item>
</style>
<style name="Gecko.Dialog" parent="GeckoDialogBase"/>
<style name="Gecko.TitleDialog" parent="GeckoTitleDialogBase"/>
<!--
Activity based themes, dependent on API level. This theme is replaced
by GeckoAppBase from res/values-vXX/themes.xml on newer devices.
@ -126,7 +116,8 @@
</style>
<!-- Bookmark full-page dialog theme -->
<style name="Bookmark" parent="Theme.AppCompat.Light.DialogWhenLarge"/>
<style name="Bookmark" parent="Theme.AppCompat.Light.DialogWhenLarge"
tools:ignore="UnusedResources" />
<style name="Bookmark.Gecko" parent="Gecko">
<item name="toolbarStyle">@style/BookmarkToolbarStyle</item>
<item name="colorAccent">@color/fennec_ui_accent</item>

Просмотреть файл

@ -4,7 +4,8 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!--
Only overriden styles for Honeycomb/Ice cream sandwich are specified here.
@ -26,9 +27,6 @@
<style name="Widget.BaseTextView" parent="android:style/Widget.Holo.Light.TextView" />
<style name="Widget.ProgressBar.Horizontal" parent="android:style/Widget.Holo.ProgressBar.Horizontal" />
<!--
Application styles. All customizations that are not specific
to a particular API level can go here.
@ -47,18 +45,6 @@
<!-- ActionBar -->
<style name="ActionBar" parent="android:style/Widget.Holo.ActionBar" />
<!-- TabsLayout ActionBar -->
<style name="ActionBar.TabsLayout">
<item name="android:visibility">gone</item>
</style>
<!-- DropDown List View -->
<style name="DropDownListView" parent="@android:style/Widget.Holo.ListView.DropDown">
<item name="android:listSelector">@drawable/action_bar_button</item>
<item name="android:divider">@color/toolbar_divider_grey</item>
<item name="android:dividerHeight">@dimen/page_row_divider_height</item>
</style>
<!-- Spinner DropDown Item -->
<style name="Widget.DropDownItem.Spinner" parent="@android:style/Widget.Holo.Light.DropDownItem.Spinner">
<item name="android:textColor">#FF000000</item>
@ -108,7 +94,8 @@
<style name="TabInput.TabWidget" parent="android:style/Widget.Holo.Light.TabWidget" />
<style name="TabInput.Tab" parent="android:style/Widget.Holo.Light.Tab">
<style name="TabInput.Tab" parent="android:style/Widget.Holo.Light.Tab"
tools:ignore="UnusedResources">
<item name="android:minHeight">@dimen/menu_item_row_height</item>
<item name="android:textAllCaps">true</item>
</style>

Просмотреть файл

@ -14,14 +14,6 @@
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.FirstrunTextLight">
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.FirstrunTextRegular">
<item name="android:fontFamily">sans-serif</item>
</style>
<style name="TextAppearance.UrlBar.Title" parent="TextAppearance.Small">
<item name="android:textSize">16sp</item>
</style>

Просмотреть файл

@ -25,8 +25,6 @@
<style name="Widget.BaseTextView" parent="android:style/Widget.TextView"/>
<style name="Widget.ProgressBar.Horizontal" parent="android:style/Widget.ProgressBar.Horizontal"/>
<!--
Application styles. All customizations that are not specific
to a particular API level can go here.
@ -65,10 +63,6 @@
<item name="android:listSelector">@drawable/action_bar_button</item>
</style>
<style name="Widget.Home.HomeList">
<item name="android:scrollbarStyle">outsideOverlay</item>
</style>
<style name="Widget.ListItem">
<item name="android:minHeight">?android:attr/listPreferredItemHeight</item>
<item name="android:textAppearance">?android:attr/textAppearanceLargeInverse</item>
@ -216,12 +210,6 @@
<item name="android:scaleType">centerCrop</item>
</style>
<style name="Widget.TopSitesGridItemPin">
<item name="android:minWidth">30dip</item>
<item name="android:minHeight">30dip</item>
<item name="android:padding">0dip</item>
</style>
<style name="Widget.TopSitesGridItemTitle">
<item name="android:textColor">@color/top_sites_grid_item_title</item>
<item name="android:textSize">12sp</item>
@ -295,7 +283,8 @@
<!--
We are overriding the snackbar message style to guarantee a consistent style across Android versions (bug 1217416).
-->
<style name="TextAppearance.Design.Snackbar.Message" parent="android:TextAppearance" tools:override="true">
<style name="TextAppearance.Design.Snackbar.Message" parent="android:TextAppearance" tools:override="true"
tools:ignore="UnusedResources">
<item name="android:textSize">@dimen/design_snackbar_text_size</item>
<item name="android:textColor">@android:color/white</item>
</style>
@ -370,7 +359,8 @@
<item name="android:textColor">?android:attr/textColorTertiary</item>
</style>
<style name="TextAppearance.Micro.Inverse">
<style name="TextAppearance.Micro.Inverse"
tools:ignore="UnusedResources">
<item name="android:textColor">?android:attr/textColorTertiaryInverse</item>
<item name="android:textColorHint">?android:attr/textColorHintInverse</item>
<item name="android:textColorHighlight">@color/text_color_highlight_inverse</item>
@ -400,7 +390,8 @@
<item name="android:textSize">14sp</item>
</style>
<style name="TextAppearance.Widget.Home" />
<style name="TextAppearance.Widget.Home"
tools:ignore="UnusedResources" />
<style name="TextAppearance.Widget.Home.Header" parent="TextAppearance.Small">
<item name="android:textColor">@color/disabled_grey</item>
@ -436,7 +427,8 @@
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.DoorHanger.Small">
<style name="TextAppearance.DoorHanger.Small"
tools:ignore="UnusedResources">
<item name="android:textSize">14sp</item>
</style>
@ -527,30 +519,21 @@
<item name="android:layout_marginRight">6dp</item>
</style>
<style name="Widget.RemoteTabsItemView" parent="Widget.TwoLinePageRow"/>
<style name="Widget.RemoteTabsClientView" parent="Widget.TwoLinePageRow">
<item name="android:background">@color/about_page_header_grey</item>
</style>
<style name="Widget.RemoteTabsListView" parent="Widget.HomeListView">
<item name="android:childDivider">@color/toolbar_divider_grey</item>
</style>
<style name="Widget.HistoryListView" parent="Widget.HomeListView">
<item name="android:childDivider">@color/toolbar_divider_grey</item>
<item name="android:drawSelectorOnTop">true</item>
</style>
<!-- TabsLayout Row -->
<style name="TabLayoutItemTextAppearance">
<style name="TabLayoutItemTextAppearance"
tools:ignore="UnusedResources">
<item name="android:textColor">#FFFFFFFF</item>
<item name="android:singleLine">true</item>
<item name="android:ellipsize">middle</item>
</style>
<!-- TabsLayout RemoteTabs Row Url -->
<style name="TabLayoutItemTextAppearance.Url">
<style name="TabLayoutItemTextAppearance.Url"
tools:ignore="UnusedResources">
<item name="android:textColor">#FFA4A7A9</item>
</style>
@ -737,7 +720,8 @@
<item name="android:background">@drawable/tab_indicator_background</item>
</style>
<style name="TabInput.Tab">
<style name="TabInput.Tab"
tools:ignore="UnusedResources">
<item name="android:background">@drawable/tabs_strip_indicator</item>
<item name="android:gravity">center</item>
<item name="android:minHeight">@dimen/menu_item_row_height</item>
@ -798,7 +782,8 @@
<item name="android:layout_marginBottom">8dp</item>
</style>
<style name="RemoteTabsPanelItem.TextAppearance.Linkified">
<style name="RemoteTabsPanelItem.TextAppearance.Linkified"
tools:ignore="UnusedResources">
<item name="android:clickable">true</item>
<item name="android:focusable">true</item>
<item name="android:textColor">#0092DB</item>
@ -820,8 +805,6 @@
<item name="textAllCaps">false</item>
</style>
<style name="TabQueueActivity" parent="android:style/Theme.NoDisplay" />
<style name="ActivityStreamContextMenuText">
<item name="android:textSize">16sp</item>
</style>
@ -831,7 +814,8 @@
<item name="android:listDivider">@drawable/as_contextmenu_divider</item>
</style>
<style name="ActivityStreamButton" parent="Widget.AppCompat.Button.Colored">
<style name="ActivityStreamButton" parent="Widget.AppCompat.Button.Colored"
tools:ignore="UnusedResources">
<item name="colorButtonNormal">@color/link_blue</item>
<item name="android:textColor">@android:color/white</item>
</style>

Просмотреть файл

@ -101,4 +101,8 @@ final class UnusedResourcesUtil {
public static final int[] USED_IN_PAGE_ACTION = {
R.drawable.add_to_homescreen
};
public static final int[] USED_IN_LEANPLUM_EXPANDABLE_LIST_ACTIVITY = {
R.style.Widget_ExpandableListView,
};
}