Bug 1494026 - Part 0a: Ignore private resource warning. r=VladBaicu
authorJan Henning <jh+bugzilla@buttercookie.de>
Tue, 07 May 2019 18:59:13 +0000
changeset 531765 3e6bf14530c846509ed8c5fd004fbe8be9083fc6
parent 531764 f9833a7d765abb8eba66b95cfc183845db8e1b32
child 531766 0cca2f068966246ac6468255a87e0a1b4cf64dc4
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersVladBaicu
bugs1494026
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1494026 - Part 0a: Ignore private resource warning. r=VladBaicu We're not going to change this for now and otherwise Android Studio shows an error for that file. Differential Revision: https://phabricator.services.mozilla.com/D29971
mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java
--- a/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java
+++ b/mobile/android/base/java/org/mozilla/gecko/preferences/GeckoPreferences.java
@@ -1,16 +1,17 @@
 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: nil; -*-
  * 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/. */
 
 package org.mozilla.gecko.preferences;
 
 import android.Manifest;
+import android.annotation.SuppressLint;
 import android.annotation.TargetApi;
 import android.app.AlertDialog;
 import android.app.Dialog;
 import android.app.Fragment;
 import android.app.FragmentManager;
 import android.app.NotificationManager;
 import android.content.ContentResolver;
 import android.content.Context;
@@ -232,16 +233,17 @@ public class GeckoPreferences
         final String newTitle = getString(title);
         if (newTitle != null) {
             Log.v(LOGTAG, "Setting action bar title to " + newTitle);
 
             setTitle(newTitle);
         }
     }
 
+    @SuppressLint("PrivateResource")
     private void updateHomeAsUpIndicator() {
         final ActionBar actionBar = getSupportActionBar();
         if (actionBar == null) {
             return;
         }
         actionBar.setHomeAsUpIndicator(android.support.v7.appcompat.R.drawable.abc_ic_ab_back_material);
     }