Bug 1255208 - Add preferences_privacy_clear_tablet to UnusedResourcesUtil. r=sebastian draft
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 09 Mar 2016 15:38:12 -0800
changeset 338763 00619bbe9c8772c1ed2c59dc5e45fbbc40e0a62e
parent 338762 03ac15f73b0e30267c9abe14a8ae6a0f8368e0c4
child 338764 d2b31417bce3d18caf0f3af9676d25407c75c650
push id12581
push usermichael.l.comella@gmail.com
push dateThu, 10 Mar 2016 00:38:48 +0000
reviewerssebastian
bugs1255208
milestone47.0a1
Bug 1255208 - Add preferences_privacy_clear_tablet to UnusedResourcesUtil. r=sebastian MozReview-Commit-ID: 4YJVkMKC78t
mobile/android/base/java/org/mozilla/gecko/util/UnusedResourcesUtil.java
mobile/android/base/resources/values/xml.xml
--- a/mobile/android/base/java/org/mozilla/gecko/util/UnusedResourcesUtil.java
+++ b/mobile/android/base/java/org/mozilla/gecko/util/UnusedResourcesUtil.java
@@ -66,10 +66,11 @@ final class UnusedResourcesUtil {
             R.raw.bookmarkdefaults_favicon_restricted_webmaker,
     };
 
     public static final int[] USED_IN_PREFS = {
             R.xml.preferences_advanced,
             R.xml.preferences_accessibility,
             R.xml.preferences_home,
             R.xml.preferences_privacy,
+            R.xml.preferences_privacy_clear_tablet,
     };
 }
new file mode 100644
--- /dev/null
+++ b/mobile/android/base/resources/values/xml.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 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>
+    <!-- These items are v11+ resources but are referenced in code shipped with
+         API 9 builds. Since v11+ resources don't ship on API 9 builds, in order
+         for the resource ID to be found (and thus compilation to succeed), we
+         provide dummy values below. -->
+    <item type="xml" name="preferences_privacy_clear_tablet">@null</item>
+</resources>