Bug 1143280 - SearchBar: Suppress deprecation warnings in constructor to allow building with API level 22. r=rnewman, a=sylvestre
authorSebastian Kaspari <s.kaspari@gmail.com>
Mon, 16 Mar 2015 16:44:22 +0100
changeset 258216 f546eff14959
parent 258215 14eb337e419a
child 258217 25d2e5abebec
push id4621
push userrnewman@mozilla.com
push date2015-04-02 18:44 +0000
treeherdermozilla-beta@f546eff14959 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrnewman, sylvestre
bugs1143280
milestone38.0
Bug 1143280 - SearchBar: Suppress deprecation warnings in constructor to allow building with API level 22. r=rnewman, a=sylvestre
mobile/android/search/java/org/mozilla/search/autocomplete/SearchBar.java
--- a/mobile/android/search/java/org/mozilla/search/autocomplete/SearchBar.java
+++ b/mobile/android/search/java/org/mozilla/search/autocomplete/SearchBar.java
@@ -48,16 +48,18 @@ public class SearchBar extends FrameLayo
     private boolean active;
 
     public interface TextListener {
         public void onChange(String text);
         public void onSubmit(String text);
         public void onFocusChange(boolean hasFocus);
     }
 
+    // Deprecation warnings suppressed to allow building with API level 22
+    @SuppressWarnings("deprecation")
     public SearchBar(Context context, AttributeSet attrs) {
         super(context, attrs);
 
         LayoutInflater.from(context).inflate(R.layout.search_bar, this);
 
         editText = (EditText) findViewById(R.id.edit_text);
         editText.addTextChangedListener(new TextWatcher() {
             @Override